Skip to content

Commit c0d4a38

Browse files
committed
docs: clarify "resource methods" terminology in migration guide
1 parent 675922a commit c0d4a38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UPGRADING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ dependencies = [
3232
## Quick migration checklist
3333

3434
- Update client initialization to use `Replicate()` instead of `Client()` and `bearer_token` instead of `api_token`
35-
- Replace prediction instance methods (`wait()`, `cancel()`, `reload()`) with resource methods
35+
- Replace prediction instance methods with client methods (e.g., `replicate.predictions.wait(id)` instead of `prediction.wait()`)
3636
- Update async code to use `AsyncReplicate` client or context-aware module-level functions
3737
- Add keyword arguments to all API calls
3838
- Update exception handling to use new exception types
@@ -115,7 +115,7 @@ To stream a specific prediction in v2, use the top-level `stream()` function.
115115

116116
## Predictions
117117

118-
Prediction objects have changed significantly. Instance methods like `wait()`, `cancel()`, and `reload()` are removed in favor of resource methods.
118+
Prediction objects have changed significantly. Instance methods like `wait()`, `cancel()`, and `reload()` are removed in favor of client methods (e.g., use `replicate.predictions.wait(prediction.id)` instead of `prediction.wait()`).
119119

120120
### Creating predictions
121121

0 commit comments

Comments
 (0)