Skip to content

fix(messages): honor explicit Claude thinking settings - #723

Open
DivyamTalwar wants to merge 1 commit into
VectifyAI:mainfrom
DivyamTalwar:fix/messages-explicit-thinking
Open

DivyamTalwar wants to merge 1 commit into
VectifyAI:mainfrom
DivyamTalwar:fix/messages-explicit-thinking

Conversation

@DivyamTalwar

Copy link
Copy Markdown

Summary

On the Messages protocol, reasoning_effort="none" normally maps to a Claude-specific thinking setting. When the caller already supplied extra_body.thinking, the SDK instead forwarded the unsupported Claude effort "none" in output_config.

Keep the caller's explicit thinking and output configuration. Claude's default effort applies if the caller supplies none. Other compatible model routes retain their existing effort handling.

Claude Messages effort documentation

Validation

  • The SDK dispatch regression reproduces the extra effort="none" on main.
  • The HTTP mock uses the real Anthropic Python SDK to capture serialized JSON. It verifies that explicit thinking arrives without an injected effort.
  • All 5 targeted SDK tests passed. git diff --check passes.

This branch has not been deployed

No deployments
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.

2 participants