From 5e7effd94a0e68373d91c57205f639dae022efc4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Sep 2025 21:56:10 +0000 Subject: [PATCH 1/4] chore: update OpenAPI spec and rebuild SDKs --- .stats.yml | 4 ++-- src/replicate/types/collection_get_response.py | 7 +++++++ src/replicate/types/model_create_response.py | 7 +++++++ src/replicate/types/model_get_response.py | 7 +++++++ src/replicate/types/model_list_response.py | 7 +++++++ 5 files changed, 30 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 23e69b5..bfdd3b0 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-866189e1aee643ae0367afba800d0e16239121deb5693a90ede9240b4053e9b3.yml -openapi_spec_hash: 66b891957e455776e5bec76b033ec8e8 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/replicate%2Freplicate-client-ef27a524fc72ff1a73c4dc3b4604071dfc559591df569f029778027959c14e65.yml +openapi_spec_hash: f542ad112db61131be0103fe95caae72 config_hash: b1b4f5d24ba07b4667ffe7b9dec081e3 diff --git a/src/replicate/types/collection_get_response.py b/src/replicate/types/collection_get_response.py index 51f3706..0573b66 100644 --- a/src/replicate/types/collection_get_response.py +++ b/src/replicate/types/collection_get_response.py @@ -23,6 +23,13 @@ class Model(BaseModel): github_url: Optional[str] = None """A URL for the model's source code on GitHub""" + is_official: Optional[bool] = None + """Boolean indicating whether the model is officially maintained by Replicate. + + Official models are always on, have stable API interfaces, and predictable + pricing. + """ + latest_version: Optional[VersionGetResponse] = None """The model's latest version""" diff --git a/src/replicate/types/model_create_response.py b/src/replicate/types/model_create_response.py index 935b58e..e2ac137 100644 --- a/src/replicate/types/model_create_response.py +++ b/src/replicate/types/model_create_response.py @@ -22,6 +22,13 @@ class ModelCreateResponse(BaseModel): github_url: Optional[str] = None """A URL for the model's source code on GitHub""" + is_official: Optional[bool] = None + """Boolean indicating whether the model is officially maintained by Replicate. + + Official models are always on, have stable API interfaces, and predictable + pricing. + """ + latest_version: Optional[VersionGetResponse] = None """The model's latest version""" diff --git a/src/replicate/types/model_get_response.py b/src/replicate/types/model_get_response.py index 27f1dfb..2a675b4 100644 --- a/src/replicate/types/model_get_response.py +++ b/src/replicate/types/model_get_response.py @@ -22,6 +22,13 @@ class ModelGetResponse(BaseModel): github_url: Optional[str] = None """A URL for the model's source code on GitHub""" + is_official: Optional[bool] = None + """Boolean indicating whether the model is officially maintained by Replicate. + + Official models are always on, have stable API interfaces, and predictable + pricing. + """ + latest_version: Optional[VersionGetResponse] = None """The model's latest version""" diff --git a/src/replicate/types/model_list_response.py b/src/replicate/types/model_list_response.py index 807f88e..7ae1914 100644 --- a/src/replicate/types/model_list_response.py +++ b/src/replicate/types/model_list_response.py @@ -22,6 +22,13 @@ class ModelListResponse(BaseModel): github_url: Optional[str] = None """A URL for the model's source code on GitHub""" + is_official: Optional[bool] = None + """Boolean indicating whether the model is officially maintained by Replicate. + + Official models are always on, have stable API interfaces, and predictable + pricing. + """ + latest_version: Optional[VersionGetResponse] = None """The model's latest version""" From 5b75c18c6dddc4427161a9b4687977efd793049a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Sep 2025 23:22:43 +0000 Subject: [PATCH 2/4] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index bfdd3b0..c8f82eb 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-ef27a524fc72ff1a73c4dc3b4604071dfc559591df569f029778027959c14e65.yml -openapi_spec_hash: f542ad112db61131be0103fe95caae72 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/replicate%2Freplicate-client-14830a61d6887853548322d4cb782bc87de503a3cc0aeff6465eb0f340633537.yml +openapi_spec_hash: 6dbf8093ab27fec4d04fb6d21c670f07 config_hash: b1b4f5d24ba07b4667ffe7b9dec081e3 From 5566b39b20a7729c3d466e23cfec28beaddeebe3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Sep 2025 23:49:09 +0000 Subject: [PATCH 3/4] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index c8f82eb..a536750 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-14830a61d6887853548322d4cb782bc87de503a3cc0aeff6465eb0f340633537.yml -openapi_spec_hash: 6dbf8093ab27fec4d04fb6d21c670f07 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/replicate%2Freplicate-client-87c7c57bd75c54990c679c9e87d009851cdff572815a55d1b6ee4d4ee20adaa1.yml +openapi_spec_hash: d987f14befa536004eece7b49caad993 config_hash: b1b4f5d24ba07b4667ffe7b9dec081e3 From b7eb43fc74b79da1d47b50ebb95de1fbf4dd77df Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Sep 2025 23:49:27 +0000 Subject: [PATCH 4/4] release: 2.0.0-alpha.25 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/replicate/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 806e32b..e429c67 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.0.0-alpha.24" + ".": "2.0.0-alpha.25" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 3313282..a7b7d12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 2.0.0-alpha.25 (2025-09-15) + +Full Changelog: [v2.0.0-alpha.24...v2.0.0-alpha.25](https://github.com/replicate/replicate-python-stainless/compare/v2.0.0-alpha.24...v2.0.0-alpha.25) + +### Chores + +* update OpenAPI spec and rebuild SDKs ([5e7effd](https://github.com/replicate/replicate-python-stainless/commit/5e7effd94a0e68373d91c57205f639dae022efc4)) + ## 2.0.0-alpha.24 (2025-09-11) Full Changelog: [v2.0.0-alpha.23...v2.0.0-alpha.24](https://github.com/replicate/replicate-python-stainless/compare/v2.0.0-alpha.23...v2.0.0-alpha.24) diff --git a/pyproject.toml b/pyproject.toml index 3e26bf3..c0ff437 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "replicate" -version = "2.0.0-alpha.24" +version = "2.0.0-alpha.25" 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 8e98d18..8060a57 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__ = "2.0.0-alpha.24" # x-release-please-version +__version__ = "2.0.0-alpha.25" # x-release-please-version