From 2a3373cc8c525f9f4352bc5c8ec59997f67f1355 Mon Sep 17 00:00:00 2001 From: CaIon <1808837298@qq.com> Date: Tue, 10 Oct 2023 11:18:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88429=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E7=A6=81=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/relay-utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/relay-utils.go b/controller/relay-utils.go index 494186e3..947e956b 100644 --- a/controller/relay-utils.go +++ b/controller/relay-utils.go @@ -135,7 +135,7 @@ func shouldDisableChannel(err *OpenAIError, statusCode int) bool { if err == nil { return false } - if statusCode == http.StatusUnauthorized || statusCode == http.StatusTooManyRequests { + if statusCode == http.StatusUnauthorized { return true } if err.Type == "insufficient_quota" || err.Code == "invalid_api_key" || err.Code == "account_deactivated" {