From 12d38aa4b2a3310105bdf5f2978b0a9a722cae4c Mon Sep 17 00:00:00 2001 From: glay Date: Mon, 9 Dec 2024 14:43:52 +0800 Subject: [PATCH] Update app/utils/aws.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- app/utils/aws.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/utils/aws.ts b/app/utils/aws.ts index de61ac7d8..caaec2297 100644 --- a/app/utils/aws.ts +++ b/app/utils/aws.ts @@ -642,8 +642,7 @@ export function getBedrockEndpoint( export function extractMessage(res: any, modelId: string = ""): string { if (!res) { - console.error("[AWS Extract Error] extractMessage Empty response"); - return ""; + throw new Error("Empty response received"); } let message = "";