* @returns a promise that resolves with the content of the final ChatCompletionMessage, or rejects * if an error occurred or the stream ended prematurely without producing a ChatCompletionMessage.
()
| 81855 | if (!completion) |
| 81856 | throw new OpenAIError("stream ended without producing a ChatCompletion"); |
| 81857 | return completion; |
| 81858 | } |
| 81859 | /** |
| 81860 | * @returns a promise that resolves with the content of the final ChatCompletionMessage, or rejects |
| 81861 | * if an error occurred or the stream ended prematurely without producing a ChatCompletionMessage. |
| 81862 | */ |
| 81863 | async finalContent() { |
nothing calls this directly
no test coverage detected