소스 검색

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":