fix:增加一个请求头

This commit is contained in:
cjy 2026-01-21 14:12:18 +08:00
parent 3c11449f6d
commit 3180c3c476

View File

@ -72,6 +72,7 @@ func VL(videoURLs []string, imageURLs []string, text string, model string) (resp
statusCode, body, err := utils.PostBytesHeader(modelQwen.DashscopeVLURL, map[string]interface{}{ statusCode, body, err := utils.PostBytesHeader(modelQwen.DashscopeVLURL, map[string]interface{}{
"Authorization": "Bearer " + modelQwen.DashscopeAPIKey, "Authorization": "Bearer " + modelQwen.DashscopeAPIKey,
"Content-Type": "application/json", "Content-Type": "application/json",
"X-DashScope-OssResourceResolve": "enable", // 启用OSS资源解析
}, jsonData) }, jsonData)
if err != nil { if err != nil {
zap.L().Error("VL Post failed", zap.Error(err)) zap.L().Error("VL Post failed", zap.Error(err))