fix: remove stray console logs (#1084)

This commit is contained in:
Jeremy 2025-07-07 15:33:45 -07:00 committed by GitHub
parent a54dca0906
commit a073d71c28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -149,8 +149,6 @@ export async function POST(request: Request) {
const streamId = generateUUID(); const streamId = generateUUID();
await createStreamId({ streamId, chatId: id }); await createStreamId({ streamId, chatId: id });
console.log(JSON.stringify(uiMessages, null, 2));
const stream = createUIMessageStream({ const stream = createUIMessageStream({
execute: ({ writer: dataStream }) => { execute: ({ writer: dataStream }) => {
const result = streamText({ const result = streamText({
@ -204,8 +202,7 @@ export async function POST(request: Request) {
})), })),
}); });
}, },
onError: (error) => { onError: () => {
console.log(error);
return 'Oops, an error occurred!'; return 'Oops, an error occurred!';
}, },
}); });