()
| 598 | } |
| 599 | |
| 600 | async endResponse(): Promise<void> { |
| 601 | if (this.#finished) { |
| 602 | return; |
| 603 | } |
| 604 | this.#finished = true; |
| 605 | await this.#rpc().llmInference.httpResponseChunk({ |
| 606 | requestId: this.requestId, |
| 607 | data: "", |
| 608 | end: true, |
| 609 | }); |
| 610 | } |
| 611 | |
| 612 | async errorResponse(error: { message: string; code?: string }): Promise<void> { |
| 613 | if (this.#finished) { |
no test coverage detected