Skip to content

Commit 9fb8ebe

Browse files
Update models.md -- remove callback streaming example (#414)
Redundant with "Streaming responses" section
1 parent 540b8ea commit 9fb8ebe

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

‎docs/models.md‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -165,18 +165,6 @@ const llmResponse = await generate({
165165
});
166166
```
167167

168-
And you can stream output from models that support it:
169-
170-
```javascript
171-
await generate({
172-
model: geminiPro,
173-
prompt: 'Tell me a very long joke.',
174-
streamingCallback: (chunk) => {
175-
console.log(chunk);
176-
},
177-
});
178-
```
179-
180168
### Adding retriever context
181169

182170
Documents from a retriever can be passed directly to `generate` to provide

0 commit comments

Comments
 (0)