fix: Groq organization not auto-disabled when blocked (#1822)

This commit is contained in:
AJ's Life Journey
2024-09-21 22:12:09 +08:00
committed by GitHub
parent f9774698e9
commit 6714cf96d6

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
}