From 95407cb05f0728f025e3b9dbea5ad731afed8508 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Sun, 15 Dec 2024 16:28:35 +0000 Subject: [PATCH] =?UTF-8?q?refactor:=20simplify=20model=20logging=20and=20?= =?UTF-8?q?pulling=20process=20=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/cli/src/nodehost.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/cli/src/nodehost.ts b/packages/cli/src/nodehost.ts index 8bafb2c435..39cc1bd4e5 100644 --- a/packages/cli/src/nodehost.ts +++ b/packages/cli/src/nodehost.ts @@ -121,7 +121,7 @@ class ModelManager implements ModelService { if (models.find((m) => m.model === model)) return { ok: true } logVerbose( - `${provider}: ${model} not found in\n${YAMLStringify(models.map((m) => m.model))}` + `${provider}: ${model} not found in\n${models.map((m) => m.model).join(", ")}` ) } @@ -139,10 +139,6 @@ class ModelManager implements ModelService { 2 ), }) - if (resPull.ok) { - const resj = await resPull.json() - logVerbose(JSON.stringify(resj, null, 2)) - } if (resPull.ok) this.pulled.push(modelid) else { logError(`${provider}: failed to pull model ${model}`)