(role, delta)
| 136 | } |
| 137 | |
| 138 | function 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 | |
| 148 | function finalizeStreamingTranscript(role, fullText) { |
| 149 | if (streamingEntry) { |
no test coverage detected