You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a CLI program using streamText that sends the stream to the console via console.log. It will work for a bit but then the stream output will stop displaying. However, when I go into wireshark, I can see that the full stream from OpenAI completed. Then I'll get an Aborted type error.
Here is what wireshark pulled down from the actual openai api request:
The basic Nmap scan of your localhost (127.0.0.1) has been completed again.
Here are the results:
- **Host is up** with a latency of 0.000057 seconds.
- **Open Ports**:
- **22/tcp: SSH**
997 other TCP ports are closed.
If there's anything else you'd like to do, just let me know!
Here's the relevant code block:
for await (const streamObj of response.fullStream) {
if (streamObj.type === "tool-call") {
console.log(streamObj)
}
if (streamObj.type !== "text-delta") {
console.log(streamObj)
continue;
}
const text = streamObj.textDelta;
console.log(text)
}
rl.write("\n\n");
Should I try a different kind of stream?
Code example
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Description
I have a CLI program using streamText that sends the stream to the console via console.log. It will work for a bit but then the stream output will stop displaying. However, when I go into wireshark, I can see that the full stream from OpenAI completed. Then I'll get an Aborted type error.
Here is what wireshark pulled down from the actual openai api request:
Here's the relevant code block:
Should I try a different kind of stream?
Code example
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: