From 41c87d7d1bba2780a2e845821d3155c05ff016d8 Mon Sep 17 00:00:00 2001 From: Huangdisen <76765209+Huangdisen@users.noreply.github.com> Date: Fri, 14 Apr 2023 17:44:35 +0800 Subject: [PATCH] Revert "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 c48ef2817..86d180f71 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("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);