MoonshotAI / MoonshotAI/kimi-code

模型请求失败,本轮对话已中断 400 Invalid assistant message: content or tool_calls must be set provider.api_error · HTTP 400

Open
#2,852 0 comments 0 reactions 0 assignees View on GitHub

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.35.0

Which open platform/subscription were you using?

取消正在执行的额任务时

Which model were you using?

kimi3

What platform is your computer?

mac

What issue are you seeing?

模型请求失败,本轮对话已中断 400 Invalid assistant message: content or tool_calls must be set provider.api_error · HTTP 400

What steps can reproduce the bug?

模型请求失败,本轮对话已中断 400 Invalid assistant message: content or tool_calls must be set provider.api_error · HTTP 400

What is the expected behavior?

No response

Additional information

模型请求失败,本轮对话已中断 400 Invalid assistant message: content or tool_calls must be set provider.api_error · HTTP 400,永远不能恢复,只能结束kimi /resume还是重现问题

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 failure in Kimi Code 0.35.0 on macOS with kimi3: cancel an active task, then try /resume. Trace the provider.api_error handling for the “content or tool_calls must be set” response; done means the conversation can recover after cancellation without reproducing the HTTP 400 error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.