Skip to content
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

feat(provider/amazon-bedrock): Add reasoning support #4980

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Und3rf10w
Copy link
Contributor

@Und3rf10w Und3rf10w commented Feb 25, 2025

This adds reasoning support for Claude models in Amazon Bedrock, as noted in issue #4977.

I have tested these changes in my environment, and confirmed that we receive reasoning in both streaming and non-streaming configurations.

In streaming and non-streaming, both the signature and reasoning text are properly extracted. You may want to convert this to use providerOptions instead of relying on additionalModelRequestFields in BedrockChatSettings, but I don't know the best practice for that.

@Und3rf10w Und3rf10w changed the title Added bedrock reasoning support Add bedrock reasoning support Feb 25, 2025
@Und3rf10w Und3rf10w changed the title Add bedrock reasoning support feat(provider/amazon-bedrock): Add reasoning support Feb 25, 2025
@shaper
Copy link
Contributor

shaper commented Feb 25, 2025

Thank you! I will take a look at this soon.

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