You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: disable reasoning/thinking mode by default for hybrid-thinking models
Hybrid-thinking models such as Qwen3 emit <think>...</think> preambles that
corrupt tool-call output and make agentic runs fail. This turns thinking off
by default by injecting chat_template_kwargs.enable_thinking=false (plus a
top-level enable_thinking for DashScope-style servers) via extra_body on both
the agentic and single-shot LLM paths.
- Config.disable_thinking (backend) + Configuration.disable_thinking (CLI),
default True; DISABLE_THINKING env var (default true) for web-app mode
- Provider guard: injection is skipped for first-party APIs that reject
unknown fields and don't serve such models (OpenAI, Azure OpenAI, Bedrock,
Anthropic); local/self-hosted OpenAI-compatible servers ignore or honor it
- `codewiki config set --disable-thinking/--enable-thinking` and
`codewiki generate --disable-thinking/--enable-thinking`; escape hatch is
--enable-thinking / DISABLE_THINKING=false
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments