moonshot AI kimi k2 all get error. #3797

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

Originally created by @magic-thomas on GitHub (Dec 23, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

Hello.

Moonshot AI can not be used for now.

Invalid request: the message at position 5 with role 'assistant' must not be empty

all Kimi K2 models shows same error.

OpenCode version

1.0.193

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @magic-thomas on GitHub (Dec 23, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description Hello. Moonshot AI can not be used for now. `Invalid request: the message at position 5 with role 'assistant' must not be empty` all Kimi K2 models shows same error. ### OpenCode version 1.0.193 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:41:30 -05:00
yindo closed this issue 2026-02-16 17:41:30 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 23, 2025):

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

  • #2174: Groq Kimi K2 Caching - caching-related issues with Kimi K2
  • #3172: Kimi K2 cache not working on Zen - similar caching problems with Kimi K2

The error about empty assistant messages in the conversation history is a known issue affecting Kimi K2 models. Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Dec 23, 2025): This issue might be a duplicate of existing issues. Please check: - #2174: Groq Kimi K2 Caching - caching-related issues with Kimi K2 - #3172: Kimi K2 cache not working on Zen - similar caching problems with Kimi K2 The error about empty assistant messages in the conversation history is a known issue affecting Kimi K2 models. Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Dec 23, 2025):

Can you share a session?

opencode export > session.json

@rekram1-node commented on GitHub (Dec 23, 2025): Can you share a session? `opencode export > session.json`
Author
Owner

@magic-thomas commented on GitHub (Dec 24, 2025):

It is working now..

and I can see GLM 4.7 on the model list just now.

Maybe something happened during models updating..

Thanks.

@magic-thomas commented on GitHub (Dec 24, 2025): It is working now.. and I can see GLM 4.7 on the model list just now. Maybe something happened during models updating.. Thanks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3797