This commit is contained in:
Your Name
2026-08-03 10:00:05 +08:00
parent 0fb03d0bca
commit 01729b1e0b
109 changed files with 7577 additions and 1153 deletions
+6
View File
@@ -258,6 +258,7 @@ export const useChatStore = defineStore('chat', () => {
attachments,
agent_id: agentId || null,
image_tool: options.imageTool || null,
voice_mode: !!options.voiceMode,
stream: true
})
})
@@ -288,6 +289,11 @@ export const useChatStore = defineStore('chat', () => {
const appendVisibleContent = (content) => {
if (!content) return
receivedContent += content
try {
options.onTextDelta?.(content)
} catch {
// 展示层或语音层回调失败不应中断主消息流。
}
if (!isAgentStream) {
fullContent += content