Closed
Conversation
ea42fc1 to
97ef15b
Compare
…odels Add declarative Kimi Code provider (kimi.json) for Kimi Code subscription access via KIMI_API_KEY. Fix reasoning_content handling for thinking models (Kimi, DeepSeek, etc.): - Preserve reasoning content on split tool-call messages in agent.rs (Goose splits parallel tool calls into separate messages, which was dropping reasoning_content that providers like Kimi require) - Only include reasoning_content field when non-empty (Kimi rejects empty string "") - Accumulate reasoning_content during streaming tool call processing - Concatenate multiple reasoning blocks instead of overwriting - Wire request_params into create_request() for thinking mode activation Update Kimi model context limits to 262K. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Harrison <hcstebbins@gmail.com>
97ef15b to
263e104
Compare
DOsinga
pushed a commit
that referenced
this pull request
Feb 18, 2026
Add support for Moonshot AI (Kimi) models: - moonshot.json: kimi-latest, kimi-thinking-preview, kimi-k2-0711, kimi-k2, moonshot-v1-8k, moonshot-v1-32k - kimi.json: kimi-for-coding, kimi-code (coding-optimized models) Both providers use the Moonshot API (api.moonshot.cn) with MOONSHOT_API_KEY. Combines work from PRs #6962 and #7222.
Collaborator
|
ok, I merged the other one, I think we can close this now. let me know if not. and thanks for the contribution @stebbins |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add dedicated Kimi provider (kimi.rs) for Kimi Code subscription access via KIMI_API_KEY, with configurable KIMI_HOST.
Fix reasoning_content handling for thinking models (Kimi, DeepSeek, etc.):
Update Kimi model context limits to 262K (131K for older k2-0711).
https://www.kimi.com/code/docs/en/more/third-party-agents.html
Type of Change
AI Assistance
Testing
Unit tests. I don't have a Kimi Code subscription so I'll ask someone for manual testing too.
Related Issues
Relates to #7150
Discussion: LINK (if any)
Screenshots/Demos (for UX changes)
Before:
After: