瀏覽代碼

feat(channel): add handling for pre_consume_token_quota_failed error type

CaIon 1 年之前
父節點
當前提交
822ed681de
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      service/channel.go

+ 2 - 0
service/channel.go

@@ -59,6 +59,8 @@ func ShouldDisableChannel(channelType int, err *dto.OpenAIErrorWithStatusCode) b
 		return true
 	case "billing_not_active":
 		return true
+	case "pre_consume_token_quota_failed":
+		return true
 	}
 	switch err.Error.Type {
 	case "insufficient_quota":