Browse Source

fix: ollama custom model

Timothy Jaeryang Baek 5 months ago
parent
commit
6589f75b2d
1 changed files with 0 additions and 3 deletions
  1. 0 3
      backend/open_webui/apps/ollama/main.py

+ 0 - 3
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: