Skip to content

Commit 0bb7fdf

Browse files
committed
Update UPGRADING.md
1 parent 31298dc commit 0bb7fdf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

UPGRADING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Upgrading from v1 to v2
22

3-
This guide will help you migrate an existing codebase from the v1 Replicate Python SDK to v2. The v2 SDK is a complete rewrite generated in partnership with [Stainless](https://www.stainless.com/customers/replicate), the folks who help build and maintain SDKs for companies like OpenAI, Anthropic, and Cloudflare. The v2 SDK is largely autogenerated from Replicate's OpenAPI specification, providing better type safety, more consistent error handling, and improved async support. Check out the [v2 release notes](#TODO) for more details.
3+
This guide will help you migrate an existing codebase from the v1 Replicate Python SDK to v2. The v2 SDK is a complete rewrite generated in partnership with [Stainless](https://www.stainless.com/customers/replicate), the folks who help build and maintain SDKs for companies like OpenAI, Anthropic, and Cloudflare. The v2 SDK is largely autogenerated from Replicate's OpenAPI specification, providing better type safety, more consistent error handling, and improved async support. Check out the [v2 release notes](https://github.com/replicate/replicate-python-stainless/releases) for more details.
44

55
✋ If you are working on a new project, you don't need to read this document.
66

@@ -627,11 +627,11 @@ The following features are not available in v2:
627627
- Model instance methods: `predict()`
628628
- `model.versions` shorthand (use `replicate.models.versions` instead)
629629
- Separate `async_*` methods (use `AsyncReplicate` client)
630-
- Positional arguments (all API operation methods like `models.get` and `collections.let` require keyword arguments)
630+
- Positional arguments (all methods that map to HTTP API operations like `models.get` and `collections.get` now require keyword arguments)
631631

632632
## Getting help
633633

634634
If you encounter issues during the migration process:
635635

636636
- Check the [API documentation](https://replicate.com/docs/reference/http)
637-
- Open an issue on [GitHub](https://github.com/replicate/replicate-python-stainless/issues)
637+
- Open an issue on [GitHub](https://github.com/replicate/replicate-python-stainless/issues)

0 commit comments

Comments
 (0)