mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-17 13:43:42 +08:00
Update manage.go
This commit is contained in:
@@ -22,7 +22,7 @@ func ShouldDisableChannel(err *model.Error, statusCode int) bool {
|
|||||||
case "insufficient_quota", "authentication_error", "permission_error", "forbidden":
|
case "insufficient_quota", "authentication_error", "permission_error", "forbidden":
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
if err.Code == "invalid_api_key" {
|
if err.Code == "invalid_api_key" || err.Code == "account_deactivated" {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user