Reasoning error when using Kimi K2 via Groq #1300

Closed
opened 2026-02-16 17:30:21 -05:00 by yindo · 15 comments
Owner

Originally created by @goszczynskip on GitHub (Aug 14, 2025).

Originally assigned to: @rekram1-node on GitHub.

When I switch the model to "Groq Kimi K2 Instruct" and send a message to the model after a few initial answers, I'm getting

AI_APICallError: `messages[3].reasoning`: reasoning is not supported with this model
Originally created by @goszczynskip on GitHub (Aug 14, 2025). Originally assigned to: @rekram1-node on GitHub. When I switch the model to "Groq Kimi K2 Instruct" and send a message to the model after a few initial answers, I'm getting ``` AI_APICallError: `messages[3].reasoning`: reasoning is not supported with this model ```
yindo closed this issue 2026-02-16 17:30:21 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Aug 14, 2025):

👋 This issue might be a duplicate of existing issues. Please check:

  • #53: Similar Groq reasoning parameter error ("reasoning_effort is unsupported")
  • #1859: GPT-5 reasoning parameter unsupported error
  • #1742: Similar reasoning parameter format issues

The core issue appears to be that reasoning parameters are being sent to models that don't support them. If none of these address your specific case with Kimi K2, please let us know how this issue differs.

@github-actions[bot] commented on GitHub (Aug 14, 2025): 👋 This issue might be a duplicate of existing issues. Please check: - #53: Similar Groq reasoning parameter error ("reasoning_effort is unsupported") - #1859: GPT-5 reasoning parameter unsupported error - #1742: Similar reasoning parameter format issues The core issue appears to be that reasoning parameters are being sent to models that don't support them. If none of these address your specific case with Kimi K2, please let us know how this issue differs.
Author
Owner

@goszczynskip commented on GitHub (Aug 14, 2025):

This looks similar to the following issues, but it happens for a different model.

@goszczynskip commented on GitHub (Aug 14, 2025): This looks similar to the following issues, but it happens for a different model.
Author
Owner

@rekram1-node commented on GitHub (Aug 14, 2025):

Can replicate, I will look into this.

@rekram1-node commented on GitHub (Aug 14, 2025): Can replicate, I will look into this.
Author
Owner

@rekram1-node commented on GitHub (Aug 14, 2025):

I think this is an upstream issue with vercel ai sdk.

@rekram1-node commented on GitHub (Aug 14, 2025): I think this is an upstream issue with vercel ai sdk.
Author
Owner

@rekram1-node commented on GitHub (Aug 14, 2025):

open issue in vercel ai sdk: https://github.com/vercel/ai/issues/8056

once that gets fixed we can fix our support here

@rekram1-node commented on GitHub (Aug 14, 2025): open issue in vercel ai sdk: https://github.com/vercel/ai/issues/8056 once that gets fixed we can fix our support here
Author
Owner

@shreyv5678 commented on GitHub (Aug 15, 2025):

That issue has been fixed, any updates?

@shreyv5678 commented on GitHub (Aug 15, 2025): That issue has been fixed, any updates?
Author
Owner

@michabbb commented on GitHub (Aug 15, 2025):

not for me... still getting errors: AI_APICallError: messages[3].reasoning: reasoning is not supported with this model

@michabbb commented on GitHub (Aug 15, 2025): not for me... still getting errors: `AI_APICallError: messages[3].reasoning: reasoning is not supported with this model `
Author
Owner

@rekram1-node commented on GitHub (Aug 15, 2025):

@shreyv5678 @michabbb @goszczynskip run: rm -rf ~/.cache/opencode and then try again, this should reinstall your providers

@rekram1-node commented on GitHub (Aug 15, 2025): @shreyv5678 @michabbb @goszczynskip run: `rm -rf ~/.cache/opencode` and then try again, this should reinstall your providers
Author
Owner

@rekram1-node commented on GitHub (Aug 15, 2025):

And it will auto update the groq package, fixing issue.

lmk if that doesn't work, i tested locally and it did.

@rekram1-node commented on GitHub (Aug 15, 2025): And it will auto update the groq package, fixing issue. lmk if that doesn't work, i tested locally and it did.
Author
Owner

@michabbb commented on GitHub (Aug 15, 2025):

@rekram1-node confirmed! after deleting the cache, no more errors 💪 😘

@michabbb commented on GitHub (Aug 15, 2025): @rekram1-node confirmed! after deleting the cache, no more errors 💪 😘
Author
Owner

@rekram1-node commented on GitHub (Aug 15, 2025):

awesome

@rekram1-node commented on GitHub (Aug 15, 2025): awesome
Author
Owner

@michabbb commented on GitHub (Aug 15, 2025):

btw... these little tricks are usually nowhere in any documentation, so i suggest putting this stuff into a troubleshooting section somewhere 😏

@michabbb commented on GitHub (Aug 15, 2025): btw... these little tricks are usually nowhere in any documentation, so i suggest putting this stuff into a troubleshooting section somewhere 😏
Author
Owner

@rekram1-node commented on GitHub (Aug 15, 2025):

yes I completely agree! I will mention this to the team

@rekram1-node commented on GitHub (Aug 15, 2025): yes I completely agree! I will mention this to the team
Author
Owner

@rekram1-node commented on GitHub (Aug 15, 2025):

closing as completed, I sent a message to the team, thanks for your feedback as always @michabbb

@rekram1-node commented on GitHub (Aug 15, 2025): closing as completed, I sent a message to the team, thanks for your feedback as always @michabbb
Author
Owner

@shreyv5678 commented on GitHub (Aug 15, 2025):

thank you it works now!

@shreyv5678 commented on GitHub (Aug 15, 2025): thank you it works now!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1300