Skip to content

Conversation

@stainless-app
Copy link
Contributor

@stainless-app stainless-app bot commented Sep 25, 2025

Automated Release PR

2.0.0-alpha.27 (2025-09-29)

Full Changelog: v2.0.0-alpha.26...v2.0.0-alpha.27

Features

  • add api_token parameter support for legacy compatibility (7a781df)
  • add legacy exception compatibility aliases (#70) (1a66fc8)

Bug Fixes

  • predictions: use Omit instead of NotGiven (6f10116)

Chores

  • internal: update formatting (d1bebb6)
  • types: change optional parameter type from NotGiven to Omit (3223abf)

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

zeke and others added 3 commits September 25, 2025 16:28
Adds support for the legacy api_token parameter in both Replicate and
AsyncReplicate client initialization as an alternative to bearer_token.

This enables backward compatibility with v1.x client code that uses:
- Client(api_token="...")
- AsyncClient(api_token="...")

The implementation:
- Accepts both api_token and bearer_token parameters
- Raises clear error if both are provided
- Maps api_token to bearer_token internally
- Maintains existing environment variable behavior
- Includes comprehensive test coverage
@stainless-app stainless-app bot requested a review from a team as a code owner September 25, 2025 16:29
@stainless-app
Copy link
Contributor Author

stainless-app bot commented Sep 25, 2025

🧪 Testing

To try out this version of the SDK, run:

pip install 'https://pkg.stainless.com/s/replicate-client-python/6f1011624cd05a82422386332917748fc821fdc6/replicate-2.0.0a26-py3-none-any.whl'

Expires: Wed, 29 Oct 2025 10:48:16 GMT

@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from ec3ae7c to 48a4576 Compare September 29, 2025 10:46
@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 48a4576 to 55a0696 Compare September 29, 2025 10:48
@zeke zeke merged commit 2804bd6 into main Sep 29, 2025
7 checks passed
@zeke zeke deleted the release-please--branches--main--changes--next branch September 29, 2025 19:58
@stainless-app
Copy link
Contributor Author

stainless-app bot commented Sep 29, 2025

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.

3 participants