mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-06 03:31:05 +08:00
DeepSeek only accepts high / max / low / medium / xhigh for reasoning_effort, but the code unconditionally forwarded the configured value as a top-level parameter. When LLM_REASONING_EFFORT=minimal (DeepTutor convention for "disable thinking"), DeepSeek rejects the request with: unknown variant minimal, expected one of high, low, medium, max, xhigh Fix across three provider layers: - provider_core: skip top-level reasoning_effort when the provider spec has thinking_style and the semantic effort is "minimal" — the thinking control is already expressed via extra_body - tutorbot: same logic + add deepseek & minimax to the extra_body chain (they were missing, so thinking disable was silently ignored) - cloud_provider: skip reasoning_effort=minimal for providers that handle thinking through extra_body Other providers (OpenAI, Anthropic, Gemini, Mistral, etc.) are unaffected because they either don't have thinking_style or accept minimal natively.