Skip to content

The provider error is caused by tool schema incompatibility, not by prompt failure. #24158

Closed as duplicate

Description

@fernandolemos92

Description

Relevant error:
Invalid request: tools.function.parameters is not a valid moonshot flavored json schema, details: <At path 'properties.variantOptions': conflicting keywords found after $ref expansion: description>

Diagnosis:
OpenCode is sending a function/tool JSON schema that Moonshot AI rejects with HTTP 400.
This appears to be a provider compatibility issue involving tool/function parameters schema, specifically around properties.variantOptions and description after $ref expansion.

Plugins

No response

OpenCode version

1.14.22

Steps to reproduce

  1. /connect
  2. insert my API from opencode
  3. /models
  4. pick Kimi k2.5 from GO package
  5. try any prompt -> receive a Error from provider: Provider returned error

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

VSCODE Terminal

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 24, 2026
  2. github-actions commented on Apr 24, 2026

    @github-actions
    Contributor

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

    These issues describe the same or closely related Kimi/Moonshot provider errors during tool calling. Please review them and comment there if your issue is the same, or clarify what is different about your report.

  3. rekram1-node commented on Apr 28, 2026

    @rekram1-node
    Collaborator

    I merged a fix may not fix it 100% yet but let's discuss further if you are still getting this error on latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)windows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions