From 9cce045752c95d4da270f40f0d387a1c8151ca65 Mon Sep 17 00:00:00 2001 From: Yaqub Mahmoud Date: Mon, 27 Jan 2025 13:31:28 +0900 Subject: [PATCH] Update stream-text.ts --- app/lib/.server/llm/stream-text.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/lib/.server/llm/stream-text.ts b/app/lib/.server/llm/stream-text.ts index 2d9639c..0d9f567 100644 --- a/app/lib/.server/llm/stream-text.ts +++ b/app/lib/.server/llm/stream-text.ts @@ -56,5 +56,8 @@ export function streamText(messages: Messages, env: Env, options?: StreamingOpti // messages: convertToCoreMessages(messages), // ...options, // }); - } catch (error) {} + } catch (error) { + console.error('Error streaming text:', error); + throw error; + } }