Skip to content

Commit afb98d2

Browse files
committed
don't await the promise
1 parent 444f9b0 commit afb98d2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib/beta/BetaToolRunner.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ export class BetaToolRunner<Stream extends boolean> {
147147
this.#options,
148148
);
149149

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
150+
this.#message = this.#chatCompletion.then((resp) => resp.choices.at(0)!.message).catch(() => {});
152151

153152
yield this.#chatCompletion as any;
154153
}

0 commit comments

Comments
 (0)