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
commit d865b9fe59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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,
)