Update app/utils/aws.ts

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
glay 2024-12-09 14:43:52 +08:00 committed by GitHub
parent 2a9f7d72fc
commit 12d38aa4b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -642,8 +642,7 @@ export function getBedrockEndpoint(
export function extractMessage(res: any, modelId: string = ""): string { export function extractMessage(res: any, modelId: string = ""): string {
if (!res) { if (!res) {
console.error("[AWS Extract Error] extractMessage Empty response"); throw new Error("Empty response received");
return "";
} }
let message = ""; let message = "";