Commit 4f034784 authored by chenlongde's avatar chenlongde

fix: exposure more detail within 4xx code

parent 73b0b08a
...@@ -155,7 +155,7 @@ export async function browserPostEventStream( ...@@ -155,7 +155,7 @@ export async function browserPostEventStream(
error: { error: {
message: `ChatGPTAPI error ${res.status || res.statusText}`, message: `ChatGPTAPI error ${res.status || res.statusText}`,
statusCode: res.status, statusCode: res.status,
statusText: res.statusText statusText: res.statusText || (await res.text())
}, },
conversationId, conversationId,
messageId messageId
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment