Problem with StreamData and ReadableStream
Unanswered
American Staffordshire Terrier posted this in #help-forum
Original message was deleted.
3 Replies
American Staffordshire Terrier
Hi!
The problem is:
The problem is:
controller.enqueue(textEncoder.encode(parsedChunk.content)); the .content simply does not reach the frontend.Only this reaches the frontend:
dataStreamSteps.append(parsedChunk.content as unknown as JSONValue);For
controller.enqueue I expected to send only the text output from the LLM, but this is not reaching the front. For dataStreamSteps, I expected to send to the frontend JSON and it is working as I expected.