-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Parse '<think>' tags in streamed text as thinking parts #2290
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
Conversation
Docs Preview
|
|
@Kludex Can you please review this? |
5e02975 to
22e8778
Compare
|
I think that “START_THINK_TAG” and "END_THINK_TAG" should be customizable at the model level. In fact, sometimes some models (e.g Claude 4), even though prompted to use CoT with |
|
@AlbertoLanaro Make sense, can you please file a new feature request issue for that? Note that with Claude, we currently expect thoughts to come in as a specific field in the API response, so I'd be curious to see when it comes as tags in the text response instead. |
Sure, no problem.
I am using Claude via OpenRouter, so I am using |
Fixes #2244