Files
DeepTutor/deeptutor
Xinyu Du 1ef3995f62 fix(llm): stop sending reasoning_effort=minimal as top-level param to providers that reject it
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.
2026-05-06 21:28:27 +08:00
..
2026-05-04 16:21:41 +08:00
2026-04-26 21:52:53 +08:00
2026-05-03 16:35:52 +08:00
2026-05-01 01:39:08 +08:00
2026-05-01 01:39:08 +08:00
2026-04-25 22:08:44 +08:00
2026-04-23 19:29:16 +08:00
2026-05-04 16:21:41 +08:00
2026-05-01 13:51:45 +08:00
2026-04-23 19:29:16 +08:00
2026-05-02 20:16:07 +08:00
2026-05-01 13:51:45 +08:00
2026-04-23 19:29:16 +08:00