[PR #15605] support config filename in meta for create_blob_message #28348

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

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

State: closed
Merged: Yes


Summary

Fixes #15322

  • If the meta has a "file_name" key:
    • If an extension is set, the system does nothing.
    • If no extension is set, it automatically adds an extension.
  • If the meta lacks a "file_name" key, the system uses the original naming method.

Screenshots

when the meta has a "file_name" key
a dify plugin tool use create_blob_message and add file_name key in meta

before

unexpected filename in response message

after

expected filename in response message

Checklist

Important

Please review the checklist below before submitting your pull request.

  • This change requires a documentation update, included: zh_CN tool.md,jp tool.md,en tool.md
  • 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/15605 **State:** closed **Merged:** Yes --- # Summary Fixes #15322 - If the meta has a "file_name" key: - If an extension is set, the system does nothing. - If no extension is set, it automatically adds an extension. - If the meta lacks a "file_name" key, the system uses the original naming method. # Screenshots when the meta has a "file_name" key ![a dify plugin tool use create_blob_message and add file_name key in meta](https://github.com/user-attachments/assets/def3200d-cf99-410f-b8fd-28da2364de12) ## before ![unexpected filename in response message](https://github.com/user-attachments/assets/6d15ce10-644f-4057-af72-7bad983963a7) ## after ![expected filename in response message](https://github.com/user-attachments/assets/632eff73-5df5-4249-a169-ef18c4fe83f9) # Checklist > [!IMPORTANT] > Please review the checklist below before submitting your pull request. - [x] This change requires a documentation update, included: [zh_CN tool.md](https://github.com/langgenius/dify-docs/zh_CN/plugins/schema-definition/tool.md),[jp tool.md](https://github.com/langgenius/dify-docs/jp/plugins/schema-definition/tool.md),[en tool.md](https://github.com/langgenius/dify-docs/en/plugins/schema-definition/tool.md) - [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. - [ ] 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:43:17 -05:00
yindo closed this issue 2026-02-21 20:43:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#28348