Explorar o código

fix: channel auto ban #443

CalciumIon hai 1 ano
pai
achega
ff0985f06e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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 {
 	case "insufficient_quota":
 		return true
+	case "insufficient_user_quota":
+		return true
 	// https://docs.anthropic.com/claude/reference/errors
 	case "authentication_error":
 		return true