Skip to content

Commit

Permalink
refactor: ♻️ filter model aliases by source before logging
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Dec 21, 2024
1 parent 0b0e503 commit a194e36
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/cli/src/modelalias.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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})`)
)
}

0 comments on commit a194e36

Please sign in to comment.