From a194e3677e546c9437dee4376eeb6ced940cb466 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Sat, 21 Dec 2024 08:01:33 +0000 Subject: [PATCH] =?UTF-8?q?refactor:=20=E2=99=BB=EF=B8=8F=20filter=20model?= =?UTF-8?q?=20aliases=20by=20source=20before=20logging?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/cli/src/modelalias.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/cli/src/modelalias.ts b/packages/cli/src/modelalias.ts index 4f3c0785a..e4cef4fa0 100644 --- a/packages/cli/src/modelalias.ts +++ b/packages/cli/src/modelalias.ts @@ -40,7 +40,9 @@ export function applyModelOptions( export function logModelAliases() { const modelAlias = runtimeHost.modelAliases if (Object.values(modelAlias).some((m) => m.source !== "default")) - Object.entries(runtimeHost.modelAliases).forEach(([key, value]) => - logVerbose(` ${key}: ${value.model} (${value.source})`) - ) + Object.entries(runtimeHost.modelAliases) + .filter(([, value]) => value.source !== "default") + .forEach(([key, value]) => + logVerbose(` ${key}: ${value.model} (${value.source})`) + ) }