"git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "e7b8921a39aada294417dab32738bd2ee8723b71"
Commit 57530d87 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

feat: /ollama head route

parent 2c030218
...@@ -81,6 +81,12 @@ async def check_url(request: Request, call_next): ...@@ -81,6 +81,12 @@ async def check_url(request: Request, call_next):
return response return response
@app.head("/")
@app.get("/")
async def get_status():
return {"status": True}
@app.get("/urls") @app.get("/urls")
async def get_ollama_api_urls(user=Depends(get_admin_user)): async def get_ollama_api_urls(user=Depends(get_admin_user)):
return {"OLLAMA_BASE_URLS": app.state.OLLAMA_BASE_URLS} return {"OLLAMA_BASE_URLS": app.state.OLLAMA_BASE_URLS}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment