mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-24 22:50:22 +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) {
|
if (!res.ok) {
|
||||||
const error = await res.text();
|
const error = await res.text();
|
||||||
console.error("[Bedrock Error] Status:", res.status);
|
console.error("[Bedrock Error] Request failed with status:", res.status);
|
||||||
console.error("[Bedrock Error] Response:", error);
|
|
||||||
try {
|
try {
|
||||||
const errorJson = JSON.parse(error);
|
const errorJson = JSON.parse(error);
|
||||||
throw new Error(errorJson.message || error);
|
throw new Error(errorJson.message || error);
|
||||||
|
Loading…
Reference in New Issue
Block a user