Repository navigation
2.79.1: OpenAI gpt-6 and later are reasoning families - #253
Merged
Merged
Conversation
gpt-6-luna matched none of the reasoning prefixes (o1, o3, o4, gpt-5), so its agent turns went to Chat Completions with tools and every one failed: "Function tools with reasoning_effort are not supported ... use /v1/responses or set reasoning_effort to 'none'". Found on Odysseus prod. - Match GPT generations 5 and later by number, so tool turns take the Responses wire and requests get max_completion_tokens and default sampling up front. - A heal teaches the client: the max_tokens rename or the tools+reasoning refusal remembers the model for the process. - The tools+reasoning 400 is retried once with reasoning_effort "none". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Problem
On Odysseus prod the chat default is OpenAI
gpt-6-luna. Every AI agent turn failed with:The reasoning-family table only named
o1,o3,o4andgpt-5.gpt-6-lunamatched none of them, so its tool turns stayed on Chat Completions instead of the Responses wire.Fix
gpt-6-luna,gpt-6.1-sol,gpt-7,gpt-10-mini). They get the Responses wire for tool turns,max_completion_tokens, and default sampling.max_tokensrename or refuses tools with reasoning, the model is remembered for the process.reasoning_effort: "none"(the vendor's documented way out). The turn that discovers the model still answers.Verification
tests/llm_clientandtests/unit/test_openai_responses_routing.py: 301 passed.tests/unitandtests/contract: 4610 passed.gpt-6-lunaaccount:stop_reason=tool_use. The NPC reply was normal.A 2.67.1 maintenance release with the same fix follows for Odysseus, which pins the 2.6x line.
🤖 Generated with Claude Code