Files
DeepTutor/tests/services
Bingxi Zhao (Frank) b244a0c868 fix(llm): clamp an explicit thinking-off request the same way an inferred one is
#1366 gave the book's reader-facing blocks a way to ask for no thinking
at all, and the merge in 4e2f0885 now carries that explicit effort into
the retry as well — so a family that answers HTTP 400 to
reasoning_effort="none" (#734: gemini-3, gemini-2.5-pro) would fail
twice per block instead of once.

The narrowing table already existed, but only inside
default_reasoning_effort_for, which is consulted when the caller says
nothing. A caller that names "none" itself skipped it. Names the rule as
thinking_off_effort_for and routes an explicit "none" through it too,
next to _MINIMAL_NOT_OFF_PATTERNS so extending one table still prompts a
look at the other.

Verified: gemini-3-pro / gemini-2.5-pro resolve to minimal;
gemini-2.5-flash and gpt-4o keep none.

Patch authored in the PR-review session.
2026-09-11 00:00:14 +08:00
..
2026-09-06 13:46:29 +08:00
2026-09-03 01:38:54 +08:00
2026-09-06 13:46:29 +08:00
2026-09-06 13:46:29 +08:00
2026-09-06 13:46:29 +08:00
2026-08-19 17:34:52 +08:00
2026-09-03 01:38:54 +08:00
2026-03-15 00:04:34 +08:00
2026-09-06 13:46:29 +08:00
2026-09-03 01:38:54 +08:00