Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example: (Multi Model Example) The media format is not supported or incorrect for the data inspection. #319

Open
lanyanhua opened this issue Dec 26, 2024 · 1 comment
Labels
area/example Spring AI Alibaba Examples

Comments

@lanyanhua
Copy link

{"code":"InvalidParameter.DataInspection","message":"The media format is not supported or incorrect for the data inspection.","request_id":"bc43b28b-2a90-9456-8c3b-2f679ee330c6"}

试了一下官方提供的图片 URL可以解析成功
new Media( MimeTypeUtils.IMAGE_PNG, new URI("https://dashscope.oss-cn-beijing.aliyuncs.com/images/dog_and_girl.jpeg").toURL() )
使用本地花生壳映射出去的地址失败
这是图片
image

@yuluo-yx yuluo-yx added the area/example Spring AI Alibaba Examples label Jan 6, 2025
@yuluo-yx
Copy link
Collaborator

yuluo-yx commented Jan 6, 2025

检查一下图片格式或者其他图片之间区别,或者也可以存到本地在加载试试

@yuluo-yx yuluo-yx changed the title 多模态使用图片时报错 The media format is not supported or incorrect for the data inspection. example: (Multi Model Example) The media format is not supported or incorrect for the data inspection. Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/example Spring AI Alibaba Examples
Projects
None yet
Development

No branches or pull requests

2 participants