mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
Use the API to send pictures, call bean bag vision and report an error. #227
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bhswallow on GitHub (Apr 24, 2025).
Self Checks
Dify version
v1.3.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
use ths API call to send an image and chat with doubao vision.but doubao shows a format error.
✔️ Expected Behavior
❌ Actual Behavior
No response
@dosubot[bot] commented on GitHub (Apr 24, 2025):
Hello @bhswallow! I'm Dosu, a bot here to help you solve bugs, answer questions, and support you in becoming a contributor. I'm here while you wait for a human maintainer. How can I assist you today?
I found a similar closed issue that might help you resolve the format error when using the API to send images to Doubao Vision. The suggested solution involves ensuring the following:
Image Format and Size: Make sure the image is in a supported format such as PNG, JPG, JPEG, WEBP, or GIF, and does not exceed the 10 MB size limit.
Model Capability: Verify that the model you are using supports image processing capabilities. If the model does not support this feature, it could lead to errors.
URL Accessibility: If you are using a remote URL to send the image, ensure that the URL is publicly accessible and not restricted by any permissions or network issues.
Additionally, you can use the
create_chat_messagemethod of theChatClientclass to send images either by remote URL or by local file. Ensure that your environment settings are configured correctly, especially theMULTIMODAL_SEND_IMAGE_FORMATsetting, which should be set to either 'base64' or 'url'. If using the 'url' format, make sureFILES_URLis configured with an externally accessible address [1][2].To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other