-
Notifications
You must be signed in to change notification settings - Fork 188
fix: thought signature handling in anthropic #1162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: thought signature handling in anthropic #1162
Conversation
|
Caution Review failedThe pull request is closed. 📝 WalkthroughSummary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings. WalkthroughThinking/reasoning blocks are emitted immediately as standalone reasoning messages (with generated Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🧪 Test Suite AvailableThis PR can be tested by a repository admin. |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
c47650d to
46e7fab
Compare
46e7fab to
b827d5b
Compare
Merge activity
|
b827d5b to
d13d811
Compare

Summary
Improve handling of reasoning messages in Anthropic provider by emitting them immediately rather than collecting and emitting them at the end.
Changes
convertAnthropicContentBlocksToResponsesMessagesGroupedto emit reasoning messages immediately when encountered instead of collecting and emitting them at the endType of change
Affected areas
How to test
Test the Anthropic provider with models that support reasoning:
Verify that reasoning messages are properly emitted in the correct order and contain the appropriate signature information.
Breaking changes
Related issues
Improves message handling for Anthropic models with reasoning capabilities.
Security considerations
No security implications.
Checklist
docs/contributing/README.mdand followed the guidelines