File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ This doc is intended for both humans and agents.
66
77If 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
1414pip 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
8888for 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 )
105105for event in model(prompt = " Write a haiku" ):
106106 print (str (event), end = " " )
107107
You can’t perform that action at this time.
0 commit comments