mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-17 06:45:24 +00:00
refac: ollama api backward compatibility
This commit is contained in:
parent
2eab43c35e
commit
9a476ae41d
1 changed files with 3 additions and 0 deletions
|
|
@ -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")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue