We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 444f9b0 commit afb98d2Copy full SHA for afb98d2
src/lib/beta/BetaToolRunner.ts
@@ -147,8 +147,7 @@ export class BetaToolRunner<Stream extends boolean> {
147
this.#options,
148
);
149
150
- this.#message = this.#chatCompletion.then((resp) => resp.choices.at(0)!.message);
151
- await this.#message; // TODO: we would like to not need to await it
+ this.#message = this.#chatCompletion.then((resp) => resp.choices.at(0)!.message).catch(() => {});
152
153
yield this.#chatCompletion as any;
154
}
0 commit comments