From 57530d87f6b5248ea55488684cd9498b5493b842 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 2 Apr 2024 02:03:13 -0700 Subject: [PATCH] feat: /ollama head route --- backend/apps/ollama/main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/apps/ollama/main.py b/backend/apps/ollama/main.py index 818b53d93..b89d7bf52 100644 --- a/backend/apps/ollama/main.py +++ b/backend/apps/ollama/main.py @@ -81,6 +81,12 @@ async def check_url(request: Request, call_next): return response +@app.head("/") +@app.get("/") +async def get_status(): + return {"status": True} + + @app.get("/urls") async def get_ollama_api_urls(user=Depends(get_admin_user)): return {"OLLAMA_BASE_URLS": app.state.OLLAMA_BASE_URLS}