Repository navigation
Conversation
…ls on Converse The Converse tool, tool_choice and sampling gates only read the cost map for OpenAI GPT models. Models with no entry yet (GPT-6 Sol and Luna) lose tools and the forced json_tool_call, and an entry without supports_sampling_params (GPT-6 Astra) sends temperature and topP, which Bedrock rejects with a 400 even when drop_params is on. Add the existing _is_openai_gpt_reasoning_model check to these gates so these models get the same params as GPT-5.6. An explicit supports_sampling_params flag still wins, and gpt-oss keeps temperature
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
… repo rule and BerriAI#39834 do The GPT-6 Sol, Luna and Astra Converse rows now set supports_sampling_params false in both cost map files, like the GPT-5.6 rows. Tools and tool choice already come from the rows BerriAI#42746 and BerriAI#42798 added, so the name-based checks in converse_transformation.py are removed
|
Thanks to the maintainers for the cost map rule and for #39834, which did this for GPT-5.6. 4d06477 now does the same for GPT-6
The name check is gone because the rows from #42746 and #42798 already carry tools. #42728 has the same Sol and Luna rows, so whichever lands second may need a trivial rebase there Suites, gates and the live runThe PR description is updated with a fresh proxy run at 4d06477 (chat completions, responses, messages, tools) |
|
#44307 landed supports_sampling_params false on every GPT-6 row on main, so this change is already in. Closing this one, thanks for the PR |
Thanks for #39834, which gave the Bedrock GPT-5.6 Converse rows
supports_sampling_params: false. This PR puts the same flag on the GPT-6 rowsTLDR
Problem this solves:
temperaturetop_p, even withdrop_paramsHow it solves it:
supports_sampling_params: falseon every GPT-6 Converse row8bbe7edb71)4d06477381)global.Sol,temperature: 0.2ortop_p: 0.9on chat completions,drop_paramsontemperature: 0.2on messages, and on responses throughbedrock/converse/temperature: 0.2ortop_p: 0.9withoutdrop_params(SDK)UnsupportedParamsErrorfrom litellm before sending, same as GPT-5.6get_weathercallbedrock/us.openai.gpt-6-solconverse_transformation.py, price fieldsDetails
#42746 and #42798 added the GPT-6 Sol and Luna rows after this PR was opened, so tools already work on main. This version drops the name check and flags all eight GPT-6 Converse rows in both cost map files
Bare
openai.gpt-6-astrahas no row, but Bedrock rejects it as on-demand, and the sampling lookup finds theus.andglobal.flags anyway8bbe7edb71)4d06477381)tests/test_litellm/llms/bedrocktests/unit/llms/bedrocktests/test_litellm/llms/anthropic/chatci_cd/cost_map_guard.py,generate_model_prices_schema.py --checkUser Flow
Before: an app that sets a temperature gets a 400 from GPT-6
bedrock/converse/us.openai.gpt-6-solwithdrop_params: true"temperature": 0.2(same on /v1/messages)After: the temperature is dropped and the call succeeds
bedrock/converse/us.openai.gpt-6-solwithdrop_params: trueRelevant issues
Fixes #42725
Pre-Submission checklist
Screenshots / Proof of Fix
Live Bedrock calls through a local proxy
Before (8bbe7ed)
Chat completions, temperature
Chat completions, top_p
Responses, temperature
Messages, temperature
Chat completions, tools
After (4d06477)
Chat completions, temperature
Chat completions, top_p
Responses, temperature
Messages, temperature
Chat completions, tools
Type
🐛 Bug Fix
Caveats (if any)
Low
stopstill gets a Bedrock 400, like GPT-5.6Final Attestation