Skip to content

Commit 9efac9a

Browse files
authored
docs: remove replicate.stream from README (#78)
1 parent 2804bd6 commit 9efac9a

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

README.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -110,22 +110,6 @@ output = replicate.run("...", input={...}, wait=False)
110110

111111
When `wait=False`, the method returns immediately after creating the prediction, and you'll need to poll for the result manually.
112112

113-
## Run a model and stream its output
114-
115-
For models that support streaming (particularly language models), you can use `replicate.stream()`:
116-
117-
```python
118-
import replicate
119-
120-
for event in replicate.stream(
121-
"meta/meta-llama-3-70b-instruct",
122-
input={
123-
"prompt": "Please write a haiku about llamas.",
124-
},
125-
):
126-
print(str(event), end="")
127-
```
128-
129113
## Async usage
130114

131115
Simply import `AsyncReplicate` instead of `Replicate` and use `await` with each API call:

0 commit comments

Comments
 (0)