Skip to content

Commit 4cb4f70

Browse files
geneveraGenevera
authored andcommitted
fixes broken models list proxying
1 parent 1dca0ba commit 4cb4f70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

optillm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ def proxy_models():
729729
client = default_client
730730

731731
# Fetch models using the OpenAI client and return the raw response
732-
models_response = client.models.list()
732+
models_response = client.models.list().json()
733733

734734
logger.debug('Models retrieved successfully')
735735
return models_response, 200

0 commit comments

Comments
 (0)