Merge pull request #1199 from open-webui/dev
Some checks failed
Python CI / Format Backend (latest) (pull_request) Failing after 11s
Bun CI / Format & Build Frontend (pull_request) Successful in 1m4s

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