bug: breaking changes to the file generation format restrained in tools #12545

Closed
opened 2026-02-21 19:07:55 -05:00 by yindo · 1 comment
Owner

Originally created by @bowenliang123 on GitHub (Apr 4, 2025).

Hey, heads up for this PR #16203 bringing breaking changes to the file generation in tools !!

I'm generating various file format in md_exporter plugin (https://marketplace.dify.ai/plugins/bowenliang123/md_exporter)with different MIME-types.

It works well, until this PR comes in.
eg. failing with these mime types
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
"application/vnd.openxmlformats-officedocument.presentationml.presentation"

usage in tools

yield self.create_blob_message(
            blob=result_file_bytes,
            meta={"mime_type": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},
        )

Errors in chatflow:

Image image

Please reconsider reverting this PR. There's no workaround in tool's usage.
cc @laipz8200 @lrhan321

Originally posted by @bowenliang123 in https://github.com/langgenius/dify/issues/16203#issuecomment-2778955572

Originally created by @bowenliang123 on GitHub (Apr 4, 2025). Hey, heads up for this PR #16203 bringing breaking changes to the file generation in tools !! I'm generating various file format in `md_exporter` plugin (https://marketplace.dify.ai/plugins/bowenliang123/md_exporter)with different MIME-types. It works well, until this PR comes in. eg. failing with these mime types "application/vnd.openxmlformats-officedocument.wordprocessingml.document" "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" "application/vnd.openxmlformats-officedocument.presentationml.presentation" usage in tools ``` yield self.create_blob_message( blob=result_file_bytes, meta={"mime_type": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}, ) ``` Errors in chatflow: <img width="969" alt="Image" src="https://github.com/user-attachments/assets/4591e369-d728-403c-b0a4-6167edcdb659" /> <img width="344" alt="image" src="https://github.com/user-attachments/assets/c2ca7d94-2c0e-4224-98b2-68e3d21b186d" /> Please reconsider reverting this PR. There's no workaround in tool's usage. cc @laipz8200 @lrhan321 _Originally posted by @bowenliang123 in https://github.com/langgenius/dify/issues/16203#issuecomment-2778955572_
yindo added the 🐞 bug label 2026-02-21 19:07:55 -05:00
yindo closed this issue 2026-02-21 19:07:55 -05:00
Author
Owner

@Ewentsang commented on GitHub (Jul 21, 2025):

请问这个问题解决了吗

@Ewentsang commented on GitHub (Jul 21, 2025): 请问这个问题解决了吗
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#12545