取消429自动禁用

This commit is contained in:
CaIon 2023-10-10 11:18:29 +08:00
parent d429992be2
commit 2a3373cc8c

View File

@ -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" {