Skip to content

Commit c7424c5

Browse files
stainless-app[bot]jharrellzeke
authored
release: 2.0.0-alpha.29 (#84)
* chore: sync repo * chore: change production repo to replicate/replicate-python-beta We renamed it from replicate/replicate-python-stainless in anticipation of the beta release. * fix(repo): update repo naming (#83) * codegen metadata * release: 2.0.0-alpha.29 * fix: remove unused replicate_max_lifetime parameter Remove the unused `replicate_max_lifetime` parameter from predictions.create methods in both sync and async implementations. This parameter was replaced by `cancel_after` but was not fully removed, causing ARG002 linting errors. --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com> Co-authored-by: Jon Harrell <[email protected]> Co-authored-by: Zeke Sikelianos <[email protected]>
1 parent 027744d commit c7424c5

39 files changed

+1324
-111
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This workflow is triggered when a GitHub release is created.
22
# It can also be run manually to re-publish to PyPI in case it failed for some reason.
3-
# You can run this workflow by navigating to https://www.github.com/replicate/replicate-python-stainless/actions/workflows/publish-pypi.yml
3+
# You can run this workflow by navigating to https://www.github.com/replicate/replicate-python-beta/actions/workflows/publish-pypi.yml
44
name: Publish PyPI
55
on:
66
workflow_dispatch:

.github/workflows/release-doctor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
release_doctor:
1010
name: release doctor
1111
runs-on: ubuntu-latest
12-
if: github.repository == 'replicate/replicate-python-stainless' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
12+
if: github.repository == 'replicate/replicate-python-beta' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
1313

1414
steps:
1515
- uses: actions/checkout@v4

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "2.0.0-alpha.28"
2+
".": "2.0.0-alpha.29"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 36
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/replicate%2Freplicate-client-8b68f03c8602e25ede74e66221e04bb17ac1f3170b8de49b8311fbe492636245.yml
3-
openapi_spec_hash: 81a7c6f32c6d77c1f329ca5a3c700a7a
4-
config_hash: 407acf62c906ee301314f2d23cdb58b1
1+
configured_endpoints: 37
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/replicate%2Freplicate-client-7a537f433b0b71a42a3d53ce6182cc06790157bbb379461eed93cdb68659bc92.yml
3+
openapi_spec_hash: 5c7633dce3ece58e21f74d826946914c
4+
config_hash: 2d6c50f99a6e3ed5963885980a9e4425

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# Changelog
22

3+
## 2.0.0-alpha.29 (2025-10-15)
4+
5+
Full Changelog: [v2.0.0-alpha.28...v2.0.0-alpha.29](https://github.com/replicate/replicate-python-beta/compare/v2.0.0-alpha.28...v2.0.0-alpha.29)
6+
7+
### Features
8+
9+
* add deprecated `replicate.stream()` for v1 compatibility ([#79](https://github.com/replicate/replicate-python-beta/issues/79)) ([79b69bd](https://github.com/replicate/replicate-python-beta/commit/79b69bd84448ceb55e7f683eea54dbc98cb3d9b2))
10+
11+
12+
### Bug Fixes
13+
14+
* **repo:** update repo naming ([#83](https://github.com/replicate/replicate-python-beta/issues/83)) ([0b61ae6](https://github.com/replicate/replicate-python-beta/commit/0b61ae6be254305bd49049083f7b11ed8de5e488))
15+
16+
17+
### Chores
18+
19+
* change production repo to replicate/replicate-python-beta ([b59e930](https://github.com/replicate/replicate-python-beta/commit/b59e93046143ab717f3ce81ca9148fcb0880b651))
20+
* sync repo ([24fe88a](https://github.com/replicate/replicate-python-beta/commit/24fe88a1f1460656b5be97a09faa16b1ee076b6e))
21+
22+
23+
### Documentation
24+
25+
* fix streaming docs in readme ([#81](https://github.com/replicate/replicate-python-beta/issues/81)) ([027744d](https://github.com/replicate/replicate-python-beta/commit/027744d7ea17a08af65d200f21064f836d08f442))
26+
327
## 2.0.0-alpha.28 (2025-10-07)
428

529
Full Changelog: [v2.0.0-alpha.27...v2.0.0-alpha.28](https://github.com/replicate/replicate-python-stainless/compare/v2.0.0-alpha.27...v2.0.0-alpha.28)

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ If you’d like to use the repository from source, you can either install from g
6262
To install via git:
6363

6464
```sh
65-
$ pip install git+ssh://[email protected]/replicate/replicate-python-stainless.git
65+
$ pip install git+ssh://[email protected]/replicate/replicate-python-beta.git
6666
```
6767

6868
Alternatively, you can build from source and install the wheel file:
@@ -120,7 +120,7 @@ the changes aren't made through the automated pipeline, you may want to make rel
120120

121121
### Publish with a GitHub workflow
122122

123-
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/replicate/replicate-python-stainless/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
123+
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/replicate/replicate-python-beta/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
124124

125125
### Publish manually
126126

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ import replicate
119119

120120
claude = replicate.use("anthropic/claude-4.5-sonnet", streaming=True)
121121

122-
for event in claude(prompt="Write a haiku about streaming output."):
122+
for event in claude(input={"prompt": "Please write a haiku about streaming Python."}):
123123
print(str(event), end="")
124124
```
125125

@@ -417,9 +417,9 @@ prediction = response.parse() # get the object that `predictions.create()` woul
417417
print(prediction.id)
418418
```
419419

420-
These methods return an [`APIResponse`](https://github.com/replicate/replicate-python-stainless/tree/main/src/replicate/_response.py) object.
420+
These methods return an [`APIResponse`](https://github.com/replicate/replicate-python-beta/tree/main/src/replicate/_response.py) object.
421421

422-
The async client returns an [`AsyncAPIResponse`](https://github.com/replicate/replicate-python-stainless/tree/main/src/replicate/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
422+
The async client returns an [`AsyncAPIResponse`](https://github.com/replicate/replicate-python-beta/tree/main/src/replicate/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
423423

424424
#### `.with_streaming_response`
425425

@@ -657,7 +657,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
657657

658658
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
659659

660-
We are keen for your feedback; please open an [issue](https://www.github.com/replicate/replicate-python-stainless/issues) with questions, bugs, or suggestions.
660+
We are keen for your feedback; please open an [issue](https://www.github.com/replicate/replicate-python-beta/issues) with questions, bugs, or suggestions.
661661

662662
### Determining the installed version
663663

0 commit comments

Comments
 (0)