feat: 文件也在消息内容中显示 [文件: xxx.md] 描述
This commit is contained in:
@@ -999,6 +999,9 @@ async function sendMessageWithAgentLoop(text: string, currentSession: ChatSessio
|
|||||||
} else if (pendingImages.length > 1) {
|
} else if (pendingImages.length > 1) {
|
||||||
displayParts.push(`[${pendingImages.length} 张图片]`);
|
displayParts.push(`[${pendingImages.length} 张图片]`);
|
||||||
}
|
}
|
||||||
|
for (const f of userFiles) {
|
||||||
|
displayParts.push(`[文件: ${f.name}]`);
|
||||||
|
}
|
||||||
const displayContent = displayParts.join('\n');
|
const displayContent = displayParts.join('\n');
|
||||||
|
|
||||||
// Ollama API 用的完整描述(文字 + 文件 + 视频帧序列 + 图片提示)
|
// Ollama API 用的完整描述(文字 + 文件 + 视频帧序列 + 图片提示)
|
||||||
|
|||||||
Reference in New Issue
Block a user