forked from open-webui/open-webui
fix: default openai api value
This commit is contained in:
parent
35918cefcc
commit
df49e4e1cc
3 changed files with 4 additions and 3 deletions
|
@ -175,8 +175,7 @@ async def get_all_models():
|
|||
for idx, url in enumerate(app.state.OPENAI_API_BASE_URLS)
|
||||
]
|
||||
responses = await asyncio.gather(*tasks)
|
||||
responses = list(filter(lambda x: x is not None, responses))
|
||||
|
||||
responses = list(filter(lambda x: x is not None and "error" not in x, responses))
|
||||
models = {
|
||||
"data": merge_models_lists(
|
||||
list(map(lambda response: response["data"], responses))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue