Skip to content

Commit

Permalink
refactor: simplify model logging and pulling process ✨
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Dec 15, 2024
1 parent 7ab703f commit 95407cb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/cli/src/nodehost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(", ")}`
)
}

Expand All @@ -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}`)
Expand Down

0 comments on commit 95407cb

Please sign in to comment.