Skip to content

Kilo Kimi K2.6 requests send invalid reasoning_details #24410

@joshbochu

Description

@joshbochu

Kilo Gateway requests for moonshotai/kimi-k2.6 can fail with a 500 after a prior assistant reasoning turn.

The request body includes reasoning_details as a plain string derived from reasoning text. Kilo/OpenRouter-style reasoning_details should be structured data, so opencode should not synthesize that field from plain reasoning text.

Repro context:

  • provider: kilo
  • model: moonshotai/kimi-k2.6
  • base URL: https://api.kilo.ai/api/gateway
  • failing request includes assistant reasoning plus tool calls and sends reasoning_details: "..."

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions