MCPcopy
hub / github.com/mudler/LocalAI / updateStreamingTranscript

Function updateStreamingTranscript

core/http/static/talk.js:138–146  ·  view source on GitHub ↗
(role, delta)

Source from the content-addressed store, hash-verified

136}
137
138function updateStreamingTranscript(role, delta) {
139 if (!streamingEntry) {
140 streamingEntry = addTranscript(role, delta);
141 } else {
142 const msg = streamingEntry.querySelector('p');
143 if (msg) msg.textContent += delta;
144 transcript.scrollTop = transcript.scrollHeight;
145 }
146}
147
148function finalizeStreamingTranscript(role, fullText) {
149 if (streamingEntry) {

Callers 1

handleServerEventFunction · 0.85

Calls 1

addTranscriptFunction · 0.85

Tested by

no test coverage detected