You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 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]>
* change production repo to replicate/replicate-python-beta ([b59e930](https://github.com/replicate/replicate-python-beta/commit/b59e93046143ab717f3ce81ca9148fcb0880b651))
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
120
120
121
121
### Publish with a GitHub workflow
122
122
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.
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,7 +119,7 @@ import replicate
119
119
120
120
claude = replicate.use("anthropic/claude-4.5-sonnet", streaming=True)
121
121
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."}):
123
123
print(str(event), end="")
124
124
```
125
125
@@ -417,9 +417,9 @@ prediction = response.parse() # get the object that `predictions.create()` woul
417
417
print(prediction.id)
418
418
```
419
419
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.
421
421
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.
423
423
424
424
#### `.with_streaming_response`
425
425
@@ -657,7 +657,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
657
657
658
658
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
659
659
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.
0 commit comments