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.
The image-description save gate derived the vision capability from the
provider the runtime detects from `base_url`, while the settings picker
used the provider the profile declares. A profile that binds `openai`
and points the base URL at a local gateway falls in between: the picker
offers the model, then PUT /document-parsing rejects it with 400.
Both sides now share one rule -- a model's own capability declaration
first, then the provider tables -- and the gate reads the picker's own
verdict, so the two cannot drift apart again.
Refs #2037
Signed-off-by: cgycorey <cgycorey@users.noreply.github.com>
The Image description model dropdown filters /api/settings/llm-options on
supports_vision, but the endpoint only emitted declared_vision, which no
frontend code reads, so the list was always empty.
Emit supports_vision per model, preferring the catalog's own capability
declaration and falling back to supports_vision(provider, model) for the
provider/MODEL_OVERRIDES defaults. The declaration has to win here: the
process-global override table only refreshes on the next runtime
resolution, so reading it alone left a freshly declared model hidden in a
newly started process -- the same asymmetry the issue reports. This is the
rule lightrag/roles.py already applies.
Signed-off-by: cgycorey <cgycorey@users.noreply.github.com>
Ship folder-based workspaces and data migration, daily practice, redesigned
provider and model settings, and streaming conversation improvements.
Synchronize README translations and document the archive/permanent-delete
upgrade behavior in assets/releases/ver1-6-9.md.
Reduce initial JavaScript by deduplicating English resources and loading
animation features after hydration. Keep the existing route size budgets.
Update regression fixtures and browser audits for scoped URLs and the new
settings and learning interfaces.
* 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>