forked from open-webui/open-webui
fix: settings getModels issue
This commit is contained in:
parent
38321355d3
commit
1e919abda3
2 changed files with 7 additions and 2 deletions
|
@ -80,6 +80,7 @@ async def get_openai_urls(user=Depends(get_admin_user)):
|
|||
|
||||
@app.post("/urls/update")
|
||||
async def update_openai_urls(form_data: UrlsUpdateForm, user=Depends(get_admin_user)):
|
||||
await get_all_models()
|
||||
app.state.OPENAI_API_BASE_URLS = form_data.urls
|
||||
return {"OPENAI_API_BASE_URLS": app.state.OPENAI_API_BASE_URLS}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue