MoonshotAI / MoonshotAI/kimi-cli

Error code: 400

Open
#1,903 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
11.4k
Forks
1.3k
Avg merge
9h 47m
Merged PRs (30d)
2

Description

What version of Kimi Code CLI is running?

kimi, version 1.34.0

Which open platform/subscription were you using?

kimi code

Which model were you using?

kimi-for-coding

What platform is your computer?

macos

What issue are you seeing?

LLM provider error: Error code: 400 - {'error': {'message': "Invalid request: tools.function.parameter
s is not a valid moonshot flavored json schema, details: <At path 'properties.variantOptions': conflic
ting keywords found after $ref expansion: description>", 'type': 'invalid_request_error'}}

What steps can reproduce the bug?

After few questions error appears

What is the expected behavior?

No response

Additional information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the error with Kimi Code CLI 1.34.0 on macOS after several questions, then trace the tool schema involving properties.variantOptions and its $ref expansion. Done means the kimi-for-coding request no longer returns the Moonshot 400 invalid-schema error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.