Use the API to send pictures, call bean bag vision and report an error. #227

Closed
opened 2026-02-16 10:18:31 -05:00 by yindo · 1 comment
Owner

Originally created by @bhswallow on GitHub (Apr 24, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

v1.3.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image
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

Originally created by @bhswallow on GitHub (Apr 24, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version v1.3.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![Image](https://github.com/user-attachments/assets/4e75cf4f-fa1b-4909-a113-1f5e14fc135e) use ths API call to send an image and chat with doubao vision.but doubao shows a format error. ### ✔️ Expected Behavior <!-- Failed to upload "image.png" --> ### ❌ Actual Behavior _No response_
yindo closed this issue 2026-02-16 10:18:31 -05:00
Author
Owner

@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:

  1. 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.

  2. 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.

  3. 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_message method of the ChatClient class to send images either by remote URL or by local file. Ensure that your environment settings are configured correctly, especially the MULTIMODAL_SEND_IMAGE_FORMAT setting, which should be set to either 'base64' or 'url'. If using the 'url' format, make sure FILES_URL is 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

@dosubot[bot] commented on GitHub (Apr 24, 2025): <!-- Greeting --> Hello @bhswallow! I'm [Dosu](https://dosu.dev), 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? <!-- Answer --> 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: 1. **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. 2. **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. 3. **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_message` method of the `ChatClient` class to send images either by remote URL or by local file. Ensure that your environment settings are configured correctly, especially the `MULTIMODAL_SEND_IMAGE_FORMAT` setting, which should be set to either 'base64' or 'url'. If using the 'url' format, make sure `FILES_URL` is configured with an externally accessible address <sup>[[1]](https://github.com/langgenius/dify/issues/14208)</sup><sup>[[2]](https://github.com/langgenius/dify/issues/13658)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/110fa9a3-8598-41b5-a925-d431ffa9fc4a?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/110fa9a3-8598-41b5-a925-d431ffa9fc4a?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/110fa9a3-8598-41b5-a925-d431ffa9fc4a?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/110fa9a3-8598-41b5-a925-d431ffa9fc4a?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/110fa9a3-8598-41b5-a925-d431ffa9fc4a?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/110fa9a3-8598-41b5-a925-d431ffa9fc4a?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/110fa9a3-8598-41b5-a925-d431ffa9fc4a?feedback_type=other)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#227