From 6714cf96d64ff5c3e208998e40cd80d4e2b87e9b Mon Sep 17 00:00:00 2001 From: AJ's Life Journey Date: Sat, 21 Sep 2024 22:12:09 +0800 Subject: [PATCH] fix: Groq organization not auto-disabled when blocked (#1822) --- monitor/manage.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/monitor/manage.go b/monitor/manage.go index 946e78af..00b2bc27 100644 --- a/monitor/manage.go +++ b/monitor/manage.go @@ -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 }