You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gcgj-dify-1.7.0/api/core/tools/utils
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>
9 months ago
..
dataset_retriever fix: metadata filter not work (#19020) 9 months ago
__init__.py improve: generalize tool parameter converter (#4786) 2 years ago
configuration.py Introduce Plugins (#13836) 12 months ago
dataset_retriever_tool.py Introduce Plugins (#13836) 12 months ago
message_transformer.py feat(api): Add image multimodal support for LLMNode (#17372) 9 months ago
model_invocation_utils.py chore: docstring not match the function parameter (#17162) 10 months ago
parser.py chore: docstring not match the function parameter (#17162) 10 months ago
rag_web_reader.py Introduce Plugins (#13836) 12 months ago
text_processing_utils.py fix: issue #11868 bring old logic back (#12100) 1 year ago
uuid_utils.py fix: check webhook key of Wecom tool in valid UUID form and fix typo (#2719) 2 years ago
web_reader_tool.py feat: mypy for all type check (#10921) 1 year ago
workflow_configuration_sync.py Introduce Plugins (#13836) 12 months ago
yaml_utils.py feat: mypy for all type check (#10921) 1 year ago