ソースを参照

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