mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 16:49:24 +08:00
* feat: add per-conversation reasoning-effort override (#641) * refactor(config): parse the LLM selection once `apply_llm_selection_to_catalog` already calls `LLMSelection.from_payload`, so resolving the override parsed the same payload a second time — meaning a malformed `reasoning_effort` was validated and raised from two places. `from_payload` is idempotent on an already-parsed value, so parse once and pass the object through. Also correct the `VALID_REASONING_EFFORTS` comment: it called itself the single source of truth while pointing at two things that are not the same vocabulary. `reasoning_params.py` maps a level onto a provider's actual knob, and the per-backend `efforts` lists say what each subagent CLI accepts (some are empty — no effort flag at all). This constant is only the request-validation union. --------- Co-authored-by: Ademola <ademicho@gmail> Co-authored-by: Frank <bingxizhao@novix.science>