Skip to content

Commit 005f20b

Browse files
authored
Merge pull request #24 from replicate/release-please--branches--main--changes--next
release: 0.5.0
2 parents f9fec7b + 3aaa187 commit 005f20b

File tree

7 files changed

+51
-43
lines changed

7 files changed

+51
-43
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.4.0"
2+
".": "0.5.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 35
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/replicate%2Freplicate-client-8f6c27fe1521273cd9d08f1250da89c9b60b7bd231fa07f9e18ccba353488930.yml
3-
openapi_spec_hash: 12e010a9fe6bed4b9c00e95a85f28b91
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/replicate%2Freplicate-client-2f8bfb10427a39d0a79c691643d97cb447b0d114b07cdf146965fd60b5063ebf.yml
3+
openapi_spec_hash: 1a11b292ef30bcf52340847c567de1ad
44
config_hash: 8e356248f15e5e54d2aecab141f45228

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.5.0 (2025-05-14)
4+
5+
Full Changelog: [v0.4.0...v0.5.0](https://github.com/replicate/replicate-python-stainless/compare/v0.4.0...v0.5.0)
6+
7+
### Features
8+
9+
* **api:** api update ([dbbd264](https://github.com/replicate/replicate-python-stainless/commit/dbbd264826d1d1e566c7489fb4dfbca2bb3a138f))
10+
311
## 0.4.0 (2025-05-13)
412

513
Full Changelog: [v0.3.2...v0.4.0](https://github.com/replicate/replicate-python-stainless/compare/v0.3.2...v0.4.0)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "replicate-stainless"
3-
version = "0.4.0"
3+
version = "0.5.0"
44
description = "The official Python library for the replicate API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/replicate/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "replicate"
4-
__version__ = "0.4.0" # x-release-please-version
4+
__version__ = "0.5.0" # x-release-please-version

src/replicate/resources/models/models.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,18 +120,18 @@ def create(
120120
curl -s -X POST \\
121121
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \\
122122
-H 'Content-Type: application/json' \\
123-
-d '{"owner": "alice", "name": "my-model", "description": "An example model", "visibility": "public", "hardware": "cpu"}' \\
123+
-d '{"owner": "alice", "name": "hot-dog-detector", "description": "Detect hot dogs in images", "visibility": "public", "hardware": "cpu"}' \\
124124
https://api.replicate.com/v1/models
125125
```
126126
127127
The response will be a model object in the following format:
128128
129129
```json
130130
{
131-
"url": "https://replicate.com/alice/my-model",
131+
"url": "https://replicate.com/alice/hot-dog-detector",
132132
"owner": "alice",
133-
"name": "my-model",
134-
"description": "An example model",
133+
"name": "hot-dog-detector",
134+
"description": "Detect hot dogs in images",
135135
"visibility": "public",
136136
"github_url": null,
137137
"paper_url": null,
@@ -520,18 +520,18 @@ async def create(
520520
curl -s -X POST \\
521521
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \\
522522
-H 'Content-Type: application/json' \\
523-
-d '{"owner": "alice", "name": "my-model", "description": "An example model", "visibility": "public", "hardware": "cpu"}' \\
523+
-d '{"owner": "alice", "name": "hot-dog-detector", "description": "Detect hot dogs in images", "visibility": "public", "hardware": "cpu"}' \\
524524
https://api.replicate.com/v1/models
525525
```
526526
527527
The response will be a model object in the following format:
528528
529529
```json
530530
{
531-
"url": "https://replicate.com/alice/my-model",
531+
"url": "https://replicate.com/alice/hot-dog-detector",
532532
"owner": "alice",
533-
"name": "my-model",
534-
"description": "An example model",
533+
"name": "hot-dog-detector",
534+
"description": "Detect hot dogs in images",
535535
"visibility": "public",
536536
"github_url": null,
537537
"paper_url": null,

tests/api_resources/test_models.py

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ class TestModels:
2222
@parametrize
2323
def test_method_create(self, client: Replicate) -> None:
2424
model = client.models.create(
25-
hardware="hardware",
26-
name="name",
27-
owner="owner",
25+
hardware="cpu",
26+
name="hot-dog-detector",
27+
owner="alice",
2828
visibility="public",
2929
)
3030
assert model is None
@@ -33,25 +33,25 @@ def test_method_create(self, client: Replicate) -> None:
3333
@parametrize
3434
def test_method_create_with_all_params(self, client: Replicate) -> None:
3535
model = client.models.create(
36-
hardware="hardware",
37-
name="name",
38-
owner="owner",
36+
hardware="cpu",
37+
name="hot-dog-detector",
38+
owner="alice",
3939
visibility="public",
4040
cover_image_url="cover_image_url",
41-
description="description",
42-
github_url="github_url",
41+
description="Detect hot dogs in images",
42+
github_url="https://github.com/alice/hot-dog-detector",
4343
license_url="license_url",
44-
paper_url="paper_url",
44+
paper_url="https://arxiv.org/abs/2504.17639",
4545
)
4646
assert model is None
4747

4848
@pytest.mark.skip()
4949
@parametrize
5050
def test_raw_response_create(self, client: Replicate) -> None:
5151
response = client.models.with_raw_response.create(
52-
hardware="hardware",
53-
name="name",
54-
owner="owner",
52+
hardware="cpu",
53+
name="hot-dog-detector",
54+
owner="alice",
5555
visibility="public",
5656
)
5757

@@ -64,9 +64,9 @@ def test_raw_response_create(self, client: Replicate) -> None:
6464
@parametrize
6565
def test_streaming_response_create(self, client: Replicate) -> None:
6666
with client.models.with_streaming_response.create(
67-
hardware="hardware",
68-
name="name",
69-
owner="owner",
67+
hardware="cpu",
68+
name="hot-dog-detector",
69+
owner="alice",
7070
visibility="public",
7171
) as response:
7272
assert not response.is_closed
@@ -251,9 +251,9 @@ class TestAsyncModels:
251251
@parametrize
252252
async def test_method_create(self, async_client: AsyncReplicate) -> None:
253253
model = await async_client.models.create(
254-
hardware="hardware",
255-
name="name",
256-
owner="owner",
254+
hardware="cpu",
255+
name="hot-dog-detector",
256+
owner="alice",
257257
visibility="public",
258258
)
259259
assert model is None
@@ -262,25 +262,25 @@ async def test_method_create(self, async_client: AsyncReplicate) -> None:
262262
@parametrize
263263
async def test_method_create_with_all_params(self, async_client: AsyncReplicate) -> None:
264264
model = await async_client.models.create(
265-
hardware="hardware",
266-
name="name",
267-
owner="owner",
265+
hardware="cpu",
266+
name="hot-dog-detector",
267+
owner="alice",
268268
visibility="public",
269269
cover_image_url="cover_image_url",
270-
description="description",
271-
github_url="github_url",
270+
description="Detect hot dogs in images",
271+
github_url="https://github.com/alice/hot-dog-detector",
272272
license_url="license_url",
273-
paper_url="paper_url",
273+
paper_url="https://arxiv.org/abs/2504.17639",
274274
)
275275
assert model is None
276276

277277
@pytest.mark.skip()
278278
@parametrize
279279
async def test_raw_response_create(self, async_client: AsyncReplicate) -> None:
280280
response = await async_client.models.with_raw_response.create(
281-
hardware="hardware",
282-
name="name",
283-
owner="owner",
281+
hardware="cpu",
282+
name="hot-dog-detector",
283+
owner="alice",
284284
visibility="public",
285285
)
286286

@@ -293,9 +293,9 @@ async def test_raw_response_create(self, async_client: AsyncReplicate) -> None:
293293
@parametrize
294294
async def test_streaming_response_create(self, async_client: AsyncReplicate) -> None:
295295
async with async_client.models.with_streaming_response.create(
296-
hardware="hardware",
297-
name="name",
298-
owner="owner",
296+
hardware="cpu",
297+
name="hot-dog-detector",
298+
owner="alice",
299299
visibility="public",
300300
) as response:
301301
assert not response.is_closed

0 commit comments

Comments
 (0)