From 1c4c0f5525deaf8e753bf8c0f9f7fd7d1ce992a8 Mon Sep 17 00:00:00 2001 From: Veightor <47860869+Veightor@users.noreply.github.com> Date: Mon, 26 Jan 2026 16:04:41 -0500 Subject: [PATCH] Provider: clean up Chutes integration for merge compatibility --- src/commands/models/list.registry.ts | 19 ++++++++++++------- src/commands/models/list.table.ts | 4 ---- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/commands/models/list.registry.ts b/src/commands/models/list.registry.ts index a7f1a9925..dc0ce7863 100644 --- a/src/commands/models/list.registry.ts +++ b/src/commands/models/list.registry.ts @@ -78,8 +78,19 @@ export function toModelRow(params: { cfg && authStore ? hasAuthForProvider(model.provider, cfg, authStore) : (availableKeys?.has(modelKey(model.provider, model.id)) ?? false); - const aliasTags = aliases.length > 0 ? [`alias:${aliases.join(",")}`] : []; + const mergedTags = new Set(tags); + + const cost = (model as any).cost; + if (cost && (cost.input > 0 || cost.output > 0)) { + mergedTags.add(`cost:${cost.input}/${cost.output}`); + } + + if ((model as any).confidentialCompute) { + mergedTags.add("TEE"); + } + + const aliasTags = aliases.length > 0 ? [`alias:${aliases.join(",")}`] : []; if (aliasTags.length > 0) { for (const tag of mergedTags) { if (tag === "alias" || tag.startsWith("alias:")) mergedTags.delete(tag); @@ -94,12 +105,6 @@ export function toModelRow(params: { contextWindow: model.contextWindow ?? null, local, available, - cost: (model as any).cost - ? { - input: (model as any).cost.input, - output: (model as any).cost.output, - } - : undefined, tags: Array.from(mergedTags), missing: false, }; diff --git a/src/commands/models/list.table.ts b/src/commands/models/list.table.ts index d436a0782..f2470168d 100644 --- a/src/commands/models/list.table.ts +++ b/src/commands/models/list.table.ts @@ -42,7 +42,6 @@ export function printModelTable( pad("Ctx", CTX_PAD), pad("Local", LOCAL_PAD), pad("Auth", AUTH_PAD), - pad("Cost (In/Out)", COST_PAD), "Tags", ].join(" "); runtime.log(rich ? theme.heading(header) : header); @@ -55,8 +54,6 @@ export function printModelTable( const localLabel = pad(localText, LOCAL_PAD); const authText = row.available === null ? "-" : row.available ? "yes" : "no"; const authLabel = pad(authText, AUTH_PAD); - const costText = row.cost ? `${row.cost.input}/${row.cost.output}` : "-"; - const costLabel = pad(costText, COST_PAD); const tagsLabel = row.tags.length > 0 ? rich @@ -86,7 +83,6 @@ export function printModelTable( ctxLabel, coloredLocal, coloredAuth, - costLabel, tagsLabel, ].join(" "); runtime.log(line);