Browse Source

feat: /ollama head route

Timothy J. Baek 1 year ago
parent
commit
57530d87f6
1 changed files with 6 additions and 0 deletions
  1. 6 0
      backend/apps/ollama/main.py

+ 6 - 0
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}