[PR #10701] fix: create_blob_message of tool will always create image type file #26901

Closed
opened 2026-02-21 20:40:29 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/10701

State: closed
Merged: Yes


Summary

Tip

Close issue syntax: Fixes #<issue number> or Resolves #<issue number>, see documentation for more details.

Now there are some tools can generate video/audio format of files, but the create_blob_message API of tool will always generate image file type, so the speech2text tool will validate the file type may raise error.

Screenshots

Before After
0dec07d974ca93c6c64b661afcca000f cf44963a2455f2f297320cb130c7d281

Checklist

Important

Please review the checklist below before submitting your pull request.

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
**Original Pull Request:** https://github.com/langgenius/dify/pull/10701 **State:** closed **Merged:** Yes --- # Summary > [!Tip] > Close issue syntax: `Fixes #<issue number>` or `Resolves #<issue number>`, see [documentation](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword) for more details. Now there are some tools can generate video/audio format of files, but the `create_blob_message` API of tool will always generate `image` file type, so the `speech2text` tool will validate the file type may raise error. # Screenshots | Before | After | | --- | --- | | ![0dec07d974ca93c6c64b661afcca000f](https://github.com/user-attachments/assets/893b22a7-b19a-41d3-bd81-9d1b5530bc4b) | ![cf44963a2455f2f297320cb130c7d281](https://github.com/user-attachments/assets/44288d12-59ea-4fe8-97d0-e1dd98963870) | # Checklist > [!IMPORTANT] > Please review the checklist below before submitting your pull request. - [ ] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) - [x] I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!) - [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change. - [x] I've updated the documentation accordingly. - [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods
yindo added the pull-request label 2026-02-21 20:40:29 -05:00
yindo closed this issue 2026-02-21 20:40:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#26901