-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
open_ai: Support reasoning content #43662
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
open_ai: Support reasoning content #43662
Conversation
| match content { | ||
| MessageContent::Text(text) | MessageContent::Thinking { text, .. } => { | ||
| if !text.trim().is_empty() { | ||
| if !text.is_empty() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kimi K2 Thinking will response empty spaces and if we do not emit them the thinking block will look like this:
KimiK2Thinkingwillresponseemptyspacesandifwedonotemitthemthethinkingblockwilllooklikethis
|
Thank you! I adjusted the |
Support for Kimi K2 Thinking Release Notes: - Added support for thinking traces when using OpenAI-API-compatible AI providers --------- Co-authored-by: Bennet Bo Fenner <bennet@zed.dev>
Support for Kimi K2 Thinking
Release Notes: