mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-22 02:15:22 -04:00
[PR #10] [MERGED] fix: UploadFileResponse to support optional type initialization from mime_type #82
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?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-plugin-sdks/pull/10
Author: @fujita-h
Created: 1/11/2025
Status: ✅ Merged
Merged: 1/14/2025
Merged by: @Yeuoly
Base:
main← Head:fix-upload-file-response📝 Commits (3)
96b31ebfix: UploadFileResponse to support optional type initialization from mime_type2f9549dfix: validate type using model_validatorca17e57refactor: remove unused import of Optional from file.py📊 Changes
1 file changed (+8 additions, -1 deletions)
View changed files
📝
python/dify_plugin/invocations/file.py(+8 -1)📄 Description
Fixed
UploadFileResponseto be correctly initialized fromresponsevalue.https://github.com/langgenius/dify-plugin-sdks/blob/e764cd2d9e0225b9ac4f27d3e486ed0578b47a46/python/dify_plugin/invocations/file.py#L66-L70
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.