From c797f4e1f29981b2e0a399d727cc711e179e241d Mon Sep 17 00:00:00 2001 From: Bentlybro Date: Fri, 13 Feb 2026 11:53:07 +0000 Subject: [PATCH] Update ModelsTable.tsx --- .../admin/llms/components/ModelsTable.tsx | 219 +++++++++--------- 1 file changed, 111 insertions(+), 108 deletions(-) diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/llms/components/ModelsTable.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/llms/components/ModelsTable.tsx index a3a71f1224..d846075d60 100644 --- a/autogpt_platform/frontend/src/app/(platform)/admin/llms/components/ModelsTable.tsx +++ b/autogpt_platform/frontend/src/app/(platform)/admin/llms/components/ModelsTable.tsx @@ -116,118 +116,121 @@ export function ModelsTable({
- - - Model - Provider - Creator - Context Window - Max Output - Cost - Status - Actions - - - - {models.map((model) => { - const cost = model.costs?.[0]; - const provider = providerLookup.get(model.provider_id); - return ( - - -
{model.display_name}
-
- {model.slug} -
-
- - {provider ? ( - <> -
{provider.display_name}
-
- {provider.name} -
- - ) : ( - model.provider_id - )} -
- - {model.creator ? ( - <> -
{model.creator.display_name}
-
- {model.creator.name} -
- - ) : ( - - )} -
- {model.context_window.toLocaleString()} - - {model.max_output_tokens - ? model.max_output_tokens.toLocaleString() - : "—"} - - - {cost ? ( - <> -
- {cost.credit_cost} credits -
-
- {cost.credential_provider} -
- - ) : ( - "—" - )} -
- -
- - {model.is_enabled ? "Enabled" : "Disabled"} - - {model.is_recommended && ( - - - Recommended - + + + Model + Provider + Creator + Context Window + Max Output + Cost + Status + Actions + + + + {models.map((model) => { + const cost = model.costs?.[0]; + const provider = providerLookup.get(model.provider_id); + return ( + + +
{model.display_name}
+
+ {model.slug} +
+
+ + {provider ? ( + <> +
{provider.display_name}
+
+ {provider.name} +
+ + ) : ( + model.provider_id )} -
-
- -
- {model.is_enabled ? ( - + + {model.creator ? ( + <> +
{model.creator.display_name}
+
+ {model.creator.name} +
+ + ) : ( + + )} +
+ {model.context_window.toLocaleString()} + + {model.max_output_tokens + ? model.max_output_tokens.toLocaleString() + : "—"} + + + {cost ? ( + <> +
+ {cost.credit_cost} credits +
+
+ {cost.credential_provider} +
+ + ) : ( + "—" + )} +
+ +
+ + {model.is_enabled ? "Enabled" : "Disabled"} + + {model.is_recommended && ( + + + Recommended + + )} +
+
+ +
+ {model.is_enabled ? ( + + ) : ( + + )} + + - ) : ( - - )} - - -
-
- - ); - })} - +
+
+
+ ); + })} +