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
{{ message }}
Repository navigation
Unable to use Kimi K2: error due to parsing of tool calls #929
If you're using Kimi K2 through OpenRouter, and it tries to use any tools, you'll see this error:
*Would copy paste it instead of screenshotting it, but can't due to #927.
The error seems to say that the delta from OpenRouter is being validated (why is unknown), and during validation, it's surprised that "type" is not "function" (there is currently no other "type" than "function" so this is needlessly unforgiving).
*This is technically due to "something wrong" with Novita, the fact that their "type" is incorrect. We will need to wait for either OpenRouter to special case this or for the AI SDK to resolve this.
Activity
yabirgb commentedon Jul 13, 2025
I also had this happening with devstral and gemeni today in build mode. In plan mode it seemed to work for some reason
stefkampouris commentedon Jul 13, 2025
+1 i have the error and im on the latest version 2.0.33
juancgarza commentedon Jul 13, 2025
Getting same error
KTibow commentedon Jul 14, 2025
With the merging of vercel/ai#7277 (and the addition of non-Novita providers to OpenRouter), this issue is no longer
fix: address review feedback from PR anomalyco#929
Merge pull request anomalyco#929 from xingzihai/feat/skill-developmen…
ci: pin release runners per target (anomalyco#929)