Skip to content

Commit a25ba8e

Browse files
authored
Merge pull request #195 from genevera/fix-model-list
fixes broken models list proxying
2 parents 1dca0ba + 4cb4f70 commit a25ba8e

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)