Revert "Fix wrong spelling"

This commit is contained in:
Huangdisen 2023-04-14 17:44:35 +08:00 committed by GitHub
parent 563eb96282
commit 41c87d7d1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,8 +189,8 @@ export async function requestChatStream(
finish();
} else if (res.status === 401) {
console.error("Unauthorized");
options?.onError(new Error("Unauthorized"), res.status);
console.error("Anauthorized");
options?.onError(new Error("Anauthorized"), res.status);
} else {
console.error("Stream Error", res.body);
options?.onError(new Error("Stream Error"), res.status);