© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•15mo ago•
1 reply
Codename_A

Worker response not streaming

Hey, I am attempting to get an OpenAI assistant response stream from my cloudflare worker. It seems to be working in my http client. The data is received in chunks. However, using a basic html page is showing that the response is coming in one massive chunk. I am very frustrated and I would appreciate some guidance. Here is my code with only the relevant stuff: https://paste.ofcode.org/wq6cTB2cYZE2GTstWH4uc8. When I receive content, the console is correctly filled with the openai response. The chunks in Insomnia (my http client) match this. However, my stream implementation is quite sketchy. Am I doing it correctly? Thanks.
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Streaming response disconnect hook
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
11mo ago
Slow worker response
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
15mo ago
JS <=> Rust worker streaming
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
12mo ago
Worker response is not cached by default?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago