mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 07:10:15 +08:00
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>