opencode icon indicating copy to clipboard operation
opencode copied to clipboard

unclear error issue

Open SvenMeyer opened this issue 1 month ago • 4 comments

Description

  • kimi cli is working with my account + monthly subscription
  • i did opencode auth login with provider Moonshot AI
  • start opencode
  • select model Kimi K2 Thinking from provider list Moonshot AI
  • prompt "what is your name" ... and get this (incomplete) error
Image

OpenCode version

1.0.137

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Manjaro Linux KDE

Terminal

Konsole

SvenMeyer avatar Dec 09 '25 06:12 SvenMeyer

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

  • #5103: Missing support tool calls in thinking tokens for Kimi K2 Thinking - This exact issue describes the problem with Kimi K2 Thinking model not working due to tool calls in thinking tokens
  • #1071: token count not working for some providers (moonshot.ai for example) - Related to Moonshot AI provider issues
  • #4190: [FEATURE]: Add kimi-k2-thinking and minimax-m2 model support for OpenCode Zen provider - Feature request that may be related to your issue

Feel free to ignore if none of these address your specific case.

github-actions[bot] avatar Dec 09 '25 06:12 github-actions[bot]

Ugh some dumb bug try this:

opencode run hello --print-logs --model moonshotai/kimi-k2-thinking

rekram1-node avatar Dec 09 '25 07:12 rekram1-node

ok, i comes back with a lot of text (likely the system prompt) and at the end with "error=Your account org-18411144e9104296************ is suspended due to insufficient balance, please recharge your account or check your plan and billing details".

I have already sent a request to moonshot.ai to look into this, because I should have enough balance and strangely it works with Kimi CLI.

Regarding opencode, it would be great if there would be a way to display longer error messages as what was displayed in the CLI, it was not really helpful.

SvenMeyer avatar Dec 09 '25 09:12 SvenMeyer

yep ill fix

rekram1-node avatar Dec 09 '25 16:12 rekram1-node

fix: https://github.com/sst/opencode/commit/b41051b4ee99efdda2c709b4384cef0f3325e831

rekram1-node avatar Dec 12 '25 19:12 rekram1-node