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
"Provider returned error" hides actual Kimi/Moonshot API errors | Opencode GO | kimi k2.6 #23665
I just purchased the OpenCode Go subscription today and was excited to use Kimi K2.6, but encountered this issue immediately.
When using Kimi K2.6 (or other Moonshot models) with OpenCode Go provider, errors from the upstream API are wrapped by the Vercel AI SDK with a generic "Provider returned error" message, losing the actual error details. Additionally, schemas with $ref cause "conflicting keywords found after $ref expansion" errors for Moonshot/Kimi APIs.
Root Cause:
Vercel AI SDK wraps provider errors with "Provider returned error" and stores real error in metadata.raw
Moonshot/Kimi APIs reject JSON schemas that have $ref with additional keywords like description after $ref expansion
Plugins
["opencode-ralph-loop"]
OpenCode version
1.4.11
Steps to reproduce
Subscribe to OpenCode Go
Configure OpenCode to use Kimi K2.6 model (opencode-go/kimi-k2.6)
Run a prompt that triggers an API error (e.g., using tool calls)
Error shows as generic "Provider returned error" instead of actual reason
If using tools, get error: tools.function.parameters is not a valid moonshot flavored json schema, details: <At path 'properties.variantOptions': conflicting keywords found after $ref expansion: description>
Activity
github-actions commentedon Apr 21, 2026
This issue might be a duplicate of existing issues. Please check:
$refschema conflict error you're seeing with tool callsRalexs0096 commentedon Apr 27, 2026
+1
rekram1-node commentedon Apr 27, 2026
This is an issue with one of your mcp servers having invalid tools