max_tokens error when using Groq Kimi-K2 #726

Closed
opened 2026-02-16 17:28:02 -05:00 by yindo · 2 comments
Owner

Originally created by @yamirghofran on GitHub (Jul 15, 2025).

Originally assigned to: @thdxr on GitHub.

AI_APICallError: max_tokens must be less than or equal to 16384, the maximum value for max_tokens is less than the context_window for this model

Originally created by @yamirghofran on GitHub (Jul 15, 2025). Originally assigned to: @thdxr on GitHub. AI_APICallError: `max_tokens` must be less than or equal to `16384`, the maximum value for `max_tokens` is less than the `context_window` for this model
yindo closed this issue 2026-02-16 17:28:02 -05:00
Author
Owner

@adamdotdevin commented on GitHub (Jul 15, 2025):

i merged a fix in models.dev, will be resolved in opencode soon

@adamdotdevin commented on GitHub (Jul 15, 2025): i merged a fix in models.dev, will be resolved in opencode soon
Author
Owner

@stickyburn commented on GitHub (Jul 15, 2025):

edit: just added my keys and it shows up :)


Super new to opencode and groq both, could someone please explain how to use kimi-k2? I have the api key but I dont see the model under groq.

@stickyburn commented on GitHub (Jul 15, 2025): edit: just added my keys and it shows up :) --- Super new to opencode and groq both, could someone please explain how to use kimi-k2? I have the api key but I dont see the model under groq.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#726