diff --git a/.release-please-manifest.json b/.release-please-manifest.json index d9c0304..93e25ba 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.0.0-alpha.14" + ".": "2.0.0-alpha.15" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 8301e7f..ece198f 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-d174b63c516640a0987bbb0879d1cb435ecf6cbcfe7c9f6465bfcc5416eff8e1.yml -openapi_spec_hash: 46f69b0827b955f2adf93928fcfb2c57 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/replicate%2Freplicate-client-f7593472a5efb976e51590137c8aed6bdbe8b305b3f3840ec85cec59437bfcdb.yml +openapi_spec_hash: 2f428b6bcb93a186a9c003a6ee976efa config_hash: 218f95f3af761e55867d28b8d75464c8 diff --git a/CHANGELOG.md b/CHANGELOG.md index 14924f4..785b181 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 2.0.0-alpha.15 (2025-08-06) + +Full Changelog: [v2.0.0-alpha.14...v2.0.0-alpha.15](https://github.com/replicate/replicate-python-stainless/compare/v2.0.0-alpha.14...v2.0.0-alpha.15) + +### Chores + +* **internal:** fix ruff target version ([16c78dc](https://github.com/replicate/replicate-python-stainless/commit/16c78dc5837a91f73f28d8a4d153056587df7090)) +* update OpenAPI spec and rebuild SDKs ([fdca0c4](https://github.com/replicate/replicate-python-stainless/commit/fdca0c40e9a8009afe764ec39056d50fb43639f8)) + ## 2.0.0-alpha.14 (2025-07-31) Full Changelog: [v2.0.0-alpha.13...v2.0.0-alpha.14](https://github.com/replicate/replicate-python-stainless/compare/v2.0.0-alpha.13...v2.0.0-alpha.14) diff --git a/pyproject.toml b/pyproject.toml index c0a2e34..5433e38 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "replicate" -version = "2.0.0-alpha.14" +version = "2.0.0-alpha.15" description = "The official Python library for the replicate API" dynamic = ["readme"] license = "Apache-2.0" @@ -159,7 +159,7 @@ reportPrivateUsage = false [tool.ruff] line-length = 120 output-format = "grouped" -target-version = "py37" +target-version = "py38" [tool.ruff.format] docstring-code-format = true diff --git a/src/replicate/_version.py b/src/replicate/_version.py index 03a97df..acac4f6 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.14" # x-release-please-version +__version__ = "2.0.0-alpha.15" # x-release-please-version diff --git a/src/replicate/resources/predictions.py b/src/replicate/resources/predictions.py index 7404c60..0ba4867 100644 --- a/src/replicate/resources/predictions.py +++ b/src/replicate/resources/predictions.py @@ -78,10 +78,6 @@ def create( """ Create a prediction for the model version and inputs you provide. - If you're running an - [official model](https://replicate.com/collections/official), use the - [`models.predictions.create`](#models.predictions.create) operation instead. - Example cURL request: ```console @@ -123,14 +119,18 @@ def create( - you don't want to upload and host the file somewhere - you don't need to use the file again (Replicate will not store it) - version: The ID of the model version that you want to run. This can be specified in two - formats: + version: The identifier for the model or model version that you want to run. This can be + specified in a few different formats: - 1. Just the 64-character version ID: - `9dcd6d78e7c6560c340d916fe32e9f24aabfa331e5cce95fe31f77fb03121426` - 2. Full model identifier with version ID in the format `{owner}/{model}:{id}`. - For example, - `replicate/hello-world:9dcd6d78e7c6560c340d916fe32e9f24aabfa331e5cce95fe31f77fb03121426` + - `{owner_name}/{model_name}` - Use this format for + [official models](https://replicate.com/docs/topics/models/official-models). + For example, `black-forest-labs/flux-schnell`. For all other models, the + specific version is required. + - `{owner_name}/{model_name}:{version_id}` - The owner and model name, plus the + full 64-character version ID. For example, + `replicate/hello-world:9dcd6d78e7c6560c340d916fe32e9f24aabfa331e5cce95fe31f77fb03121426`. + - `{version_id}` - Just the 64-character version ID. For example, + `9dcd6d78e7c6560c340d916fe32e9f24aabfa331e5cce95fe31f77fb03121426` stream: **This field is deprecated.** @@ -529,10 +529,6 @@ async def create( """ Create a prediction for the model version and inputs you provide. - If you're running an - [official model](https://replicate.com/collections/official), use the - [`models.predictions.create`](#models.predictions.create) operation instead. - Example cURL request: ```console @@ -574,14 +570,18 @@ async def create( - you don't want to upload and host the file somewhere - you don't need to use the file again (Replicate will not store it) - version: The ID of the model version that you want to run. This can be specified in two - formats: - - 1. Just the 64-character version ID: - `9dcd6d78e7c6560c340d916fe32e9f24aabfa331e5cce95fe31f77fb03121426` - 2. Full model identifier with version ID in the format `{owner}/{model}:{id}`. - For example, - `replicate/hello-world:9dcd6d78e7c6560c340d916fe32e9f24aabfa331e5cce95fe31f77fb03121426` + version: The identifier for the model or model version that you want to run. This can be + specified in a few different formats: + + - `{owner_name}/{model_name}` - Use this format for + [official models](https://replicate.com/docs/topics/models/official-models). + For example, `black-forest-labs/flux-schnell`. For all other models, the + specific version is required. + - `{owner_name}/{model_name}:{version_id}` - The owner and model name, plus the + full 64-character version ID. For example, + `replicate/hello-world:9dcd6d78e7c6560c340d916fe32e9f24aabfa331e5cce95fe31f77fb03121426`. + - `{version_id}` - Just the 64-character version ID. For example, + `9dcd6d78e7c6560c340d916fe32e9f24aabfa331e5cce95fe31f77fb03121426` stream: **This field is deprecated.** diff --git a/src/replicate/types/prediction_create_params.py b/src/replicate/types/prediction_create_params.py index 735e5f0..402db8b 100644 --- a/src/replicate/types/prediction_create_params.py +++ b/src/replicate/types/prediction_create_params.py @@ -35,7 +35,7 @@ class PredictionCreateParamsWithoutVersion(TypedDict, total=False): - you don't want to upload and host the file somewhere - you don't need to use the file again (Replicate will not store it) """ - + stream: bool """**This field is deprecated.** @@ -95,4 +95,17 @@ class PredictionCreateParamsWithoutVersion(TypedDict, total=False): class PredictionCreateParams(PredictionCreateParamsWithoutVersion): version: Required[str] - """The ID of the model version that you want to run.""" + """The identifier for the model or model version that you want to run. + + This can be specified in a few different formats: + + - `{owner_name}/{model_name}` - Use this format for + [official models](https://replicate.com/docs/topics/models/official-models). + For example, `black-forest-labs/flux-schnell`. For all other models, the + specific version is required. + - `{owner_name}/{model_name}:{version_id}` - The owner and model name, plus the + full 64-character version ID. For example, + `replicate/hello-world:9dcd6d78e7c6560c340d916fe32e9f24aabfa331e5cce95fe31f77fb03121426`. + - `{version_id}` - Just the 64-character version ID. For example, + `9dcd6d78e7c6560c340d916fe32e9f24aabfa331e5cce95fe31f77fb03121426` + """