Skip to content

[Bug] OpenCode Go: kimi-k2.6 fails with HTTP 400 'cannot specify both thinking and reasoning_effort' — works via plain client #38329

Description

@AlfieChang

Description

Every call to opencode-go/kimi-k2.6 fails with HTTP 400:

{"error": {"message": "Error from provider: cannot specify both 'thinking' and 'reasoning_effort'"}}

The client sends Moonshot's native thinking toggle together with top-level reasoning_effort, and the upstream rejects requests containing both. kimi-k3 on the same Go subscription works fine — it got the same class of fixes via models.dev#3331 (see #37552), but K2.6 never got that pass, even though it's still a paid model in the Go catalog.

One data point that shows the upstream itself is fine: a plain OpenAI-compatible client (sends only model + messages + token limits, no thinking/reasoning_effort/temperature/tools) hits the same endpoint https://opencode.ai/zen/go/v1/chat/completions with kimi-k2.6 and the same API key, and gets 200. So this is about the request envelope opencode builds for K2.6, not a model or gateway outage.

Related: #37771 (K2.6 also affected by the mcp/system field rejection), #27054, #38219.

Happy to test any patch.

Plugins

None

OpenCode version

N/A — reproduced via direct API calls to the Go endpoint

Steps to reproduce

  1. opencode run -m opencode-go/kimi-k2.6 "hello" → HTTP 400 cannot specify both 'thinking' and 'reasoning_effort'
  2. opencode run -m opencode-go/kimi-k3 "hello" → works
  3. Direct call to https://opencode.ai/zen/go/v1/chat/completions with a minimal payload (model, messages only) for kimi-k2.6 → 200

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Git Bash

Metadata

Metadata

Assignees

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