mirror of
https://github.com/open-webui/open-webui
synced 2025-05-01 19:44:38 +00:00
commit
d865b9fe59
@ -198,7 +198,9 @@ async def get_all_models():
|
|||||||
list(
|
list(
|
||||||
map(
|
map(
|
||||||
lambda response: (
|
lambda response: (
|
||||||
response["data"] if "data" in response else None
|
response["data"]
|
||||||
|
if response and "data" in response
|
||||||
|
else None
|
||||||
),
|
),
|
||||||
responses,
|
responses,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user