Skip to content

Commit 969d2bc

Browse files
committed
✨: Improve logging condition for memoryAnswer detection
Updated the logging function to check if memoryAnswer exists.
1 parent f84c0e6 commit 969d2bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/core/src/runpromptcontext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ export function createChatGenerationContext(
555555
: ""),
556556
{ userState, trace }
557557
)
558-
adbgm(`found ${memoryAnswer}`)
558+
if (memoryAnswer) adbgm(`found ${memoryAnswer}`)
559559
}
560560

561561
const res = await ctx.runPrompt(

0 commit comments

Comments
 (0)