unclear error issue
Description
- kimi cli is working with my account + monthly subscription
- i did
opencode auth loginwith providerMoonshot AI - start
opencode - select model
Kimi K2 Thinkingfrom provider listMoonshot AI - prompt "what is your name" ... and get this (incomplete) error
OpenCode version
1.0.137
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
Manjaro Linux KDE
Terminal
Konsole
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.
Ugh some dumb bug try this:
opencode run hello --print-logs --model moonshotai/kimi-k2-thinking
ok, i comes back with a lot of text (likely the system prompt) and at the end with "error=Your account org-18411144e9104296************
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.
yep ill fix
fix: https://github.com/sst/opencode/commit/b41051b4ee99efdda2c709b4384cef0f3325e831