Skip to content

[Bug] Moonshot kimi-k2.5 reasoning_content missing in tool calls leads to API Error 400 #588

@q107580018

Description

@q107580018

Quick Summary

When using the Moonshot AI model kimi-k2.5 (a reasoning model) via the picoclaw-gateway, the API returns a 400 Bad Request error during multi-turn conversations or tool calls.

Error Log
Plaintext Error processing message: LLM call failed after retries: API request failed: Status: 400 Body: {"error":{"message":"thinking is enabled but reasoning_content is missing in assistant tool call message at index 4","type":"invalid_request_error"}}
Environment
Model: moonshot/kimi-k2.5

PicoClaw Version: Latest (main branch)

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions