瀏覽代碼

feat: add ali qwen channel autoDisabled

feitianbubu 8 月之前
父節點
當前提交
2488e6ab66
共有 1 個文件被更改,包括 2 次插入0 次删除
  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":