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

ContentReasoning to represent reasoning blocks #1390

Merged
merged 4 commits into from
Feb 25, 2025

Conversation

jjallaire-aisi
Copy link
Collaborator

This PR introduces a new ContentReasoning content block type to represent reasoning yielded by models. This replaces the reasoning field we had previously added to ChatMessageAssistant. The new scheme accommodates additional properties of reasoning blocks (which will be required by Anthropic) and matches the way Anthropic represents reasoning (as a block that is a peer of text, images, etc.). Straightforward conversions to this schema are done for other models that use a simpler/flatter approach.

@jjallaire-aisi jjallaire-aisi merged commit d4458dd into main Feb 25, 2025
11 checks passed
@jjallaire-aisi jjallaire-aisi deleted the feature/claude-thinking branch February 25, 2025 12:43
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