Skip to content

Commit 5b52aa9

Browse files
committed
catch with separate update
1 parent 4c95b49 commit 5b52aa9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/beta/BetaToolRunner.ts

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

150-
this.#message = this.#chatCompletion.then((resp) => resp.choices.at(0)!.message).catch(() => {});
150+
this.#message = this.#chatCompletion.then((resp) => resp.choices.at(0)!.message);
151+
this.#message.catch(() => {});
151152

152153
yield this.#chatCompletion as any;
153154
}

0 commit comments

Comments
 (0)