fix(AI): 修复智能体关联流程无法获取聊天图片 - #9876
Open
Rangsh wants to merge 1 commit into
Open
Conversation
聊天助手调用关联流程工具时,将当前轮上传的图片自动注入流程的 images 入参。 图片参数对大模型隐藏,由服务端负责传递,避免模型遗漏或编造图片地址。 同时保留图片列表的数组结构,确保 OCR 等图片输入流程能够正确读取对话上传图片。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联 Issue
Closes #9872
问题描述
智能体中的聊天助手在关联流程作为工具调用时,虽然用户已在对话中上传图片,但图片未传递给关联流程的
images入参,导致 OCR 等图片输入流程无法读取图片。修复内容
images入参使用服务端隐藏参数自动注入,避免依赖大模型自行传递图片地址。验证结果
git diff --check,未发现格式问题。影响范围
仅影响聊天助手关联流程作为工具调用时的图片参数传递,不影响直接运行 ChatFlow 的现有图片处理逻辑。