From 4326fcce425f5fe2e50faa5d8b48b5612faca6ad Mon Sep 17 00:00:00 2001 From: thzxx Date: Sun, 12 Jul 2026 08:19:59 +0800 Subject: [PATCH] =?UTF-8?q?v0.16.2:=20=E9=99=84=E4=BB=B6JSON=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0description=E5=AD=97=E6=AE=B5=EF=BC=8C=E9=81=BF?= =?UTF-8?q?=E5=85=8DAI=E9=87=8D=E5=A4=8D=E8=B0=83=E7=94=A8=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E8=AF=BB=E5=8F=96=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/components/input-area.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/renderer/components/input-area.ts b/src/renderer/components/input-area.ts index 6242d24..aa4ee88 100644 --- a/src/renderer/components/input-area.ts +++ b/src/renderer/components/input-area.ts @@ -955,6 +955,7 @@ function buildFileContentParts(fileContents: Array<{ name: string; language: str return JSON.stringify({ file_name: f.name, file_type: lang, + description: '用户上传的附件,内容已包含在 context 字段中,无需使用文件读取工具再次读取。', context: text, }); }).filter(Boolean); @@ -1141,6 +1142,7 @@ async function sendMessageWithAgentLoop(text: string, currentSession: ChatSessio apiParts.push(JSON.stringify({ file_name: v.name, file_type: v.name.split('.').pop() || 'video', + description: '用户上传的视频附件,帧图片已通过 images 数组传递,帧索引映射已包含在 context 字段中,无需使用文件读取工具再次读取。', context: JSON.stringify({ frame_count: v.count, fps: 1,