Merge pull request #1199 from open-webui/dev

fix: openai proxy issue
This commit is contained in:
Timothy Jaeryang Baek
2024-03-18 13:04:53 -05:00
committed by GitHub

View File

@@ -198,7 +198,9 @@ async def get_all_models():
list(
map(
lambda response: (
response["data"] if "data" in response else None
response["data"]
if response and "data" in response
else None
),
responses,
)