Fix wrong spelling

This commit is contained in:
Peanuts 2023-04-13 11:07:42 +08:00 committed by GitHub
parent 86fb36163c
commit 7fc43b4745
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);