Explorar o código

feat: add ali qwen channel autoDisabled

feitianbubu hai 7 meses
pai
achega
2488e6ab66
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      service/channel.go

+ 2 - 0
service/channel.go

@@ -67,6 +67,8 @@ func ShouldDisableChannel(channelType int, err *types.NewAPIError) bool {
 		return true
 	case "pre_consume_token_quota_failed":
 		return true
+	case "Arrearage":
+		return true
 	}
 	switch oaiErr.Type {
 	case "insufficient_quota":