Browse Source

fix: channel auto ban #443

CalciumIon 1 year ago
parent
commit
ff0985f06e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      service/channel.go

+ 2 - 0
service/channel.go

@@ -54,6 +54,8 @@ func ShouldDisableChannel(channelType int, err *relaymodel.OpenAIErrorWithStatus
 	switch err.Error.Type {
 	switch err.Error.Type {
 	case "insufficient_quota":
 	case "insufficient_quota":
 		return true
 		return true
+	case "insufficient_user_quota":
+		return true
 	// https://docs.anthropic.com/claude/reference/errors
 	// https://docs.anthropic.com/claude/reference/errors
 	case "authentication_error":
 	case "authentication_error":
 		return true
 		return true