Fix bug: Groq organization not auto-disabled when blocked

This commit is contained in:
hwj 2024-09-21 14:12:57 +08:00
parent f9774698e9
commit 9ebb575b18

View File

@ -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
}