Merge pull request #755 from peanut996/patch-2

Fix wrong spelling
This commit is contained in:
Yifei Zhang 2023-04-13 14:45:47 +08:00 committed by GitHub
commit 9fef4cab73
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("Anauthorized");
options?.onError(new Error("Anauthorized"), res.status);
console.error("Unauthorized");
options?.onError(new Error("Unauthorized"), res.status);
} else {
console.error("Stream Error", res.body);
options?.onError(new Error("Stream Error"), res.status);