MoonshotAI / MoonshotAI/kimi-cli

LLM provider error: Error code: 400

Open
#2,367 0 comments 1 reaction 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?

1.44.0

Which open platform/subscription were you using?

/login

Which model were you using?

No response

What platform is your computer?

No response

What issue are you seeing?

• Used ReadMediaFile (public/favicon.ico)

LLM provider error: Error code: 400 - {'error': {'message': 'Invalid request: unsupported image format: image/x-icon', 'type': 'invalid_request_error'}}
If this persists, run kimi export and send the exported data to support for assistance. Please do not share the exported file publicl

What steps can reproduce the bug?
Image
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 ReadMediaFile call with public/favicon.ico and trace how the CLI handles the image before sending it to the LLM provider. No source file or test is named in the report. Done means the same .ico input no longer produces an unsupported image format 400 error, with coverage for this case.

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
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.