更新
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user