Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.5.1"
".": "0.6.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

---

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/replicate/_version.py
Original file line number Diff line number Diff line change
@@ -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
12 changes: 8 additions & 4 deletions src/replicate/resources/predictions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down Expand Up @@ -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"
}
}
```
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -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"
}
}
```
Expand Down
14 changes: 10 additions & 4 deletions src/replicate/resources/trainings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
```
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -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"
}
}
```
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -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"
},
Expand Down
11 changes: 7 additions & 4 deletions src/replicate/types/prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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"""
Expand Down
Loading