From 845ce6ae8dee4ad286d18ce63ba74044892bcb98 Mon Sep 17 00:00:00 2001 From: Bentlybro Date: Sat, 4 Apr 2026 18:56:24 +0000 Subject: [PATCH] fix(backend): Include is_enabled in public model list response --- autogpt_platform/backend/backend/server/v2/llm/routes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autogpt_platform/backend/backend/server/v2/llm/routes.py b/autogpt_platform/backend/backend/server/v2/llm/routes.py index 5b39d7f34d..fff22ddaf1 100644 --- a/autogpt_platform/backend/backend/server/v2/llm/routes.py +++ b/autogpt_platform/backend/backend/server/v2/llm/routes.py @@ -59,6 +59,7 @@ async def list_models( context_window=model.metadata.context_window, max_output_tokens=model.metadata.max_output_tokens, price_tier=model.metadata.price_tier, + is_enabled=model.is_enabled, is_recommended=model.is_recommended, capabilities=model.capabilities, costs=[ @@ -118,7 +119,8 @@ async def list_providers(): context_window=model.metadata.context_window, max_output_tokens=model.metadata.max_output_tokens, price_tier=model.metadata.price_tier, - is_recommended=model.is_recommended, + is_enabled=model.is_enabled, + is_recommended=model.is_recommended, capabilities=model.capabilities, costs=[ llm_model.LlmModelCost(