From ba4256495f92133738016c03b198a1bb88b6ed21 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 02:28:34 +0000 Subject: [PATCH 1/3] chore(docs): grammar improvements --- SECURITY.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SECURITY.md b/SECURITY.md index a7c5e80..4546e09 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -16,11 +16,11 @@ before making any information public. ## Reporting Non-SDK Related Security Issues If you encounter security issues that are not directly related to SDKs but pertain to the services -or products provided by Replicate please follow the respective company's security reporting guidelines. +or products provided by Replicate, please follow the respective company's security reporting guidelines. ### Replicate Terms and Policies -Please contact team@replicate.com for any questions or concerns regarding security of our services. +Please contact team@replicate.com for any questions or concerns regarding the security of our services. --- From eb2a462c8bd7dd8a0e303020e8c09a302ef670a0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 11:15:52 +0000 Subject: [PATCH 2/3] feat(api): api update --- .stats.yml | 4 ++-- src/replicate/resources/predictions.py | 12 ++++++++---- src/replicate/resources/trainings.py | 14 ++++++++++---- src/replicate/types/prediction.py | 11 +++++++---- 4 files changed, 27 insertions(+), 14 deletions(-) diff --git a/.stats.yml b/.stats.yml index 552035c..6234e82 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 35 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/replicate%2Freplicate-client-2f8bfb10427a39d0a79c691643d97cb447b0d114b07cdf146965fd60b5063ebf.yml -openapi_spec_hash: 1a11b292ef30bcf52340847c567de1ad +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/replicate%2Freplicate-client-37cd8ea847eb57706035f766ca549d5b4e2111053af0656a2df9a8150421428e.yml +openapi_spec_hash: a3e4d6fd9aff6de0e4b6d8ad28cbbe05 config_hash: 8e356248f15e5e54d2aecab141f45228 diff --git a/src/replicate/resources/predictions.py b/src/replicate/resources/predictions.py index 6d368ce..7404c60 100644 --- a/src/replicate/resources/predictions.py +++ b/src/replicate/resources/predictions.py @@ -257,6 +257,7 @@ def list( "source": "api", "status": "succeeded", "urls": { + "web": "https://replicate.com/p/gm3qorzdhgbfurvjtvhg6dckhu", "get": "https://api.replicate.com/v1/predictions/gm3qorzdhgbfurvjtvhg6dckhu", "cancel": "https://api.replicate.com/v1/predictions/gm3qorzdhgbfurvjtvhg6dckhu/cancel" }, @@ -420,8 +421,9 @@ def get( "predict_time": 0.012683 }, "urls": { - "cancel": "https://api.replicate.com/v1/predictions/gm3qorzdhgbfurvjtvhg6dckhu/cancel", - "get": "https://api.replicate.com/v1/predictions/gm3qorzdhgbfurvjtvhg6dckhu" + "web": "https://replicate.com/p/gm3qorzdhgbfurvjtvhg6dckhu", + "get": "https://api.replicate.com/v1/predictions/gm3qorzdhgbfurvjtvhg6dckhu", + "cancel": "https://api.replicate.com/v1/predictions/gm3qorzdhgbfurvjtvhg6dckhu/cancel" } } ``` @@ -708,6 +710,7 @@ def list( "source": "api", "status": "succeeded", "urls": { + "web": "https://replicate.com/p/gm3qorzdhgbfurvjtvhg6dckhu", "get": "https://api.replicate.com/v1/predictions/gm3qorzdhgbfurvjtvhg6dckhu", "cancel": "https://api.replicate.com/v1/predictions/gm3qorzdhgbfurvjtvhg6dckhu/cancel" }, @@ -871,8 +874,9 @@ async def get( "predict_time": 0.012683 }, "urls": { - "cancel": "https://api.replicate.com/v1/predictions/gm3qorzdhgbfurvjtvhg6dckhu/cancel", - "get": "https://api.replicate.com/v1/predictions/gm3qorzdhgbfurvjtvhg6dckhu" + "web": "https://replicate.com/p/gm3qorzdhgbfurvjtvhg6dckhu", + "get": "https://api.replicate.com/v1/predictions/gm3qorzdhgbfurvjtvhg6dckhu", + "cancel": "https://api.replicate.com/v1/predictions/gm3qorzdhgbfurvjtvhg6dckhu/cancel" } } ``` diff --git a/src/replicate/resources/trainings.py b/src/replicate/resources/trainings.py index 7e18dc1..033c21b 100644 --- a/src/replicate/resources/trainings.py +++ b/src/replicate/resources/trainings.py @@ -105,8 +105,9 @@ def create( "status": "starting", "created_at": "2023-09-08T16:32:56.990893084Z", "urls": { - "cancel": "https://api.replicate.com/v1/predictions/zz4ibbonubfz7carwiefibzgga/cancel", - "get": "https://api.replicate.com/v1/predictions/zz4ibbonubfz7carwiefibzgga" + "web": "https://replicate.com/p/zz4ibbonubfz7carwiefibzgga", + "get": "https://api.replicate.com/v1/predictions/zz4ibbonubfz7carwiefibzgga", + "cancel": "https://api.replicate.com/v1/predictions/zz4ibbonubfz7carwiefibzgga/cancel" } } ``` @@ -250,6 +251,7 @@ def list( "source": "api", "status": "succeeded", "urls": { + "web": "https://replicate.com/p/zz4ibbonubfz7carwiefibzgga", "get": "https://api.replicate.com/v1/trainings/zz4ibbonubfz7carwiefibzgga", "cancel": "https://api.replicate.com/v1/trainings/zz4ibbonubfz7carwiefibzgga/cancel" }, @@ -359,6 +361,7 @@ def get( "started_at": "2023-09-08T16:32:57.112647Z", "status": "succeeded", "urls": { + "web": "https://replicate.com/p/zz4ibbonubfz7carwiefibzgga", "get": "https://api.replicate.com/v1/trainings/zz4ibbonubfz7carwiefibzgga", "cancel": "https://api.replicate.com/v1/trainings/zz4ibbonubfz7carwiefibzgga/cancel" }, @@ -486,8 +489,9 @@ async def create( "status": "starting", "created_at": "2023-09-08T16:32:56.990893084Z", "urls": { - "cancel": "https://api.replicate.com/v1/predictions/zz4ibbonubfz7carwiefibzgga/cancel", - "get": "https://api.replicate.com/v1/predictions/zz4ibbonubfz7carwiefibzgga" + "web": "https://replicate.com/p/zz4ibbonubfz7carwiefibzgga", + "get": "https://api.replicate.com/v1/predictions/zz4ibbonubfz7carwiefibzgga", + "cancel": "https://api.replicate.com/v1/predictions/zz4ibbonubfz7carwiefibzgga/cancel" } } ``` @@ -631,6 +635,7 @@ def list( "source": "api", "status": "succeeded", "urls": { + "web": "https://replicate.com/p/zz4ibbonubfz7carwiefibzgga", "get": "https://api.replicate.com/v1/trainings/zz4ibbonubfz7carwiefibzgga", "cancel": "https://api.replicate.com/v1/trainings/zz4ibbonubfz7carwiefibzgga/cancel" }, @@ -740,6 +745,7 @@ async def get( "started_at": "2023-09-08T16:32:57.112647Z", "status": "succeeded", "urls": { + "web": "https://replicate.com/p/zz4ibbonubfz7carwiefibzgga", "get": "https://api.replicate.com/v1/trainings/zz4ibbonubfz7carwiefibzgga", "cancel": "https://api.replicate.com/v1/trainings/zz4ibbonubfz7carwiefibzgga/cancel" }, diff --git a/src/replicate/types/prediction.py b/src/replicate/types/prediction.py index b3d0fcf..4a5122b 100644 --- a/src/replicate/types/prediction.py +++ b/src/replicate/types/prediction.py @@ -11,13 +11,16 @@ class URLs(BaseModel): cancel: str - """Cancel the prediction""" + """Cancel the prediction via API""" get: str - """Retrieve the latest state of the prediction""" + """Retrieve the latest state of the prediction via API""" + + web: str + """View the prediction in a browser""" stream: Optional[str] = None - """An event source to stream the output of the prediction""" + """An event source to stream the output of the prediction via API""" class Prediction(BaseModel): @@ -47,7 +50,7 @@ class Prediction(BaseModel): status: Literal["starting", "processing", "succeeded", "failed", "canceled"] urls: URLs - """API endpoints for working with the prediction""" + """URLs for working with the prediction""" version: Union[str, Literal["hidden"]] """The ID of the model version that created the prediction""" From d0e339b980115770d1ca41cd736377de2b7c40d4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 11:16:26 +0000 Subject: [PATCH 3/3] release: 0.6.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ pyproject.toml | 2 +- src/replicate/_version.py | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index d04f223..4208b5c 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.5.1" + ".": "0.6.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 1470fd0..4cbb647 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 0.6.0 (2025-05-22) + +Full Changelog: [v0.5.1...v0.6.0](https://github.com/replicate/replicate-python-stainless/compare/v0.5.1...v0.6.0) + +### Features + +* **api:** api update ([eb2a462](https://github.com/replicate/replicate-python-stainless/commit/eb2a462c8bd7dd8a0e303020e8c09a302ef670a0)) + + +### Chores + +* **docs:** grammar improvements ([ba42564](https://github.com/replicate/replicate-python-stainless/commit/ba4256495f92133738016c03b198a1bb88b6ed21)) + ## 0.5.1 (2025-05-16) Full Changelog: [v0.5.0...v0.5.1](https://github.com/replicate/replicate-python-stainless/compare/v0.5.0...v0.5.1) diff --git a/pyproject.toml b/pyproject.toml index 7e9c9fb..198c95f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "replicate-stainless" -version = "0.5.1" +version = "0.6.0" description = "The official Python library for the replicate API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/replicate/_version.py b/src/replicate/_version.py index e197238..b02d187 100644 --- a/src/replicate/_version.py +++ b/src/replicate/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "replicate" -__version__ = "0.5.1" # x-release-please-version +__version__ = "0.6.0" # x-release-please-version