mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +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):
|
||||
model: str
|
||||
model_config = ConfigDict(
|
||||
extra="allow",
|
||||
)
|
||||
|
||||
|
||||
@router.post("/api/unload")
|
||||
|
|
|
|||
Loading…
Reference in a new issue