mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-05 02:40:02 +08:00
Carry the #958 service-layer reasoning_effort override through the whole turn contract: the core TurnRequest LLMSelection accepts the field (validated against VALID_REASONING_EFFORTS, old two-ID payloads unchanged), the generated web contracts are regenerated, and ChatStateAdapter's asLLMSelection restores a legal override instead of dropping it. The composer gains a selector beside the model picker, offering only the levels the selected model supports (live supported_reasoning_efforts or the provider/model tables) narrowed to the wire vocabulary, hidden when the model has none. The choice persists on the conversation's llm_selection, so the next send uses it without a backend restart and other conversations are unaffected; switching models resets the override. Precedence stays conversation override -> profile/model default -> provider default, and the context-budget readout reports the effective effort beside the model when one was used.
Generated frontend contracts
The backend owns the wire contract. Do not edit files under schema/ or
generated/ by hand.
From the repository root, refresh both layers after a backend contract change:
python scripts/export_frontend_contracts.py
cd web && npm run contracts:generate
CI runs python scripts/export_frontend_contracts.py --check in backend contract
tests and npm run contracts:check before frontend typechecking. A drift failure
means the committed artifacts must be regenerated with the commands above.