Closed grapewheel closed 7 months ago
1.1.3+2615dc742
Linux 6.6.25-1-lts x86_64 unknown (archlinux)
While I used the module modelfusion 's streamText function
modelfusion
streamText
import { streamText } from 'modelfusion' const textStream = await streamText({ model, prompt, })
The streamText function use the TextDecoderStream which includes in the Node >= 16.6, MDN DOC, but the bunjs runs in error below:
TextDecoderStream
// src/util/streaming/parseEventSourceStream.ts async function parseEventSourceStream({ stream }) { const eventStream = stream.pipeThrough(new TextDecoderStream()).pipeThrough(new EventSourceParserStream()); ReferenceError: Can't find variable: TextDecoderStream
No response
Duplicate of #5648
What version of Bun is running?
1.1.3+2615dc742
What platform is your computer?
Linux 6.6.25-1-lts x86_64 unknown (archlinux)
What steps can reproduce the bug?
While I used the module
modelfusion
'sstreamText
functionThe
streamText
function use theTextDecoderStream
which includes in the Node >= 16.6, MDN DOC, but the bunjs runs in error below:What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response