Files
qiuqianyi66 51265a568c fix(api): omit supported_reasoning_efforts instead of emitting null (#2845)
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.
2026-11-30 14:18:24 +08:00
..
2026-09-21 02:30:40 +08:00
2026-09-24 09:59:56 +08:00