mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-22 21:50:16 +09:00
Update app/utils/aws.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
2a9f7d72fc
commit
12d38aa4b2
@ -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 = "";
|
||||
|
Loading…
Reference in New Issue
Block a user