mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-24 06:30:16 +09:00
Remove detailed error error message.
This commit is contained in:
parent
b39b3f7a5e
commit
9c648e5b64
@ -160,8 +160,7 @@ async function requestBedrock(req: NextRequest) {
|
||||
|
||||
if (!res.ok) {
|
||||
const error = await res.text();
|
||||
console.error("[Bedrock Error] Status:", res.status);
|
||||
console.error("[Bedrock Error] Response:", error);
|
||||
console.error("[Bedrock Error] Request failed with status:", res.status);
|
||||
try {
|
||||
const errorJson = JSON.parse(error);
|
||||
throw new Error(errorJson.message || error);
|
||||
|
Loading…
Reference in New Issue
Block a user