fix(aws): Update DeepSeek V3.x tool choice support on ChatBedrockConverse - #1261
Open
Michael Chin (michaelnchin) wants to merge 1 commit into
Open
Conversation
Michael Chin (michaelnchin)
force-pushed
the
fix/deepseek-v3-tool-choice
branch
from
September 5, 2026 07:44
8befafb to
4bbb085
Compare
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.
Fixes #1259
#688, merged in Oct. 2025, restricted DeepSeek V3 models to
anyToolChoice mode (based on Bedrock V3.1's tested behavior and upstream V3.2-Exp's docs). However, since then, V3.1's tool choice behavior has changed, as well as that of the stable V3.2 version Bedrock added in Dec. 2025.Manually ran
tool_choicevalue tests against Converse API to confirm the current situation:autoandanymode now work unconditionallytoolmode, while still accepted by Converse API, is not obeyed by either model.{"reasoning_effort": "high"}):anydoesn't produce tool calls on either V3.1 or V3.2autodoesn't work on V3.1, but does on V3.2 (which matches the DeepSeek docs)toolmode: same as non-thinking.Based on these observations, updated the following for DeepSeek V3.1/3.2 on ChatBedrockConverse:
("auto", "any")anyToolChoice mode override for these models inbind_toolsany->autoauto-downgrade in the case that thinking is also enabled.