Handle thinking setting for GPT-5.5#5196
Merged
dsfaccini merged 2 commits intopydantic:mainfrom Apr 24, 2026
Merged
Conversation
The openai SDK (2.32.0) does not yet include gpt-5.5 in its ChatModel literal, and tests/models/test_model_names.py strictly enforces parity. Literals will be added in a follow-up PR once the SDK ships gpt-5.5.
openai:gpt-5.5 and openai:gpt-5.5-progpt-5.5 family as gpt-5.1+ in OpenAI profile
3 tasks
gpt-5.5 family as gpt-5.1+ in OpenAI profile
Alex-Resch
pushed a commit
to Alex-Resch/pydantic-ai
that referenced
this pull request
Apr 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OpenAI shipped
gpt-5.5andgpt-5.5-proon 2026-04-23. This PR flips the profile detection so 5.5 gets the same handling as 5.4 (adds'gpt-5.5'to theis_gpt_5_1_plustuple inopenai_model_profile). Runtime is already permissive —OpenAIModelName = str | AllModelsmeansAgent('openai:gpt-5.5')works today with a plain string.Capability shape verified against the Responses API:
gpt-5.5matchesgpt-5.4exactly (effortnone/low/medium/high/xhigh, sampling params work witheffort='none').gpt-5.5-proinherits the samemedium/high/xhigh-only restriction as the already-listedgpt-5.4-pro; pre-existing gap, out of scope here.Adding the
openai:gpt-5.5*literals toKnownModelNameis split into a follow-up draft PR, blocked on theopenaiSDK shippinggpt-5.5in itsChatModelliteral (current 2.32.0 tops out at 5.4, andtests/models/test_model_names.pystrictly enforces parity).Checklist