dify/api/core/workflow
QuantumGhost 349c3cf7b8
feat(api): Add image multimodal support for LLMNode (#17372)
Enhance `LLMNode` with multimodal capability, introducing support for
image outputs.

This implementation extracts base64-encoded images from LLM responses,
saves them to the storage service, and records the file metadata in the
`ToolFile` table. In conversations, these images are rendered as
markdown-based inline images.
Additionally, the images are included in the LLMNode's output as
file variables, enabling subsequent nodes in the workflow to utilize them.

To integrate file outputs into workflows, adjustments to the frontend code
are necessary.

For multimodal output functionality, updates to related model configurations
are required. Currently, this capability has been applied exclusively to
Google's Gemini models.

Close #15814.

Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: -LAN- <laipz8200@outlook.com>
2025-04-30 17:28:02 +08:00
..
callbacks Feature/newnew workflow loop node (#14863) 2025-03-05 17:41:15 +08:00
entities Feat/loop node (#17273) 2025-04-02 13:53:26 +08:00
graph_engine Remove dead code (#17899) 2025-04-11 20:33:52 +08:00
nodes feat(api): Add image multimodal support for LLMNode (#17372) 2025-04-30 17:28:02 +08:00
repository refactor: Refactors repository imports structure (#18901) 2025-04-27 17:29:03 +08:00
utils feat: structured output (#17877) 2025-04-18 16:33:53 +08:00
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2024-04-08 18:51:46 +08:00
constants.py feat/enhance the multi-modal support (#8818) 2024-10-21 10:43:49 +08:00
enums.py chore: bump minimum supported Python version to 3.11 (#10386) 2024-11-24 13:28:46 +08:00
errors.py feat/enhance the multi-modal support (#8818) 2024-10-21 10:43:49 +08:00
workflow_engine_manager.py feat: Parallel Execution of Nodes in Workflows (#8192) 2024-09-10 15:23:16 +08:00
workflow_entry.py Fix: the issue of getting empty environment variables. (#19085) 2025-04-29 18:01:11 +08:00