We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0773ec commit 9a0a110Copy full SHA for 9a0a110
docs/source/pipelines.md
@@ -171,7 +171,8 @@ const messages = [
171
// Create text streamer
172
const streamer = new TextStreamer(generator.tokenizer, {
173
skip_prompt: true,
174
- callback_function: (text) => process.stdout.write(text), // Stream to command line
+ // Optionally, do something with the text (e.g., write to a textbox)
175
+ // callback_function: (text) => { /* Do something with text */ },
176
})
177
178
// Generate a response
0 commit comments