Skip to content

Kimi K3 model returns repeated Invalid API Response errors after first message #12385

Description

@githubuser1256

Steps to reproduce

  1. Use Kimi K3 as the model provider in Cline
  2. Ask it to review documentation in a repo (e.g., "review the documentation in this repo, and also the ~/.grok .md files")
  3. Model starts responding with its first thoughts, then fails

Expected behavior

The model should generate valid tool calls (read_file, list_files, etc.) and proceed with the task.

Actual behavior

The model produced three failures in sequence:

  1. It said: "I'll review the repo documentation and the `~/.grok` markdown files. Let me start by mapping out what exists."

Then immediately:

Invalid API Response: The provider returned an empty or unparsable response. This is a provider-side issue where the model failed to generate valid output or returned tool calls that Cline cannot process. Retrying the request may help resolve this issue. (Request ID: GthmhrqFqIrPGgpDlbKfgsOXhJrfFrwz)

Invalid API Response: The provider returned an empty or unparsable response. This is a provider-side issue where the model failed to generate valid output or returned tool calls that Cline cannot process. Retrying the request may help resolve this issue. (Request ID: WAvBUjkbMYoFhWpdaYblbIBuWjdaYxWy)

Finally:

Cline hit repeated tool call failures. Try guiding it with a new prompt

Additional context

  • The response text that preceded the error was valid natural language, not tool call XML. It seems like Kimi K3 may have output text without wrapping it in the expected tool call format, or output malformed XML that Cline couldn't parse.
  • The same task works fine with other models (e.g., Claude).
  • This appears to be a model/provider-side issue where the model's output doesn't conform to what Cline expects, and Cline's retry mechanism also didn't recover.

Environment

  • Cline extension in VS Code on Windows 11
  • Model: Kimi K3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions