Map unified `thinking` to `reasoning.effort` for OpenAI GPT-5.6 and GPT-6 on Bedrock Converse
- Closes #10992
Unified thinking was dropped without a warning for the OpenAI GPT-5.6 and GPT-6 models on BedrockConverseModel, so they always reasoned at their default effort. This maps it the way Converse expects for these models, the Responses API shape additionalModelRequestFields={'reasoning': {'effort': ...}}. The flat reasoning_effort that the gpt-oss 'openai' variant sends is rejected for them as an unknown parameter.
BedrockModelProfile.bedrock_thinking_variantgets a new'openai_responses'value, set bybedrock_openai_model_profilefor the seven GPT-5.6 and GPT-6 ids, withsupports_thinking=Trueandthinking_always_enabledtaken fromopenai_model_profile(GPT-6 Astra and GPT-6.1 Sol rejecteffort='none').thinking=Falsesendseffort='none'where accepted,'minimal'maps to'low'(both families rejectminimal), every other level passes through. A user-suppliedreasoningkey inbedrock_additional_model_requests_fieldsstill wins, like the other variants.- These models accept a forced
toolChoicewhile they reason (checked live withanyandtool), so_effective_thinking_typereturnsNonefor the new variant. Without that, settingthinkingwould raise the gpt-oss/QwenUserErrorforToolOutputor moveautostructured output to prompted mode. Behavior for users who don't setthinkingis unchanged: no request field is added. - Docs: the "Bedrock (OpenAI GPT-5.6 and GPT-6)" row in the thinking provider table now shows the mapping instead of "Not mapped".
Tests are VCR recordings against us.openai.gpt-5.6-luna and global.openai.gpt-6-astra: False/'minimal'/'xhigh' on the wire with a reasoning block present or absent, the always-on drop, and ToolOutput with thinking='low' (fails with the UserError without the _effective_thinking_type change). The full live matrix behind the mapping is in the issue.
Checklist
- No breaking changes in accordance with the version policy.
- Any permitted compatibility impact has a label, warning, migration, release note, and exact API-check waiver.
- PR title is fit for the release changelog.
š¤ Generated with Claude Code