Просмотр исходного кода

refactor: comment out image file validation for qwen edit in Ali image processing

CaIon 4 месяцев назад
Родитель
Сommit
00782aae88
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      relay/channel/ali/image.go

+ 3 - 3
relay/channel/ali/image.go

@@ -98,9 +98,9 @@ func oaiFormEdit2AliImageEdit(c *gin.Context, info *relaycommon.RelayInfo, reque
 		return nil, errors.New("image is required")
 	}
 
-	if len(imageFiles) > 1 {
-		return nil, errors.New("only one image is supported for qwen edit")
-	}
+	//if len(imageFiles) > 1 {
+	//	return nil, errors.New("only one image is supported for qwen edit")
+	//}
 
 	// 获取base64编码的图片
 	var imageBase64s []string