Przeglądaj źródła

Remove unused variant param use splitSidebarModelId for model

Alvin Unreal 2 miesięcy temu
rodzic
commit
c26d1765a9
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      src/tui.ts

+ 3 - 3
src/tui.ts

@@ -124,10 +124,10 @@ function agentRow(
 function compactAgentRow(
   label: string,
   model: string,
-  variant: string | undefined,
+  _variant: string | undefined,
   theme: { textMuted: unknown },
 ): JSX.Element {
-  const value = variant ? `${model} (${variant})` : model;
+  const modelName = splitSidebarModelId(model).model;
   return box(
     {
       width: '100%',
@@ -136,7 +136,7 @@ function compactAgentRow(
     },
     [
       text({ fg: theme.textMuted, width: 14 }, [label]),
-      text({ fg: theme.textMuted }, [value]),
+      text({ fg: theme.textMuted }, [modelName]),
     ],
   );
 }