Skip to content

Commit

Permalink
Update models.md -- remove callback streaming example (#414)
Browse files Browse the repository at this point in the history
Redundant with "Streaming responses" section
  • Loading branch information
kevinthecheung authored Jun 28, 2024
1 parent 540b8ea commit 9fb8ebe
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions docs/models.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,18 +165,6 @@ const llmResponse = await generate({
});
```

And you can stream output from models that support it:

```javascript
await generate({
model: geminiPro,
prompt: 'Tell me a very long joke.',
streamingCallback: (chunk) => {
console.log(chunk);
},
});
```

### Adding retriever context

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

0 comments on commit 9fb8ebe

Please sign in to comment.