mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 10:40:42 +08:00
Follow-up to #642: _build_kwargs still emitted thinking={enabled, budget_tokens} for any configured reasoning_effort, which the same families that reject temperature (Opus 4.7/4.8, Sonnet 5, Fable 5) reject with a 400 — so the exact setups #642 enabled failed on every request once an effort level was set. Real effort levels now map to adaptive thinking there (no budget headroom inflation), thinking-off sentinels (none/minimal/minimum) omit the param entirely (explicit disabled is itself rejected on Fable 5), and Opus 4.6/Sonnet 4.6 keep the enabled+budget_tokens path unchanged. The constant is renamed to _EFFORT_BASED_FAMILIES since it now gates both removed params. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>