mirror of
https://github.com/songquanpeng/one-api.git
synced 2026-10-24 02:17:40 +08:00
fix: Groq organization not auto-disabled when blocked (#1822)
This commit is contained in:
@@ -45,6 +45,9 @@ func ShouldDisableChannel(err *model.Error, statusCode int) bool {
|
||||
if strings.Contains(err.Message, "balance") {
|
||||
return true
|
||||
}
|
||||
if strings.Contains(err.Message, "Organization has been restricted") { // groq
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user