Replies: 1 comment
-
I think you can look at event.partial to see if it's part of a stream. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone,
I am trying to stream LLM responses and looking for a way to separate one logical part (LLM call, function call, etc.) from another. However, I noticed that the
event.id
I used for this purpose in the previous setup is always new. What is the best way for me to determine whether it’s still part of the previous event or a new event?Here is the code:
Beta Was this translation helpful? Give feedback.
All reactions