fix: openai proxy issue

This commit is contained in:
Timothy J. Baek 2024-03-18 11:04:22 -07:00
parent ec9895a14a
commit b188143f01

View file

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