MoonshotAI / MoonshotAI/kimi-code
从视觉模型切换到纯文本模型后,会话卡死
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 7.5k
- Forks
- 1.2k
- Avg merge
- 11h 53m
- Merged PRs (30d)
- 350
Description
What version of Kimi Code is running?
0.36.1
Which open platform/subscription were you using?
Kimi Code
Which model were you using?
GLM-5.3
What platform is your computer?
MacOS: Darwin 25.5.0 arm64 arm
What issue are you seeing?
从视觉模型切换到纯文本模型后,会话报错卡死:
Error: [provider.api_error] 400 messages.content.type is invalid, allowed values: ['text']
What steps can reproduce the bug?
- 先用 K3 等视觉模型进入会话,交互过程发送过图片
- 模型用量限额,切换到纯文本模型,继续处理剩余非视觉任务时,直接报错,无法继续
What is the expected behavior?
希望切换纯文本模型后,能继续推进会话执行后续任务
Additional information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue by sending an image with a visual model, switching to a text-only model, and continuing the session. Trace the conversation message handling and model-switch path to find where non-text content remains in the request. Done means the session continues after the switch without the messages.content.type validation error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100