Repository navigation
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Author
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
This branch has not been deployed
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.
Fixes #6063
ChatGooglerecognised Gemini 3 models by four exact substrings (gemini-3-pro,gemini-3.1-pro,gemini-3-flash,gemini-3.1-flash), sogemini-3.5-flashwent down the Gemini 2.5 branch: athinking_levelset by the caller was dropped with a warning, and with nothing set no thinking config was sent. The check now matchesgemini-3with an optional minor version (gemini-3(\.\d+)?-pro/-flash), so every 3.x model gets the Gemini 3 branches. Ids that matched before still match, and ids likegemini-30-...don't.One behaviour change to be aware of: with nothing set,
gemini-3.5-flashnow gets the Gemini 3 Flash defaultthinking_budget=-1, the same asgemini-3-flash-previewtoday, instead of no thinking config (the API default,medium).Testing:
tests/ci/models/test_llm_google.py: newtest_chat_google_thinking_config_by_model, parametrised over 3.5 Flash with and withoutthinking_level, 3 Flash, 3.1 Pro and 2.5 Flash. The two 3.5 cases fail onmain, the other three pass before and after.tests/ci/models/test_llm_google.py,tests/ci/models/test_google_serializer.py,tests/ci/test_llm_retries.py: 25 passed, 1 skipped (needsGOOGLE_API_KEY).pre-commit runon the changed files: all hooks pass. Merges clean with fix(llm/google): retry SDK-raised errors with retryable status codes #5651 and fix(llm/google): decode structured-output fields Gemini returns as JSON strings #5915, the other open PRs onllm/google/chat.py.gemini-3.5-flash {'thinking_level': 'low'} -> thinking_config={'thinking_level': <ThinkingLevel.LOW: 'LOW'>}, and{'thinking_budget': -1}with nothing set.Summary by cubic
Fixes #6063 by making Gemini 3.x model detection cover any minor version, so
gemini-3.5-flashgets the Gemini 3 thinking config instead of falling back to the Gemini 2.5 path.gemini-3with an optional minor version for both-proand-flashvariants; IDs that matched before still match, andgemini-30-...does not.thinking_levelset,gemini-3.5-flashnow sendsthinking_budget=-1(Gemini 3 Flash default) instead of nothing (API defaultmedium).Written for commit 7dcd9fd. Summary will update on new commits.