Browse Source

refac: ollama api backward compatibility

Timothy Jaeryang Baek 3 months ago
parent
commit
9a476ae41d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      backend/open_webui/routers/ollama.py

+ 3 - 0
backend/open_webui/routers/ollama.py

@@ -637,6 +637,9 @@ async def get_ollama_versions(request: Request, url_idx: Optional[int] = None):
 
 class ModelNameForm(BaseModel):
     model: str
+    model_config = ConfigDict(
+        extra="allow",
+    )
 
 
 @router.post("/api/unload")