Add metadata to the streamText call

This commit is contained in:
Eric Allam
2026-03-12 10:16:15 +00:00
parent 627db05c56
commit 6cdb662ecf
+1
View File
@@ -400,6 +400,7 @@ export const aiChat = chat.task({
},
experimental_telemetry: {
isEnabled: true,
metadata: clientData?.userId ? { userId: clientData.userId } : undefined,
},
});
},