Skip to content

Fix Bedrock HTTP 400 for gpt-5.6-sol by using auto reasoning summary - #111

Merged
wch merged 2 commits into
mainfrom
bedrock-sol-thinking-workaround
Sep 10, 2026
Merged

wch merged 2 commits into
mainfrom
bedrock-sol-thinking-workaround

Conversation

@wch

@wch wch commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

When a host application chats with a GPT 5.6-series model through Amazon Bedrock's OpenAI Responses route (for example, openai.gpt-5.6-sol), every request fails with HTTP 400: Unsupported parameter: 'reasoning.summary' is not supported with the 'openai.gpt-5.6-sol' model. This started suddenly with no change on the client's side: Bedrock began rejecting the explicit reasoning-summary level (concise/detailed) the client sends on that route.

This PR sends auto — the OpenAI Responses API's own default — instead of an explicit level. Bedrock accepts auto for these models, and the route never returned reasoning-summary text either way, so the only visible change is that requests succeed again.

Only the Bedrock OpenAI Responses route changes. The Bedrock chat route, Anthropic and Converse routes, and every other provider are untouched. If Bedrock's validation later tightens further and rejects the field entirely, omitting it is the remaining fallback.

Verification

The Mantle routing test now asserts the auto level, and the change was confirmed against the live openai.gpt-5.6-sol model: requests complete and stream a response instead of returning HTTP 400.

Bedrock rejects explicit reasoning.summary levels ("concise"/"detailed")
for some models (e.g. openai.gpt-5.6-sol), failing requests with HTTP
400. "auto" is the OpenAI Responses default and is accepted; Mantle
does not return summary text either way, so behavior is unchanged.
@wch
wch enabled auto-merge (squash) September 10, 2026 21:08
@wch
wch merged commit e2a0537 into main Sep 10, 2026
4 checks passed
@wch
wch deleted the bedrock-sol-thinking-workaround branch September 10, 2026 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant