From 4cb4f70b4794a79f4e568596ceb42e099d315585 Mon Sep 17 00:00:00 2001 From: "genevera (she/her)" Date: Sun, 8 Jun 2025 11:31:22 -0400 Subject: [PATCH] fixes broken models list proxying --- optillm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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