open-webui/backend/open_webui
Classic298 e0087acfb4
fix: model fallback routing for all model types and default model selection (#21736)
fix: model fallback routing for all model types and default model selection

Backend: When ENABLE_CUSTOM_MODEL_FALLBACK is active and a custom model's
base model is unavailable, the fallback now swaps the model and form data
to the configured default model directly. This ensures routing uses the
fallback model's type (pipe, Ollama, or OpenAI) instead of the original
model's type, which previously caused "Model not found" errors when the
fallback was a different backend type.

Frontend: Fixed default model selection in new chat initialization where
the admin-configured default models were always overwritten by the first
available model. The first-available fallback now only triggers when the
configured defaults don't resolve to valid available models.
2026-02-22 15:24:14 -06:00
..
data refac: mv backend files to /open_webui dir 2024-09-04 16:54:48 +02:00
internal chore: format 2026-02-11 16:24:11 -06:00
migrations refac: scim 2026-02-13 14:27:11 -06:00
models refac 2026-02-21 16:27:25 -06:00
retrieval refac 2026-02-21 15:35:34 -06:00
routers refac 2026-02-21 16:27:25 -06:00
socket refac 2026-02-19 16:32:41 -06:00
static refac 2025-08-10 00:02:58 +04:00
storage chore: format 2026-02-11 16:24:11 -06:00
test refac 2026-02-21 14:19:28 -06:00
tools refac 2026-02-19 14:06:24 -06:00
utils refac 2026-02-21 15:35:34 -06:00
__init__.py Update __init__.py 2025-04-15 09:55:35 +02:00
alembic.ini fix: Alembic CLI commands from failing 2025-08-15 04:17:47 -04:00
config.py enh: OAUTH_GROUP_DEFAULT_SHARE 2026-02-21 15:08:06 -06:00
constants.py feat/enh: optional password validation 2025-11-20 17:44:49 -05:00
env.py refac 2026-02-21 15:35:34 -06:00
functions.py chore: format 2026-02-11 16:24:11 -06:00
main.py fix: model fallback routing for all model types and default model selection (#21736) 2026-02-22 15:24:14 -06:00
tasks.py refac 2026-02-12 15:29:34 -06:00