feat(moonshot): add kimi-k3 and kimi-k2.7-code model support#3458
Merged
Conversation
lin-snow
force-pushed
the
feat/moonshot-kimi-k3-k27-code
branch
from
July 17, 2026 11:51
163e309 to
e793121
Compare
lin-snow
enabled auto-merge (squash)
July 17, 2026 11:56
Contributor
|
lgtm |
WH-2099
approved these changes
Jul 17, 2026
WH-2099
left a comment
Member
There was a problem hiding this comment.
All actionable review threads are resolved. The frozen test suite passes, default runs skip billable live tests, explicit live opt-in passes, and all CI checks are green.
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 11 out of 12 changed files in this pull request and generated no new comments.
Comments suppressed due to low confidence (1)
models/moonshot/.env.example:1
- Deleting this file removes the standard remote-debug bootstrap for this plugin. The new
.difyignoreonly excludes.env, so it does not make the tracked example redundant; plugins with the same ignore file retain this template (for example,models/aihubmix/.env.example:1-4andmodels/tongyi/.env.example:1-4). Restore the template, optionally extending it with the live-test variables.
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 the latest Kimi models to the Moonshot plugin:
kimi-k3,kimi-k2.7-code, andkimi-k2.7-code-highspeed.Per official docs, both generations lock
temperature/top_p/ penalties to fixed values (overriding triggers errors) and do not support non-thinking mode, so these models intentionally expose neither the sampling parameters nor thethinkingtoggle.llm.py's thinking-model detection is extended tok3/k2.7so assistant messages round-tripreasoning_content, which the API requires for multi-turn tool calling.References: K3 quickstart, K2.7 Code quickstart, K3 pricing, K2.7 Code pricing, Chat API reference
Change Type
Screenshots / Videos
N/A — no K3-enabled API key available; see Testing notes below.
LLM Plugin Checklist
Areas affected by this change (check all that apply)
Version
versioninmanifest.yaml(not the one undermeta) — 0.1.8 → 0.1.9dify_pluginis declared inpyproject.toml(>=0.9.0) and locked inuv.lockTesting
Not runtime-tested: no K3-enabled API key was available. Verification done instead:
tool_choiceconstraints,reasoning_contentround-trip requirement, pricing) cross-checked against the official quickstarts, pricing pages, and chat API reference on both platform.kimi.ai (intl) and platform.kimi.com (CN).AIModelEntityschema validation.tool_choicesent by the OAI-compat SDK is"auto", within kimi-k2.7-code's allowed values (auto/none).Runtime verification by a reviewer with K3 API access would be appreciated.