From a073d71c289d265d62e11c24ce1625896e34ccf1 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Mon, 7 Jul 2025 15:33:45 -0700 Subject: [PATCH] fix: remove stray console logs (#1084) --- app/(chat)/api/chat/route.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/(chat)/api/chat/route.ts b/app/(chat)/api/chat/route.ts index 65ab205..3d2663e 100644 --- a/app/(chat)/api/chat/route.ts +++ b/app/(chat)/api/chat/route.ts @@ -149,8 +149,6 @@ export async function POST(request: Request) { const streamId = generateUUID(); await createStreamId({ streamId, chatId: id }); - console.log(JSON.stringify(uiMessages, null, 2)); - const stream = createUIMessageStream({ execute: ({ writer: dataStream }) => { const result = streamText({ @@ -204,8 +202,7 @@ export async function POST(request: Request) { })), }); }, - onError: (error) => { - console.log(error); + onError: () => { return 'Oops, an error occurred!'; }, });