mirror of
https://github.com/Yanyutin753/ChatGPT-Next-Web-LangChain-Gpt-4-All.git
synced 2025-10-15 23:52:59 +00:00
@@ -189,8 +189,8 @@ export async function requestChatStream(
|
|||||||
|
|
||||||
finish();
|
finish();
|
||||||
} else if (res.status === 401) {
|
} else if (res.status === 401) {
|
||||||
console.error("Anauthorized");
|
console.error("Unauthorized");
|
||||||
options?.onError(new Error("Anauthorized"), res.status);
|
options?.onError(new Error("Unauthorized"), res.status);
|
||||||
} else {
|
} else {
|
||||||
console.error("Stream Error", res.body);
|
console.error("Stream Error", res.body);
|
||||||
options?.onError(new Error("Stream Error"), res.status);
|
options?.onError(new Error("Stream Error"), res.status);
|
||||||
|
Reference in New Issue
Block a user