Commit ee1edbcc by CaIon

取消429自动禁用

parent 7b4f42f4
......@@ -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" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment