(role, fullText)
| 146 | } |
| 147 | |
| 148 | function 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 |
| 160 | function sendSessionUpdate() { |
no test coverage detected