Skip to content

Commit

Permalink
fix: ensure trace error logging is optional ⚙️
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Dec 27, 2024
1 parent 82cdbb6 commit 9e38e88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ const pullModel: PullModelFunction = async (modelId, options) => {
return { ok: true }
} catch (e) {
logError(e)
trace.error(e)
trace?.error(e)
return { ok: false, error: serializeError(e) }
}
}
Expand Down

0 comments on commit 9e38e88

Please sign in to comment.