Repository navigation
fix(bedrock_mantle): set GPT-5.6 model mode to chat and add batch endpoint (#46905) - #47251
ashishsoni-ai wants to merge 1 commit into
Conversation
…point (BerriAI#46905) Update mode to 'chat' for bedrock_mantle GPT-5.6 models (openai.gpt-5.6-sol, openai.gpt-5.6-terra, openai.gpt-5.6-luna, and us-gov-west-1 variants) and include '/v1/batch' in supported_endpoints while preserving 'use_openai_responses_path': true. Fixes BerriAI#46905
Merging this PR will not alter performance
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Closing this PR after reviewing the CI test failures and repository history: Background & ArchitectureOn Amazon Bedrock Mantle, OpenAI frontier models ( As documented in PR #38225 (LIT-6096):
Additionally, Mantle's native Existing Opt-inOperators wishing to route unbridged traffic through Mantle's native Changing the default mode in the shared price map alters this load-bearing architecture and breaks the test contracts in |
TLDR
Problem this solves:
openai.gpt-5.6-sol,openai.gpt-5.6-terra,openai.gpt-5.6-luna, and us-gov-west-1 variants) retained"mode": "responses"./v1/chat/completionsrequests misclassified or required manual overrides despite native chat completions being supported."/v1/batch"endpoint was missing fromsupported_endpoints.How it solves it:
"mode": "chat"for all 5 Bedrock Mantle GPT-5.6 models and GovCloud variants."/v1/batch"tosupported_endpoints."use_openai_responses_path": truefor Responses API routing and reasoning-summary fallback compatibility.model_prices_and_context_window.jsonandlitellm/model_prices_and_context_window_backup.json.litellm.get_model_inforesolution.User Flow
Before: a developer using Bedrock Mantle GPT-5.6 models has chat requests resolved as responses mode unless manually pinned.
bedrock_mantle/openai.gpt-5.6-sol."mode": "responses"andsupported_endpointsmissing"/v1/batch".After: the same model resolves natively with
"mode": "chat"and includes batch support.bedrock_mantle/openai.gpt-5.6-sol."mode": "chat", retaining"use_openai_responses_path": true.Relevant issues
Fixes #46905
Pre-Submission checklist
uv run pytest tests/unit/<your_test_file>.py -v. Leave the suites (make test-unit-*,make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or moreScreenshots / Proof of Fix
Before (e979bd0)
After (df6dba9)
Type
🐛 Bug Fix
✅ Test
Final Attestation