mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-10-19 10:07:29 +00:00
fix: do not detect quota field in error message (close #1276)
This commit is contained in:
@@ -46,9 +46,9 @@ func ShouldDisableChannel(err *relaymodel.Error, statusCode int) bool {
|
|||||||
} else if strings.HasPrefix(err.Message, "This organization has been disabled.") {
|
} else if strings.HasPrefix(err.Message, "This organization has been disabled.") {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
if strings.Contains(err.Message, "quota") {
|
//if strings.Contains(err.Message, "quota") {
|
||||||
return true
|
// return true
|
||||||
}
|
//}
|
||||||
if strings.Contains(err.Message, "credit") {
|
if strings.Contains(err.Message, "credit") {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user