dify/api/tests/unit_tests
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
..
configs feat: add workflow parallel depth limit configuration (#11460) 2024-12-20 14:52:20 +08:00
controllers refactor(version): simplify version comparison logic (#10109) 2024-10-31 15:15:32 +08:00
core feat(api): Add image multimodal support for LLMNode (#17372) 2025-04-30 17:28:02 +08:00
factories fix: implement robust file type checks to align with existing logic (#17557) 2025-04-16 19:21:50 +08:00
libs fix: return absolute path as the icon url if CONSOLE_API_URL is empty (#15279) 2025-03-10 13:15:06 +08:00
models Feat: upgrade variable assigner (#11285) 2024-12-03 13:56:40 +08:00
oss chore(lint): correct allowed-unused-imports settings for cleanup unused imports in tests (#11922) 2024-12-28 01:19:31 +08:00
repositories refactor: Refactors repository imports structure (#18901) 2025-04-27 17:29:03 +08:00
services fix: cannot delete workflow version if other version is published as a tool (#18486) 2025-04-21 17:58:22 +08:00
utils feat: add interfaces of OAuth handler methods for authorization (#18889) 2025-04-27 16:00:37 +08:00
.gitignore Enhance Code Consistency Across Repository with `.editorconfig` (#19023) 2025-04-29 18:04:33 +08:00
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2024-04-08 18:51:46 +08:00
conftest.py refactor: assembling the app features in modular way (#9129) 2024-11-30 23:05:22 +08:00