Skip to content

Commit

Permalink
fix: Groq organization not auto-disabled when blocked (#1822)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaqijiang authored Sep 21, 2024
1 parent f977469 commit 6714cf9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions monitor/manage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 6714cf9

Please sign in to comment.