feat: improve error handling and update billing model with latest ratio

This commit is contained in:
Laisky.Cai
2024-11-20 02:11:16 +00:00
parent 082cfbe574
commit d097011cd5
3 changed files with 5 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ func ShouldDisableChannel(err *model.Error, statusCode int) bool {
strings.Contains(lowerMessage, "credit") ||
strings.Contains(lowerMessage, "balance") ||
strings.Contains(lowerMessage, "permission denied") ||
strings.Contains(lowerMessage, "organization has been restricted") || // groq
strings.Contains(lowerMessage, "organization has been restricted") || // groq
strings.Contains(lowerMessage, "已欠费") {
return true
}