Skip to content

Commit b61c052

Browse files
committed
Add metadata to the streamText call
1 parent e4f1547 commit b61c052

File tree

1 file changed

+1
-0
lines changed
  • references/ai-chat/src/trigger

1 file changed

+1
-0
lines changed

references/ai-chat/src/trigger/chat.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ export const aiChat = chat.task({
400400
},
401401
experimental_telemetry: {
402402
isEnabled: true,
403+
metadata: clientData?.userId ? { userId: clientData.userId } : undefined,
403404
},
404405
});
405406
},

0 commit comments

Comments
 (0)