π fix: use Anthropic SDK for Kimi Coding Plan provider#13345
π fix: use Anthropic SDK for Kimi Coding Plan provider#13345arvinxx merged 2 commits intolobehub:canaryfrom
Conversation
- Switch from OpenAI SDK to Anthropic SDK for Kimi Coding Plan - Update baseURL from `/coding/v1` to `/coding` (Anthropic-compatible endpoint) - Update model IDs: `kimi-k2.5` β `k2p5`, remove `kimi-k2` - Fix max_tokens resolution to use KimiCodingPlan model list - Rewrite tests for Anthropic SDK compatibility
|
@hardy-one is attempting to deploy a commit to the LobeHub OSS Team on Vercel. A member of the Team first needs to authorize it. |
Codecov Reportβ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## canary #13345 +/- ##
=======================================
Coverage 66.94% 66.95%
=======================================
Files 1903 1903
Lines 153684 153689 +5
Branches 15534 15532 -2
=======================================
+ Hits 102889 102899 +10
+ Misses 50675 50670 -5
Partials 120 120
Flags with carried forward coverage won't be shown. Click here to find out more.
π New features to boost your workflow:
|
There was a problem hiding this comment.
π‘ Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b7426058c6
βΉοΈ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with π.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
β€οΈ Great PR @hardy-one β€οΈ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world. |
π fix: use Anthropic SDK for Kimi Coding Plan provider - Switch from OpenAI SDK to Anthropic SDK for Kimi Coding Plan - Update baseURL from `/coding/v1` to `/coding` (Anthropic-compatible endpoint) - Update model IDs: `kimi-k2.5` β `k2p5`, remove `kimi-k2` - Fix max_tokens resolution to use KimiCodingPlan model list - Rewrite tests for Anthropic SDK compatibility
π» Change Type
π Related Issue
π Description of Change
Kimi Coding Plan API requires Anthropic SDK instead of OpenAI SDK. Using OpenAI format will result in error: "Kimi For
Coding is currently only available for Coding Agents such as Kimi CLI, Claude Code, Roo Code, Kilo Code, etc."
Changes:
/coding/v1to/coding(Anthropic-compatible endpoint)kimi-k2.5βk2p5, removekimi-k2π§ͺ How to Test
πΈ Screenshots / Videos
π Additional Information