dify/api/tests/unit_tests/core
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
..
agent/output_parser fix: code block syntax cannot be displayed correctly in react mode (#16904) 2025-03-31 16:27:29 +08:00
app fix: streamline file upload configuration handling in manager.py (#15714) 2025-03-13 16:32:49 +08:00
helper Introduce Plugins (#13836) 2025-02-17 17:05:13 +08:00
model_runtime fix: invalid new tool call creation logic during response handling in OAI-Compat model (#17781) 2025-04-17 16:52:49 +08:00
prompt fix: Update prompt message content types to use Literal and add union type for content (#17136) 2025-04-22 16:17:55 +08:00
rag refactor: Update Firecrawl API parameters and default settings (#13082) 2025-01-29 11:21:05 +08:00
tools fix(api): fix fail branch functionality for `WorkflowTool` (#15966) 2025-03-17 11:53:32 +08:00
workflow feat(api): Add image multimodal support for LLMNode (#17372) 2025-04-30 17:28:02 +08:00
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2024-04-08 18:51:46 +08:00
test_file.py feat(llm_node): support order in text and files (#11837) 2024-12-20 14:12:50 +08:00
test_model_manager.py ext_redis.py support redis clusters --- Fixes #9538 (#9789) 2024-11-20 13:44:35 +08:00
test_provider_manager.py Introduce Plugins (#13836) 2025-02-17 17:05:13 +08:00