Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stephmilovic committed Dec 5, 2024
1 parent 6f9d5d1 commit b479f09
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export const streamGraph = async ({
finalMessage += msg.content;
}
} else if (event.event === 'on_llm_end' && !didEnd) {
handleStreamEnd(event.data.output?.generations[0]?.text ?? finalMessage);
handleStreamEnd(event.data.output?.generations[0][0]?.text ?? finalMessage);
}
}
}
Expand Down

0 comments on commit b479f09

Please sign in to comment.