I set up an Edge Function to receive streaming responses. It works, but the response deteriorates over time.
I carefully followed the tutorial in the documentation, as well as the video tutorial, but the response I get gradually deteriorates until it becomes:
- I used the libraries : import { createOpenAI } from “https://esm.sh/@ai-sdk/openai@0.0.4”;
import { streamText } from “https://esm.sh/ai@3.1.9”}; - I activated the stream response, I receive the stream, showing into weweb interface
As a non-dev, I asked to different AI what’s going on: **“The OpenAI data stream is corrupted while it is being read and retransmitted by the Edge Function.”
**
In 6 month, I haven’t been fortunate enough to receive any concrete assistance from support. I truly hope the community can provide some guidance to help me resolve this issue ![]()
![]()
![]()
