[PR #10] [MERGED] fix: UploadFileResponse to support optional type initialization from mime_type #82

Closed
opened 2026-02-15 21:15:41 -05:00 by yindo · 0 comments
Owner

📋 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: mainHead: fix-upload-file-response


📝 Commits (3)

  • 96b31eb fix: UploadFileResponse to support optional type initialization from mime_type
  • 2f9549d fix: validate type using model_validator
  • ca17e57 refactor: 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 UploadFileResponse to be correctly initialized from response value.

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.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-sdks/pull/10 **Author:** [@fujita-h](https://github.com/fujita-h) **Created:** 1/11/2025 **Status:** ✅ Merged **Merged:** 1/14/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `fix-upload-file-response` --- ### 📝 Commits (3) - [`96b31eb`](https://github.com/langgenius/dify-plugin-sdks/commit/96b31ebbfe6a8947bd6d670d75b4a81b87a11d4d) fix: UploadFileResponse to support optional type initialization from mime_type - [`2f9549d`](https://github.com/langgenius/dify-plugin-sdks/commit/2f9549d44520b1020d0c58777ccc237c393cb5f1) fix: validate type using model_validator - [`ca17e57`](https://github.com/langgenius/dify-plugin-sdks/commit/ca17e579562146d1fb4b82c72f37e50ab1df1ab1) refactor: remove unused import of Optional from file.py ### 📊 Changes **1 file changed** (+8 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `python/dify_plugin/invocations/file.py` (+8 -1) </details> ### 📄 Description Fixed `UploadFileResponse` to be correctly initialized from `response` value. https://github.com/langgenius/dify-plugin-sdks/blob/e764cd2d9e0225b9ac4f27d3e486ed0578b47a46/python/dify_plugin/invocations/file.py#L66-L70 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 21:15:41 -05:00
yindo closed this issue 2026-02-15 21:15:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-sdks#82