AgnesAI-Models
AgnesAI-Models copied to clipboard
[Feature]: :图片理解支持base64或者本地上传
Problem
Proposed solution
图片理解支持base64或者本地上传
Alternatives considered
No response
Additional context
No response
Base64 image input is now supported.
You can pass the image as a base64 data URL in the image_url field, for example:
{
"type": "image_url",
"image_url": {
"url": "data:image/png;base64,<BASE64_IMAGE_DATA>"
}
}
For local files, please read the file and convert it to base64 before sending the request.
Thanks for the feedback. Please try it with the latest API and let us know if you run into any issues.