MCPcopy Create free account
hub / github.com/astercloud/aster / flushTextChunks

Function flushTextChunks

ui/src/stores/chat.ts:154–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152 * 刷新文本块(批量更新到消息)
153 */
154 const flushTextChunks = () => {
155 for (const [messageId, chunks] of pendingTextChunks.value) {
156 const msg = messages.value.find((m) => m.id === messageId);
157 if (msg && msg.type === "text") {
158 msg.content.text += chunks.join("");
159 }
160 }
161 pendingTextChunks.value.clear();
162 };
163
164 /**
165 * 更新最后一条助手消息的文本

Callers 1

handleTextChunkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected