dify/web/app/components
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
..
app feat(logAndAnn): add control option for question editing feature (#19117) 2025-04-30 10:57:23 +08:00
app-sidebar Enhance Code Consistency Across Repository with `.editorconfig` (#19023) 2025-04-29 18:04:33 +08:00
base feat(api): Add image multimodal support for LLMNode (#17372) 2025-04-30 17:28:02 +08:00
billing fix(i18n): add functions to retrieve document and pricing page languages (#19142) 2025-04-30 14:58:49 +08:00
custom Enhance Code Consistency Across Repository with `.editorconfig` (#19023) 2025-04-29 18:04:33 +08:00
datasets Enhance Code Consistency Across Repository with `.editorconfig` (#19023) 2025-04-29 18:04:33 +08:00
develop Enhance Code Consistency Across Repository with `.editorconfig` (#19023) 2025-04-29 18:04:33 +08:00
explore Enhance Code Consistency Across Repository with `.editorconfig` (#19023) 2025-04-29 18:04:33 +08:00
header fix(i18n): add functions to retrieve document and pricing page languages (#19142) 2025-04-30 14:58:49 +08:00
plugins Enhance Code Consistency Across Repository with `.editorconfig` (#19023) 2025-04-29 18:04:33 +08:00
share feat: improve embedding sys.user_id and conversion id info usage (#18035) 2025-04-16 21:08:13 +08:00
signin Chore: frontend infrastructure upgrade (#16420) 2025-03-21 17:41:03 +08:00
tools Enhance Code Consistency Across Repository with `.editorconfig` (#19023) 2025-04-29 18:04:33 +08:00
workflow fix: mouse scrolling zooming can not function anymore (#19160) 2025-04-30 16:57:48 +08:00
workflow-app fix: remove chat variable in workflow mode (#18696) 2025-04-24 16:51:19 +08:00
browser-initor.tsx Chore/cleanup warnings (#17974) 2025-04-14 11:27:14 +08:00
i18n-server.tsx Chore: frontend infrastructure upgrade (#16420) 2025-03-21 17:41:03 +08:00
i18n.tsx Introduce Plugins (#13836) 2025-02-17 17:05:13 +08:00
sentry-initor.tsx Chore: frontend infrastructure upgrade (#16420) 2025-03-21 17:41:03 +08:00
swr-initor.tsx Chore/cleanup warnings (#17974) 2025-04-14 11:27:14 +08:00
with-i18n.tsx Initial commit 2023-05-15 08:51:32 +08:00