From 7fc43b474512c95fdd39b40586c8221124a86fab Mon Sep 17 00:00:00 2001 From: Peanuts <849421294godw@gmail.com> Date: Thu, 13 Apr 2023 11:07:42 +0800 Subject: [PATCH] Fix wrong spelling --- app/requests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/requests.ts b/app/requests.ts index 86d180f71..c48ef2817 100644 --- a/app/requests.ts +++ b/app/requests.ts @@ -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);