Skip to content

fix: update default reasoning effort for newer models#2773

Merged
seratch merged 1 commit intomainfrom
fix/gpt5-default-model-settings-parity
Mar 25, 2026
Merged

fix: update default reasoning effort for newer models#2773
seratch merged 1 commit intomainfrom
fix/gpt5-default-model-settings-parity

Conversation

@seratch
Copy link
Member

@seratch seratch commented Mar 25, 2026

This pull request fixes the Python SDK's built-in GPT-5 default model setting resolver so it matches the TypeScript SDK behavior for newer, real GPT-5 model families. It replaces the old special-case none check with an explicit model-pattern table that assigns the expected default reasoning effort for known variants such as gpt-5, gpt-5.1, gpt-5.2, gpt-5.2-pro, gpt-5.2-codex, gpt-5.3-codex, gpt-5.4, gpt-5.4-pro, gpt-5.4-mini, and gpt-5.4-nano, while keeping gpt-5.*-chat-latest aliases out of reasoning-default handling.

see also: openai/openai-agents-js#1131

@seratch seratch added this to the 0.13.x milestone Mar 25, 2026
@github-actions github-actions bot added bug Something isn't working feature:core labels Mar 25, 2026
Copy link

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

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: 1278b1f704

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

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

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@seratch seratch merged commit 8fdb45d into main Mar 25, 2026
9 checks passed
@seratch seratch deleted the fix/gpt5-default-model-settings-parity branch March 25, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working feature:core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant