Skip to content

Commit

Permalink
feat: 🎸 add quiet mode check for verbose logs
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Dec 12, 2024
1 parent 92b1288 commit 014e886
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/cli/src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,10 @@ export async function runScriptInternal(
}

logInfo(`genaiscript: ${scriptId}`)
Object.entries(runtimeHost.modelAliases).forEach(([key, value]) =>
logVerbose(` ${key}: ${value.model}`)
)
if (!isQuiet)
Object.entries(runtimeHost.modelAliases).forEach(([key, value]) =>
logVerbose(` ${key}: ${value.model}`)
)

if (out) {
if (removeOut) await emptyDir(out)
Expand Down

0 comments on commit 014e886

Please sign in to comment.