From 6589f75b2d4b2476ac618d1e910beb3a1702fc8f Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sun, 17 Nov 2024 16:01:47 -0800 Subject: [PATCH] fix: ollama custom model --- backend/open_webui/apps/ollama/main.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/backend/open_webui/apps/ollama/main.py b/backend/open_webui/apps/ollama/main.py index 463cc86cc..09862c111 100644 --- a/backend/open_webui/apps/ollama/main.py +++ b/backend/open_webui/apps/ollama/main.py @@ -931,9 +931,6 @@ async def generate_chat_completion( del payload["metadata"] model_id = payload["model"] - if ":" not in model_id: - model_id = f"{model_id}:latest" - model_info = Models.get_model_by_id(model_id) if model_info: