diff --git a/optillm.py b/optillm.py index 31bfa05f..c6f03012 100644 --- a/optillm.py +++ b/optillm.py @@ -729,7 +729,7 @@ def proxy_models(): client = default_client # Fetch models using the OpenAI client and return the raw response - models_response = client.models.list() + models_response = client.models.list().json() logger.debug('Models retrieved successfully') return models_response, 200