MoonshotAI / MoonshotAI/kimi-cli

kimi cli 在第三方供应商情况下,图片上传包含多余参数 || kimi cli In the case of third-party providers, image upload contains redundant parameters

Open
#1,791 0 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.30.0

Which open platform/subscription were you using?

custom

Which model were you using?

kimi-k2p5

What platform is your computer?

everyone

What issue are you seeing?

截取片段:```
'type': 'image_url'}, {'text': '', 'type': 'te
xt'}]; Extra inputs are not permitted, field: 'messages[3].***.list[Chat
MessageContent][2].image_url.id', value: None', 'type': 'invalid_request_
error', 'param': '', 'code': 'invalid_request_error'}}



### What steps can reproduce the bug?

使用多模态图片上传

### What is the expected behavior?

_No response_

### Additional information

_No response_

<!--This is a translation content dividing line, the content below is generated by machine, please do not modify the content below-->
---
### What version of Kimi Code CLI is running?

kimi, version 1.30.0

### Which open platform/subscription were you using?

custom

### Which model were you using?

kimi-k2p5

### What platform is your computer?

everyone

### What issue are you seeing?

Intercepted fragment:```
'type\': \'image_url\'}, {\'text\': \'</image>\', \'type\': \'te
xt\'}]; Extra inputs are not permitted, field: \'messages[3].***.list[Chat
MessageContent][2].image_url.id\', value: None', 'type': 'invalid_request_
error', 'param': '', 'code': 'invalid_request_error'}}
What steps can reproduce the bug?

Use multimodal image uploads

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 a multimodal image upload with a custom provider using Kimi CLI 1.30.0, then trace the generated request around the reported messages[3] image_url field. Done means the redundant image_url.id parameter is no longer sent and the provider accepts the request.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.