Open
Description
-
I'm submitting a ...
[x] question about how to use this project -
Summary
I'm encountering two problems when working with the streaming example:
- When running the code from
examples/streaming2.ts
withstream: true
, I get an error:Missing required fields: answerInPoints
. What's causing this error and how can I resolve it? - After setting
stream: true
, how can I access the result chunks? Are there methods similar tofor await (const chunk of result)
orcompletion.data.on()
that I can use to process the incoming stream? (Similar to How to use stream: true? openai/openai-node#18)
Any guidance on resolving these issues would be greatly appreciated. Thank you!
Metadata
Metadata
Assignees
Labels
No labels