You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(bedrock): omit temperature in completePrompt for adaptive-thinking models
Addresses CodeRabbit review on #386. completePrompt was unconditionally
sending temperature in its inferenceConfig, which causes a 400 error for
Claude Opus/Sonnet 4.7 and 4.8 (sampling parameters were removed by
Anthropic for these models). createMessage already guarded this, but the
non-stream path did not.
- Extract the adaptive-thinking detection into a private
isAdaptiveThinkingModel(modelId) method (parseBaseModelId-aware, so
cross-region/global prefixes are handled).
- Reuse it in both createMessage and completePrompt so the two request
paths stay consistent.
- Add two regression tests: completePrompt omits temperature for opus-4-8
and still sends it for opus-4-6.
64 bedrock tests pass, check-types clean.
0 commit comments