(chatCompletion)
| 81813 | var DEFAULT_MAX_CHAT_COMPLETIONS = 10; |
| 81814 | var AbstractChatCompletionRunner = class extends EventStream { |
| 81815 | constructor() { |
| 81816 | super(...arguments); |
| 81817 | _AbstractChatCompletionRunner_instances.add(this); |
| 81818 | this._chatCompletions = []; |
| 81819 | this.messages = []; |
| 81820 | } |
| 81821 | _addChatCompletion(chatCompletion) { |
| 81822 | this._chatCompletions.push(chatCompletion); |
| 81823 | this._emit("chatCompletion", chatCompletion); |
| 81824 | const message = chatCompletion.choices[0]?.message; |
| 81825 | if (message) |
no test coverage detected