forked from open-webui/open-webui
main #2
1 changed files with 3 additions and 1 deletions
|
@ -197,7 +197,9 @@ async def get_all_models():
|
||||||
"data": merge_models_lists(
|
"data": merge_models_lists(
|
||||||
list(
|
list(
|
||||||
map(
|
map(
|
||||||
lambda response: response["data"] if response else None,
|
lambda response: (
|
||||||
|
response["data"] if "data" in response else None
|
||||||
|
),
|
||||||
responses,
|
responses,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue