diff --git a/packages/core/src/runpromptcontext.ts b/packages/core/src/runpromptcontext.ts index 02aebaf8d8..7e88c06e7b 100644 --- a/packages/core/src/runpromptcontext.ts +++ b/packages/core/src/runpromptcontext.ts @@ -91,14 +91,14 @@ export function createChatTurnGenerationContext( warn: (...args: any[]) => { const line = consoleLogFormat(...args) if (line) { - trace.log(line) + trace.warn(line) logWarn(line) } }, error: (...args: any[]) => { const line = consoleLogFormat(...args) if (line) { - trace.log(line) + trace.error(line) logError(line) } },