agentscope-java icon indicating copy to clipboard operation
agentscope-java copied to clipboard

[Feature]: 图片处理格式校验问题

Open 707348125 opened this issue 4 months ago • 3 comments

AgentScope 1.0.12 的 DashScope formatter 本地校验图片链接限制,对于oss公网链接 AgentScope限制了链接的path后缀,但是oss的链接path是不带后缀的。

比如链接:http://easybike-image.cn-hangzhou.oss.aliyuncs.com/xiaoduoCsImg/7b2913941514427585ce2feafb7d757d?Expires=4939163857&OSSAccessKeyId=LTAIwDP3dFcdWEUd&Signature=OoI%2FFtFflS091sAGOYO1XURsRd4%3D

输出 Failed to process ImageBlock: "xxx" should end with one of [png, jpg, jpeg, gif, webp, heic, heif]

707348125 avatar Jul 08 '26 07:07 707348125

DashScopeChatModel 这个处理类

707348125 avatar Jul 08 '26 07:07 707348125

可以调整下OSS配置,公共读+永久访问

Ken-LK avatar Jul 09 '26 06:07 Ken-LK

跟这个没关系吧,是代码里校验图片链接格式了

707348125 avatar Jul 14 '26 08:07 707348125