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

Remove field reasoning_content from AssistantChatMessage #11481

Merged
merged 5 commits into from
Mar 19, 2025

Conversation

aubin-tchoi
Copy link
Contributor

@aubin-tchoi aubin-tchoi commented Mar 19, 2025

Description

  • Reverts feat: parse and expose DeepSeek's reasoning content #10121.
  • In the context of recent works on the thinking mode of Claude Sonnet 3.7, it was surfaced that do not currently have a clear view of how we want to handle the distinction between thinking and non-thinking tokens in core (delimiters for Sonnet 3.5 and Deepseek R1, AFAICT not passed for o3 and o1).
  • This PR aims at nuking the reasoning_content field from AssistantChatMessage, which was specific to Deepseek's API (and inherited in Fireworks), and not used in front.
  • This field is dropped in favor of sticking with delimiters for every current use.
  • This PR also removes two unused fields in AnthropicContent.

Risk

  • None expected, unused field.

Deploy Plan

  • Deploy core.

@aubin-tchoi aubin-tchoi requested a review from spolu March 19, 2025 16:00
Copy link
Contributor

@spolu spolu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -102,12 +102,6 @@ struct AnthropicContent {
#[serde(skip_serializing_if = "Option::is_none")]
text: Option<String>,

#[serde(skip_serializing_if = "Option::is_none")]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure I follow that diff?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't need these 2 since we never need to parse back thinking tokens from ChatMessages

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right I thought they were already gone 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yy I forgot to commit on the previous PR 😬

@aubin-tchoi aubin-tchoi merged commit 2fb679c into main Mar 19, 2025
5 checks passed
@aubin-tchoi aubin-tchoi deleted the revert-10121-feat/expose-reasoning-content branch March 19, 2025 17:31
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