Files
DeepTutor/tests
Steven Huang e82b2dfaab fix(llm): match Gemini ids carrying the models/ resource prefix
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
2026-09-25 01:00:25 +08:00
..
2026-09-24 09:59:56 +08:00
2026-09-06 13:46:29 +08:00
2026-09-21 02:30:40 +08:00
2026-09-24 09:59:56 +08:00
2026-09-21 02:30:40 +08:00