Skip to content

Commit e82741d

Browse files
committed
docs: use anthropic/claude-4.5-sonnet in streaming examples
1 parent f6f6029 commit e82741d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

UPGRADING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ This doc is intended for both humans and agents.
66

77
If you're using an AI tool to assist with the upgrade process, you can provide it with this entire document as context.
88

9-
## Installation
9+
## Installing the v2 SDK
1010

11-
Use pip to install the latest pre-release version of the SDK:
11+
Use pip to install the latest pre-release version of the v2 SDK:
1212

1313
```sh
1414
pip install --pre replicate
@@ -86,7 +86,7 @@ Streaming works differently in v2. Prediction objects no longer have a `stream()
8686
```python
8787
# Top-level streaming
8888
for event in replicate.stream(
89-
"meta/meta-llama-3-70b-instruct",
89+
"anthropic/claude-4.5-sonnet",
9090
input={"prompt": "Write a haiku"}
9191
):
9292
print(str(event), end="")
@@ -101,7 +101,7 @@ for event in prediction.stream():
101101

102102
```python
103103
# Use replicate.use() with streaming=True
104-
model = replicate.use("meta/meta-llama-3-70b-instruct", streaming=True)
104+
model = replicate.use("anthropic/claude-4.5-sonnet", streaming=True)
105105
for event in model(prompt="Write a haiku"):
106106
print(str(event), end="")
107107

0 commit comments

Comments
 (0)