Re-add Kimi K2.5 with fixed API endpoint and improved icon SVG#61
Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Open
Re-add Kimi K2.5 with fixed API endpoint and improved icon SVG#61devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Conversation
Fixes #42: Re-adds Kimi K2.5 model support with two bug fixes applied: 1. API endpoint changed from api.moonshot.cn to api.moonshot.ai (international endpoint) 2. KimiIcon SVG updated to a more recognizable person-in-circle shape Co-Authored-By: bot_apk <apk@cognition.ai>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
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
Re-adds Kimi K2.5 (Moonshot AI) as a chat model option, applying the two bug fixes originally proposed in PR #42 (which was closed without merging before the feature was removed in PR #46):
api.moonshot.cn→api.moonshot.ai(international endpoint per Moonshot docs)Changes span 7 files across app and server, following the same patterns established by the existing GPT/Gemini/Claude handlers.
Review & Testing Checklist for Human
api.moonshot.aiis the international endpoint. If targeting China-only users,api.moonshot.cnmay be preferred.kimi-k2.5is correct per Moonshot API docs — this was not validated against a live API key.MOONSHOT_API_KEYin server env, select "Kimi K2.5" in the model picker, and verify streaming chat works. This PR was not tested e2e due to lack of API credentials.Notes
brokenLinerecovery logic prepends incomplete JSON fragments to the next chunk before splitting, preserving correct token order (fix from PR Add Kimi K2.5 as a model option #40 review feedback).MOONSHOT_API_KEYenvironment variable on the server.Link to Devin session: https://app.devin.ai/sessions/decb6ca81ca64089bd0819d27025eb0a