Skip to content

Commit

Permalink
fix: Groq organization not auto-disabled when blocked (songquanpeng#1822
Browse files Browse the repository at this point in the history
)
  • Loading branch information
kaqijiang authored and mxdlzg committed Oct 15, 2024
1 parent 3beda45 commit 399ea71
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 399ea71

Please sign in to comment.