Skip to content

Commit

Permalink
fix: run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
akira-cn committed Sep 16, 2023
1 parent e010492 commit 5792aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/stream-to-iterable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export async function* streamToIterable(
if (!(stream instanceof IncomingMessage)) {
for await (const chunk of stream) {
const choice = chunk.choices[0];
if(!choice) continue;
if (!choice) continue;
const delta = choice.delta?.content;
if (delta !== undefined) {
previous += delta;
Expand Down

0 comments on commit 5792aa0

Please sign in to comment.