refac: ollama api backward compatibility

This commit is contained in:
Timothy Jaeryang Baek 2025-07-06 14:40:21 +04:00
parent 2eab43c35e
commit 9a476ae41d

View file

@ -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")