mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-22 13:40: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 {
|
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 = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user