Merge branch 'feat-cjy-report' into dev
This commit is contained in:
commit
637b12d90f
@ -72,7 +72,7 @@ func VL(videoURLs []string, imageURLs []string, text string, model string) (resp
|
||||
statusCode, body, err := utils.PostBytesHeader(modelQwen.DashscopeVLURL, map[string]interface{}{
|
||||
"Authorization": "Bearer " + modelQwen.DashscopeAPIKey,
|
||||
"Content-Type": "application/json",
|
||||
"X-DashScope-OssResourceResolve": "enable", // 启用OSS资源解析
|
||||
// "X-DashScope-OssResourceResolve": "enable", // 启用OSS资源解析
|
||||
}, jsonData)
|
||||
if err != nil {
|
||||
zap.L().Error("VL Post failed", zap.Error(err))
|
||||
|
||||
@ -45,7 +45,7 @@ func AIVideoVL(ctx *gin.Context) {
|
||||
// 检查是否是文件下载超时错误(内容过大)
|
||||
errMsg := err.Error()
|
||||
if contains(errMsg, "Download multimodal file timed out") || contains(errMsg, "timed out") {
|
||||
service.Error(ctx, errors.New("报错内容过大,请重新选择"))
|
||||
service.Error(ctx, errors.New("内容过大,请重新选择"))
|
||||
} else {
|
||||
service.Error(ctx, errors.New("ai分析帖子内容失败"))
|
||||
}
|
||||
@ -107,7 +107,7 @@ func AICompetitorReport(ctx *gin.Context) {
|
||||
// 检查是否是文件下载超时错误(内容过大)
|
||||
errMsg := err.Error()
|
||||
if contains(errMsg, "Download multimodal file timed out") || contains(errMsg, "timed out") {
|
||||
service.Error(ctx, errors.New("报错内容过大,请重新选择"))
|
||||
service.Error(ctx, errors.New("内容过大,请重新选择"))
|
||||
} else {
|
||||
service.Error(ctx, fmt.Errorf("AI理解视频图片失败: %v", err))
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user