mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-21 18:05:30 -04:00
Add filename support to multi-modal prompt messages #57
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 @laipz8200 on GitHub (Aug 29, 2025).
Feature Request
Description
Add support for preserving filename information in multi-modal prompt message content. This feature aligns with the implementation in the main Dify repository (PR #24777).
Motivation
Currently, when converting File objects to prompt messages in the SDK, the original filename information is lost. This makes it difficult for plugins to maintain file identity information throughout the processing pipeline, which can be important for:
Expected Behavior
Multi-modal prompt message content (Image, Video, Audio, Document) should include an optional
filenamefield that preserves the original filename when available. This field should:This enhancement will improve the SDK's ability to handle file metadata consistently with the main Dify platform.