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 = "";