* Finish streaming a message (add newline).
(ts: number)
| 406 | * Finish streaming a message (add newline). |
| 407 | */ |
| 408 | finishStream(ts: number): void { |
| 409 | if (this.currentlyStreamingTs === ts) { |
| 410 | this.writeRaw("\n") |
| 411 | this.currentlyStreamingTs = null |
| 412 | this.streamingState.next({ ts: null, isStreaming: false }) |
| 413 | } |
| 414 | } |
| 415 | |
| 416 | /** |
| 417 | * Output a say:completion_result message (streamed text of the completion). |
no test coverage detected