Skip to content

Commit 6714cf9

Browse files
authored
fix: Groq organization not auto-disabled when blocked (#1822)
1 parent f977469 commit 6714cf9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

monitor/manage.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ func ShouldDisableChannel(err *model.Error, statusCode int) bool {
4545
if strings.Contains(err.Message, "balance") {
4646
return true
4747
}
48+
if strings.Contains(err.Message, "Organization has been restricted") { // groq
49+
return true
50+
}
4851
return false
4952
}
5053

0 commit comments

Comments
 (0)