Skip to content

Conversation

@stainless-app
Copy link
Contributor

@stainless-app stainless-app bot commented Oct 9, 2025

Automated Release PR

2.0.0-alpha.29 (2025-10-10)

Full Changelog: v2.0.0-alpha.28...v2.0.0-alpha.29

Features

  • add deprecated replicate.stream() for v1 compatibility (#79) (79b69bd)
  • api: add models.update() operation (2605ecc)

Chores

  • internal: detect missing future annotations with ruff (26638e7)
  • update OpenAPI spec and rebuild SDKs (384c14f)
  • update OpenAPI spec and rebuild SDKs (51336e2)
  • update OpenAPI spec and rebuild SDKs (7deb277)
  • update OpenAPI spec and rebuild SDKs (d5ee9ad)

Documentation

  • add migration guide for upgrading from v1 to v2 (#76) (5f57722)

This pull request is managed by Stainless's GitHub App.

The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.

For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.

🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions

@stainless-app stainless-app bot requested a review from a team as a code owner October 9, 2025 14:13
@stainless-app
Copy link
Contributor Author

stainless-app bot commented Oct 9, 2025

🧪 Testing

To try out this version of the SDK, run:

pip install 'https://pkg.stainless.com/s/replicate-client-python/5f5772200a03012bb11c8c12a6e7a0f7d683d0cf/replicate-2.0.0a28-py3-none-any.whl'

Expires: Sun, 09 Nov 2025 20:29:27 GMT

@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch 6 times, most recently from 9d8eec8 to ac919b6 Compare October 10, 2025 08:48
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from ac919b6 to 26c4bfb Compare October 10, 2025 16:38
zeke and others added 2 commits October 10, 2025 13:28
* docs: add migration guide for upgrading from v1 to v2

This PR adds UPGRADING.md, a comprehensive migration guide for users
upgrading from the v1 Replicate Python SDK to v2.

The guide covers:
- Client initialization changes (Replicate vs Client, bearer_token vs api_token)
- Prediction lifecycle changes (resource methods vs instance methods)
- Async support differences (AsyncReplicate client vs async_ methods)
- Error handling improvements (granular exception types)
- Pagination enhancements (auto-pagination)
- Models and versions API changes (keyword arguments)
- File handling differences
- New features in v2 (models listing, better types, HTTP customization)
- Removed features (instance methods, positional arguments)
- Migration strategy recommendations

Addresses DP-684

* docs: remove unnecessary implementation detail about Prefer headers

* docs: clarify "resource methods" terminology in migration guide

* docs: add section links to migration checklist

* docs: clarify auto-pagination behavior in v2

* docs: add wait example for trainings to mirror v1

* docs: clarify file upload supports file handles without reading into memory

* docs: correct async support in use() interface - v1 also had it

* docs: add documentation reference for APIResponse object

* fix upgrading note about creating predictions

* remove unrelated comment about models.list()

* docs: update streaming section to show replicate.use() with streaming=True

Update migration guide to reflect that replicate.use() with streaming=True
is the preferred approach for streaming in v2. Mention that replicate.stream()
still works but is deprecated, without showing a code example.

* update client section of upgrade guide

* docs: use anthropic/claude-4.5-sonnet in streaming examples

* Update UPGRADING.md

* Update UPGRADING.md

* Update UPGRADING.md
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 26c4bfb to 67fbe9c Compare October 10, 2025 20:28
@stainless-app stainless-app bot closed this Oct 10, 2025
@stainless-app stainless-app bot deleted the release-please--branches--main--changes--next branch October 10, 2025 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants