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

Function finalizeStreamingTranscript

core/http/static/talk.js:148–157  ·  view source on GitHub ↗
(role, fullText)

Source from the content-addressed store, hash-verified

146}
147
148function finalizeStreamingTranscript(role, fullText) {
149 if (streamingEntry) {
150 const msg = streamingEntry.querySelector('p');
151 if (msg) msg.textContent = fullText;
152 streamingEntry = null;
153 } else {
154 addTranscript(role, fullText);
155 }
156 transcript.scrollTop = transcript.scrollHeight;
157}
158
159// Send a session.update event with the user's settings
160function sendSessionUpdate() {

Callers 1

handleServerEventFunction · 0.85

Calls 1

addTranscriptFunction · 0.85

Tested by

no test coverage detected