浏览代码

feat: add ali qwen channel autoDisabled

feitianbubu 9 月之前
父节点
当前提交
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
 		return true
 	case "pre_consume_token_quota_failed":
 	case "pre_consume_token_quota_failed":
 		return true
 		return true
+	case "Arrearage":
+		return true
 	}
 	}
 	switch oaiErr.Type {
 	switch oaiErr.Type {
 	case "insufficient_quota":
 	case "insufficient_quota":