mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-04 00:51:17 +08:00
Google's model list returns resource names such as "models/gemini-2.5-flash", but every MODEL_OVERRIDES key is a bare id and _static_capability() matched with startswith(), so the "gemini" rule never fired for a catalog-supplied id. Resolution fell through to the binding default, and for OpenAI-compatible bindings that default is no vision, so a model card left on Vision: Auto reported the model as text-only and dropped it from LightRAG's VLM selection. Declaring Vision explicitly hid the problem, which is why it looked like a UI restriction. Normalize the same prefix the embedding layer already strips (services/config/embedding_endpoint.py and services/embedding/adapters/gemini.py) before matching, so both spellings resolve identically. User-declared catalog overrides are untouched: they are keyed by the exact id the user typed. Closes #1579