Skip to content

Commit d9dfa31

Browse files
joybnuuyclaude
andcommitted
fix: add KIMI_THINKING_DISABLED env var + revert reasoning_content patches
Reverts the reasoning_content patches (ineffective — OpenCode Go proxy strips them). Adds KIMI_THINKING_DISABLED=1 env var to explicitly send thinking:disabled in the request body, working around the OpenCode proxy bug (anomalyco/opencode#10996). Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent a86afe1 commit d9dfa31

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/kimi_cli/llm.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ def create_llm(
152152

153153
if gen_kwargs:
154154
chat_provider = chat_provider.with_generation_kwargs(**gen_kwargs)
155+
if os.getenv("KIMI_THINKING_DISABLED", "").lower() in ("1", "true", "yes"):
156+
chat_provider = chat_provider.with_thinking("off")
155157
case "openai_legacy":
156158
from kosong.contrib.chat_provider.openai_legacy import OpenAILegacy
157159

0 commit comments

Comments
 (0)