You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I managed to add kimi k2.5 from moonshot.ai api platform, but while using it, in reasoning phase, I receive error: thinking is enabled but reasoning_content is missing in assistant tool call message at index 18
Reacted by oldjs, Liem Ta, icedoutxcv, Andres Caicedo, ignaciosua, Charles P, Ebenge Usip and Chindriș Mihai - Alexandru
I successfully added kimi k2.5 from the moonshot.ai API platform, but when using it, I receive an error during the reasoning phase: thinking is enabled but reasoning_content is missing in the assistant tool call message at index 18
I managed to add kimi k2.5 from moonshot.ai api platform, but while using it, in reasoning phase, I receive error: thinking is enabled but reasoning_content is missing in assistant tool call message at index 18
Kimi K2.5 model returns reasoning_content field for thinking/reasoning which causes error: "thinking is enabled but reasoning_content is missing in assistant tool call message"
The Kimi API uses thinking: {type: "disabled"} parameter format and returns reasoning in reasoning_content field alongside content.
Docs: https://platform.moonshot.ai/docs/guide/kimi-k2-5-quickstart
In my opencode.json it looks like this:
"moonshot": {
"npm": "@ai-sdk/openai-compatible",
"name": "Moonshot (Kimi)",
"options": {
"baseURL": "https://api.moonshot.ai/v1",
"apiKey": ""
},
"models": {
"kimi-k2.5": {
"name": "Kimi K2.5",
"thinking": {"type": "enabled"},
"temperature": 1.0
}
}
}
It's throwing that error even if thinking type is set to disabled
Reacted by Chindriș Mihai - Alexandru and zhangxaochen
The Kimi K2.5 model returns a reasoning_content field for thinking/reasoning, which causes the error: "thinking is enabled but reasoning_content is missing in assistant tool call message". The Kimi API uses the thinking: {type: "disabled"} parameter format and returns reasoning in the reasoning_content field alongside content. Docs: https://platform.moonshot.ai/docs/guide/kimi-k2-5-quickstart
In my opencode.json it looks like this: "moonshot": { "npm": "@ai-sdk/openai-compatible", "name": "Moonshot (Kimi)", "options": { "baseURL": "https://api.moonshot.ai/v1", "apiKey": "" }, "models": { "kimi-k2.5": { "name": "Kimi K2.5", "thinking": {"type": "enabled"}, "temperature": 1.0 } } }
PR merged to. models.dev and commited (anomalyco/models.dev#720), it is now on models.dev, so just run "opencode models" -- no need for adding it to the config.
Reacted by Travis Irby, IM-001, Kamil Chmielewski, Nybkox, Bobby Bobak, Brendan Duke and Chindriș Mihai - Alexandru
The kimi-k2.5-free model displays the error “Extra inputs are not permitted, field: ‘reasoning’” in both Plan & Build modes. The Opencode version is 1.1.44 & Kimi is connected via the Opencode Zen provider.
Also have that issue with kimi 2.5 in the latest opencode (1.1.44)
JSON Schema not supported: could not understand the instance `{'description': 'Value to set. Must match field type from schema. For references: {_type: "reference", _ref: "id"}. For blocks: include _type.'}`.
Reacted by Ashish Saini, Chindriș Mihai - Alexandru and Vlad Ivanov
Kimi 2.5 under the Moonshot provider works for me in OpenCode 1.1.44. The only issue now is the Read tool x media doesn't invoke vision api. There are two raised issues #11304 and #11306, and an attempted fix in #11323.
The kimi-k2.5-free model displays the error “Extra inputs are not permitted, field: ‘reasoning’” in both Plan & Build modes. The Opencode version is 1.1.44 & Kimi is connected via the Opencode Zen provider.
using kimi for coding plan
Anyone still having issues? or good to close?
This issue is for the Kimi Code Plan which far as I can tell does not provide api keys; so this issue is still completely unresolved? (maybe not fixable if kimi doesn't allow this, like recent claude change)
@rekram1-node I have issues using kimi k2.5 because I have customized my "build" agent for Opus 4.5 max with certain permissions and a hardcoded variant. OpenCode is then throwing this error when I switch the model in the TUI:
2 request validation errors: Extra inputs are not permitted, field: 'variant', value: 'max'; Extra inputs are not permitted, field: 'permissions'
I think people already created a PR to fix the variant issue: #11410.
I cant enable reasoning for Kimi for Coding models in version 1.1.51. Can somebody repro this as well?
Yup, after the update it stopped working. I could switch modes before the update. Just tested and it happens from version v1.1.50 on 1.1.49 it still works.
We removed the high/max variants because k2p5 doesnt actually accept the token budgets, however doing this caused the reasoning to stop working properly (for kimi coding provider)
Kimi for coding (along w/ the other kimi 2.5 providers) only allow u to toggle reasoning on or off. Unlike the other providers kimi for coding actually defaults to thinking off. In the next release we will default to thinking on, and we also need to add variant to allow you to turn it off easily.
Activity
ShivamB25 commentedon Jan 27, 2026
using kimi for coding plan
github-actions commentedon Jan 27, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
RS91Dev commentedon Jan 27, 2026
Kimi K2.5 integration is not supported via https://www.moonshot.ai/ API
or https://openrouter.ai/moonshotai/kimi-k2.5
. Please add support for Kimi 2.5.
sdelost commentedon Jan 27, 2026
I managed to add kimi k2.5 from moonshot.ai api platform, but while using it, in reasoning phase, I receive error: thinking is enabled but reasoning_content is missing in assistant tool call message at index 18
kamilchm commentedon Jan 27, 2026
I tried this with Kimi Code subscription plan:
{ "provider": { "kimi-code": { "name": "Kimi Code", "npm": "@ai-sdk/openai-compatible", "options": { "baseURL": "https://api.kimi.com/coding/v1", "headers": { "Authorization": "Bearer {env:KIMICODE_API_KEY}" } }, "models": { "Kimi K2.5": { "id": "kimi-k2.5" } } } } }but no luck:
oldjs commentedon Jan 27, 2026
Same issue
sdelost commentedon Jan 27, 2026
Kimi K2.5 model returns reasoning_content field for thinking/reasoning which causes error: "thinking is enabled but reasoning_content is missing in assistant tool call message"
The Kimi API uses thinking: {type: "disabled"} parameter format and returns reasoning in reasoning_content field alongside content.
Docs: https://platform.moonshot.ai/docs/guide/kimi-k2-5-quickstart
In my opencode.json it looks like this:
"moonshot": {
"npm": "@ai-sdk/openai-compatible",
"name": "Moonshot (Kimi)",
"options": {
"baseURL": "https://api.moonshot.ai/v1",
"apiKey": ""
},
"models": {
"kimi-k2.5": {
"name": "Kimi K2.5",
"thinking": {"type": "enabled"},
"temperature": 1.0
}
}
}
It's throwing that error even if thinking type is set to disabled
oldjs commentedon Jan 27, 2026
Same issue
alesha-pro commentedon Jan 27, 2026
Login with kimi for coding (opencode auth login), enter ur api key and then add
in ur
opencode.json.thats wurk
IM-001 commentedon Jan 27, 2026
That was smart, but it defaults to the generic "kimi-for-coding" model, aka Kimi 2 thinking:
alesha-pro commentedon Jan 27, 2026
Oh shit
kassieclaire commentedon Jan 27, 2026
PR merged to. models.dev and commited (anomalyco/models.dev#720), it is now on models.dev, so just run "opencode models" -- no need for adding it to the config.
25 remaining items
dive commentedon Jan 30, 2026
The
kimi-k2.5-freemodel displays the error “Extra inputs are not permitted, field: ‘reasoning’” in both Plan & Build modes. The Opencode version is 1.1.44 & Kimi is connected via the Opencode Zen provider.vladbesson commentedon Jan 30, 2026
Also have that issue with kimi 2.5 in the latest opencode (1.1.44)
zhming0 commentedon Jan 30, 2026
Kimi 2.5 under the Moonshot provider works for me in OpenCode 1.1.44. The only issue now is the Read tool x media doesn't invoke vision api. There are two raised issues #11304 and #11306, and an attempted fix in #11323.
nerdyworm commentedon Jan 31, 2026
This has been resolved, thank you.
rekram1-node commentedon Jan 31, 2026
Anyone still having issues? or good to close?
separately @zhming0 I saw ur pr ill look at it (kinda separate from this tho)
martinffx commentedon Jan 31, 2026
I'm getting this but only in plan mode, in
1.1.48jonaustin commentedon Jan 31, 2026
This issue is for theKimi Code Planwhich far as I can tell does not provide api keys; so this issue is still completely unresolved? (maybe not fixable if kimi doesn't allow this, like recent claude change)edit: After signup api keys can be created here https://www.kimi.com/code/console
rekram1-node commentedon Jan 31, 2026
@jonaustin but they do provide keys? https://www.kimi.com/code/docs/en/more/third-party-agents.html#configure-the-kimi-code-model-1
And the model is available:
https://models.dev/?search=kimi-for-coding
douglascamata commentedon Feb 1, 2026
@rekram1-node I have issues using kimi k2.5 because I have customized my "build" agent for Opus 4.5 max with certain permissions and a hardcoded variant. OpenCode is then throwing this error when I switch the model in the TUI:
2 request validation errors: Extra inputs are not permitted, field: 'variant', value: 'max'; Extra inputs are not permitted, field: 'permissions'I think people already created a PR to fix the variant issue: #11410.
The permissions part of the problem persists.
douglascamata commentedon Feb 1, 2026
Learned from #11320 that the permissions issue is a typo on my side.
jonaustin commentedon Feb 1, 2026
Thanks, you're absolutely right; I must be blind or something doh. I'll edit my original post.
M0n7y5 commentedon Feb 4, 2026
I cant enable reasoning for Kimi for Coding models in version 1.1.51. Can somebody repro this as well?
hayedewit commentedon Feb 4, 2026
Yup, after the update it stopped working. I could switch modes before the update. Just tested and it happens from version v1.1.50 on 1.1.49 it still works.
R44VC0RP commentedon Feb 4, 2026
We removed the high/max variants because k2p5 doesnt actually accept the token budgets, however doing this caused the reasoning to stop working properly (for kimi coding provider)
Kimi for coding (along w/ the other kimi 2.5 providers) only allow u to toggle reasoning on or off. Unlike the other providers kimi for coding actually defaults to thinking off. In the next release we will default to thinking on, and we also need to add variant to allow you to turn it off easily.
A workaround right now is using this: #12090 (comment)