[PR #1728] [MERGED] feat&fix: ComfyUI 0.3.0, Audio Update #2048

Closed
opened 2026-02-16 11:15:58 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-official-plugins/pull/1728
Author: @yt-koike
Created: 9/17/2025
Status: Merged
Merged: 9/17/2025
Merged by: @crazywoola

Base: mainHead: main


📝 Commits (10+)

📊 Changes

37 files changed (+1037 additions, -642 deletions)

View changed files

📝 tools/comfyui/README.md (+81 -41)
📝 tools/comfyui/_assets/nodes.png (+0 -0)
📝 tools/comfyui/manifest.yaml (+1 -1)
📝 tools/comfyui/provider/comfyui.yaml (+2 -5)
📝 tools/comfyui/requirements.txt (+1 -1)
📝 tools/comfyui/ruff.toml (+0 -1)
📝 tools/comfyui/tools/comfyui_client.py (+22 -22)
📝 tools/comfyui/tools/comfyui_model_manager.py (+38 -12)
📝 tools/comfyui/tools/comfyui_workflow.py (+16 -10)
tools/comfyui/tools/convert_to_api.py (+0 -23)
tools/comfyui/tools/convert_to_api.yaml (+0 -25)
tools/comfyui/tools/download_by_json.py (+0 -29)
tools/comfyui/tools/download_by_json.yaml (+0 -41)
📝 tools/comfyui/tools/download_by_url.py (+11 -10)
📝 tools/comfyui/tools/download_by_url.yaml (+6 -21)
📝 tools/comfyui/tools/download_civitai.py (+20 -21)
📝 tools/comfyui/tools/download_huggingface.py (+10 -13)
tools/comfyui/tools/image_info.py (+0 -46)
tools/comfyui/tools/image_info.yaml (+0 -67)
📝 tools/comfyui/tools/img2any.py (+13 -8)

...and 17 more files

📄 Description

Related Issues or Context

New features:

  • Text-to-audio: it used to output only image or videos but now it can output audio files as well!
  • Auto token selection for downloader: Download By URL node now automatically selects the most appropriate token to the given download URL.

Deletion:

  • List Models node and List Samplers node are integrated into List Info node.
  • Delete Image Info: Please use dify-pillow for an equivalent feature.
  • Download By JSON node is integrated into Workflow node.

Fix:

  • Fix CivitAI downloader which used to download non-model files(e.g. TrainingData.zip).
  • Change Img2Any node's ID to img2any

Refactor:

  • Refactor to pass all the checks by ruff.

This PR contains Changes to Non-Plugin

  • Documentation
  • Other

This PR contains Changes to Non-LLM Models Plugin

  • I have Run Comprehensive Tests Relevant to My Changes

This PR does not contain Changes to LLM Models Plugin

Version Control (Any Changes to the Plugin Will Require Bumping the Version)

  • I have Bumped Up the Version in Manifest.yaml (Top-Level Version Field, Not in Meta Section)

Dify Plugin SDK Version

  • I have Ensured dify_plugin>=0.3.0,<0.5.0 is in requirements.txt (SDK docs)

Environment Verification (If Any Code Changes)

Local Deployment Environment

  • Dify Version is: 1.8.1, I have Tested My Changes on Local Deployment Dify with a Clean Environment That Matches the Production Configuration.

SaaS Environment

  • I have Tested My Changes on cloud.dify.ai with a Clean Environment That Matches the Production Configuration

🔄 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-official-plugins/pull/1728 **Author:** [@yt-koike](https://github.com/yt-koike) **Created:** 9/17/2025 **Status:** ✅ Merged **Merged:** 9/17/2025 **Merged by:** [@crazywoola](https://github.com/crazywoola) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (10+) - [`6b7a08a`](https://github.com/langgenius/dify-official-plugins/commit/6b7a08ad8c2cb2692d661568d30559c062295bde) rm replace("'",'"') on json file - [`1158487`](https://github.com/langgenius/dify-official-plugins/commit/1158487194e1555cbc597ff16af080f5e58a2fea) introduce ruff the format - [`bb797e5`](https://github.com/langgenius/dify-official-plugins/commit/bb797e57a99b081e5c51d46df08ded601c268c93) Bump up the version - [`467d45b`](https://github.com/langgenius/dify-official-plugins/commit/467d45bced6f1cfa542bf1eaa21e38713260030e) rm print() according to https://github.com/langgenius/dify-official-plugins/issues/1673 - [`18146ba`](https://github.com/langgenius/dify-official-plugins/commit/18146ba764741d95e11f17c0320c8ef2953c9494) introduce ComfyUIModel - [`c1a81a0`](https://github.com/langgenius/dify-official-plugins/commit/c1a81a0ae1ccccab3d508a2bbcf79e0a5f7e5f68) rename model_manager.py - [`7442410`](https://github.com/langgenius/dify-official-plugins/commit/7442410b0cebe288b0fb2df2cf71e916a5329eaa) bump up - [`11c48d0`](https://github.com/langgenius/dify-official-plugins/commit/11c48d0c35a3ba982aa0bb01ab892cca131432d3) first try download without tokens - [`6f32b72`](https://github.com/langgenius/dify-official-plugins/commit/6f32b727cf3a05d7b5e28a4e154c01d6cff044ae) bugfix - [`3feab06`](https://github.com/langgenius/dify-official-plugins/commit/3feab06a19f3dadff10ec355c54aa95c20956acc) try downloading models without tokens first ### 📊 Changes **37 files changed** (+1037 additions, -642 deletions) <details> <summary>View changed files</summary> 📝 `tools/comfyui/README.md` (+81 -41) 📝 `tools/comfyui/_assets/nodes.png` (+0 -0) 📝 `tools/comfyui/manifest.yaml` (+1 -1) 📝 `tools/comfyui/provider/comfyui.yaml` (+2 -5) 📝 `tools/comfyui/requirements.txt` (+1 -1) 📝 `tools/comfyui/ruff.toml` (+0 -1) 📝 `tools/comfyui/tools/comfyui_client.py` (+22 -22) 📝 `tools/comfyui/tools/comfyui_model_manager.py` (+38 -12) 📝 `tools/comfyui/tools/comfyui_workflow.py` (+16 -10) ➖ `tools/comfyui/tools/convert_to_api.py` (+0 -23) ➖ `tools/comfyui/tools/convert_to_api.yaml` (+0 -25) ➖ `tools/comfyui/tools/download_by_json.py` (+0 -29) ➖ `tools/comfyui/tools/download_by_json.yaml` (+0 -41) 📝 `tools/comfyui/tools/download_by_url.py` (+11 -10) 📝 `tools/comfyui/tools/download_by_url.yaml` (+6 -21) 📝 `tools/comfyui/tools/download_civitai.py` (+20 -21) 📝 `tools/comfyui/tools/download_huggingface.py` (+10 -13) ➖ `tools/comfyui/tools/image_info.py` (+0 -46) ➖ `tools/comfyui/tools/image_info.yaml` (+0 -67) 📝 `tools/comfyui/tools/img2any.py` (+13 -8) _...and 17 more files_ </details> ### 📄 Description ## Related Issues or Context <!-- ⚠️ NOTE: This repository is for Dify Official Plugins only. For community contributions, please submit to https://github.com/langgenius/dify-plugins instead. - Link Related Issues if Applicable: #issue_number - Or Provide Context about Why this Change is Needed --> New features: - Text-to-audio: it used to output only image or videos but now it can output audio files as well! - Auto token selection for downloader: Download By URL node now automatically selects the most appropriate token to the given download URL. Deletion: - List Models node and List Samplers node are integrated into List Info node. - Delete Image Info: Please use [dify-pillow](https://github.com/yt-koike/dify-pillow) for an equivalent feature. - Download By JSON node is integrated into Workflow node. Fix: - Fix CivitAI downloader which used to download non-model files(e.g. TrainingData.zip). - Change Img2Any node's ID to img2any Refactor: - Refactor to pass all the checks by ruff. ## This PR contains Changes to *Non-Plugin* <!-- Put an `x` in all the boxes that apply by replacing [ ] with [x] For example: - [x] Documentation --> - [x] Documentation - [ ] Other ## This PR contains Changes to *Non-LLM Models Plugin* - [x] I have Run Comprehensive Tests Relevant to My Changes <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> ## This PR does not contain Changes to *LLM Models Plugin* ## Version Control (Any Changes to the Plugin Will Require Bumping the Version) - [x] I have Bumped Up the Version in Manifest.yaml (Top-Level `Version` Field, Not in Meta Section) <!-- ⚠️ NOTE: Version Format: MAJOR.MINOR.PATCH - MAJOR (0.x.x): Reserved for Significant architectural changes or incompatible API modifications - MINOR (x.0.x): For New feature additions while maintaining backward compatibility - PATCH (x.x.0): For Backward-compatible bug fixes and minor improvements - Note: Each Version Component (MAJOR, MINOR, PATCH) Can Be 2 Digits, e.g., 10.11.22 --> ## Dify Plugin SDK Version - [x] I have Ensured `dify_plugin>=0.3.0,<0.5.0` is in requirements.txt ([SDK docs](https://github.com/langgenius/dify-plugin-sdks/blob/main/python/README.md)) ## Environment Verification (If Any Code Changes) <!-- ⚠️ NOTE: At Least One Environment Must Be Tested. --> ### Local Deployment Environment - [x] Dify Version is: 1.8.1, I have Tested My Changes on Local Deployment Dify with a Clean Environment That Matches the Production Configuration. <!-- - Python Virtual Env Matching Manifest.yaml & requirements.txt - No Breaking Changes in Dify That May Affect the Testing Result --> ### SaaS Environment - [ ] I have Tested My Changes on cloud.dify.ai with a Clean Environment That Matches the Production Configuration <!-- - Python Virtual Env Matching Manifest.yaml & requirements.txt --> --- <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-16 11:15:58 -05:00
yindo closed this issue 2026-02-16 11:15:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#2048