diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 3b005e5..3d2ac0b 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.10" + ".": "0.1.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 3ffb33a..0ecc23f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 30 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/replicate%2Freplicate-client-0d7d82bff8a18b03e0cd1cbf8609c3026bb07db851bc6f9166032045a9925eea.yml -openapi_spec_hash: 8ce211dfa6fece24b1413e91ba55210a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/replicate%2Freplicate-client-2088d647e7b0fd37dcf58ef48b8f01ed1a82ff797b9697ad10a7b6a5105e9e0f.yml +openapi_spec_hash: 718f540e7c44501e1a8c7156ee45d595 config_hash: 927b6ebc00ee115763ad69483bbf5566 diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f6b193..654c222 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.1.0 (2025-05-07) + +Full Changelog: [v0.1.0-alpha.10...v0.1.0](https://github.com/replicate/replicate-python-stainless/compare/v0.1.0-alpha.10...v0.1.0) + +### Features + +* **api:** api update ([e889b3d](https://github.com/replicate/replicate-python-stainless/commit/e889b3d0950cac908d53f0afef0660e50d822455)) + ## 0.1.0-alpha.10 (2025-05-06) Full Changelog: [v0.1.0-alpha.9...v0.1.0-alpha.10](https://github.com/replicate/replicate-python-stainless/compare/v0.1.0-alpha.9...v0.1.0-alpha.10) diff --git a/README.md b/README.md index a90d6c4..8cfc0e7 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ The REST API documentation can be found on [replicate.com](https://replicate.com ```sh # install from PyPI -pip install --pre replicate-stainless +pip install replicate-stainless ``` ## Usage diff --git a/pyproject.toml b/pyproject.toml index cfe6666..46f2b41 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "replicate-stainless" -version = "0.1.0-alpha.10" +version = "0.1.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 7033e86..ba344a8 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.1.0-alpha.10" # x-release-please-version +__version__ = "0.1.0" # x-release-please-version diff --git a/src/replicate/types/__init__.py b/src/replicate/types/__init__.py index 67a3567..5edacdb 100644 --- a/src/replicate/types/__init__.py +++ b/src/replicate/types/__init__.py @@ -3,7 +3,6 @@ from __future__ import annotations from .prediction import Prediction as Prediction -from .prediction_output import PredictionOutput as PredictionOutput from .model_create_params import ModelCreateParams as ModelCreateParams from .model_list_response import ModelListResponse as ModelListResponse from .model_search_params import ModelSearchParams as ModelSearchParams diff --git a/src/replicate/types/prediction.py b/src/replicate/types/prediction.py index ee0390e..b3d0fcf 100644 --- a/src/replicate/types/prediction.py +++ b/src/replicate/types/prediction.py @@ -5,7 +5,6 @@ from typing_extensions import Literal from .._models import BaseModel -from .prediction_output import PredictionOutput __all__ = ["Prediction", "URLs"] @@ -39,7 +38,11 @@ class Prediction(BaseModel): model: str """The name of the model that created the prediction""" - output: PredictionOutput + output: object + """ + The prediction output, which can be any JSON-serializable value, depending on + the model + """ status: Literal["starting", "processing", "succeeded", "failed", "canceled"] diff --git a/src/replicate/types/prediction_output.py b/src/replicate/types/prediction_output.py deleted file mode 100644 index 8b320b5..0000000 --- a/src/replicate/types/prediction_output.py +++ /dev/null @@ -1,10 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import Dict, List, Union, Optional -from typing_extensions import TypeAlias - -__all__ = ["PredictionOutput"] - -PredictionOutput: TypeAlias = Union[ - Optional[Dict[str, object]], Optional[List[Dict[str, object]]], Optional[str], Optional[float], Optional[bool] -]