فهرست منبع

refac: ollama api backward compatibility

Timothy Jaeryang Baek 3 ماه پیش
والد
کامیت
9a476ae41d
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  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):
 class ModelNameForm(BaseModel):
     model: str
     model: str
+    model_config = ConfigDict(
+        extra="allow",
+    )
 
 
 
 
 @router.post("/api/unload")
 @router.post("/api/unload")