diff --git a/backend/open_webui/main.py b/backend/open_webui/main.py index b7ec53ab7d..7a3ce18b9b 100644 --- a/backend/open_webui/main.py +++ b/backend/open_webui/main.py @@ -1822,6 +1822,9 @@ async def chat_completion( if not assistant_message_id: continue + if fallback_model is not None and target_model_id == model_id: + target_model_id = fallback_model['id'] + # Per-model metadata: own message_id + model per_model_metadata = { **metadata,