forked from open-webui/open-webui
fix: address comment in pr #1687
This commit is contained in:
parent
d5f60b119c
commit
c9c9660459
4 changed files with 92 additions and 43 deletions
|
@ -92,10 +92,6 @@ async def get_ollama_api_urls(user=Depends(get_admin_user)):
|
|||
return {"OLLAMA_BASE_URLS": app.state.OLLAMA_BASE_URLS}
|
||||
|
||||
|
||||
def get_ollama_endpoint(url_idx: int = 0):
|
||||
return app.state.OLLAMA_BASE_URLS[url_idx]
|
||||
|
||||
|
||||
class UrlUpdateForm(BaseModel):
|
||||
urls: List[str]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue