-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
streamObject
alternating between undefined
and the response
#1508
Comments
streamObject
alternating between undefined
and the response
@bernaferrari are you able to reproduce this locally consistently each time? |
Yes!! But I wish I could send what is breaking instead of my whole prompt. |
@bernaferrari is there a chance that you could provide a similar example that breaks and has nothing to do with your prompt? (e.g. using a structurally similar prompt/schema from a different domain) |
I don't know, but I could send the output before and after it is undefined so you can test character by character what is wrong. Would that be helpful? |
Maybe, would have to see |
Check if this helps, I'm printing
Then again at:
and
|
@bernaferrari thank you! investigating now |
Fix: #1529 |
Description
This one is hard to reproduce, because there is no rawText for me to debug and send the issue :P #1486
But basically, in a certain circumstance, partialObject (from
for await (const partialObject of stream.partialObjectStream) {
) will return undefined, followed by the correct JSON, followed by undefined. It keeps alternating betweenundefined
and the correct JSON.I wish it either didn't return undefined, since that's not useful, or there were a better way to debug this so I could report to you.
Code example
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: