fix: Groq organization not auto-disabled when blocked (#1822)
This commit is contained in:
parent
f9774698e9
commit
6714cf96d6
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user