mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 01:10:10 +08:00
The admin serializer only sets the field when the catalog declares `codex_supported_reasoning_levels`, but both non-admin serializers copied the raw `.get(...)` result, which is `null` for every model that declares nothing. The web composer guards with `supported_reasoning_efforts !== undefined` before calling `.map`, so any ordinary account granted such a model crashed on `/chat` — admins were unaffected, which is why a fresh home never reproduced it (#2732, #2833). Share one `declared_reasoning_levels` helper across the admin serializer, `redacted_model_access`, `allowed_llm_options`, and the personal sign-in rows: each now either emits a normalized list or omits the key.