Skip to content

chore: Update platform types - #804

Open
braintrust-bot[bot] wants to merge 1 commit into
mainfrom
chore/regenerate-sdk-python-types
Open

braintrust-bot[bot] wants to merge 1 commit into
mainfrom
chore/regenerate-sdk-python-types

Conversation

@braintrust-bot

Copy link
Copy Markdown
Contributor

Automated regeneration of SDK types.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dafb312a00

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "Codex (@codex) address that feedback".

Comment on lines +121 to +122
class AnyModelParamsChatTemplateKwargs(TypedDict):
enable_thinking: NotRequired[bool | None]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve arbitrary chat-template keyword arguments

When a caller passes a provider-specific chat-template option other than enable_thinking (for example, {"chat_template_kwargs": {"foo": "bar"}}), static type checkers reject the value because this TypedDict is closed. The generated schema for this field explicitly has additionalProperties: {}, so arbitrary keys are valid and PromptBuilder.create() forwards params unchanged; type it as a mapping that retains enable_thinking or otherwise permits additional keys.

Useful? React with 👍 / 👎.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants