forked from open-webui/open-webui
fix: openai proxy issue
This commit is contained in:
parent
212e051683
commit
ec9895a14a
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