Skip to content

Commit 689bf90

Browse files
committed
Merge remote-tracking branch 'origin/next' into dmeadows/use-files-in-run
2 parents bda7c30 + f9fec7b commit 689bf90

File tree

11 files changed

+59
-13
lines changed

11 files changed

+59
-13
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @replicate/platform

.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.3.0"
2+
".": "0.4.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-88cf5fe1f5accb56ae9fbb31c0df00d1552762d4c558d16d8547894ae95e8ccb.yml
3-
openapi_spec_hash: 43283d20f335a04241cce165452ff50e
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/replicate%2Freplicate-client-8f6c27fe1521273cd9d08f1250da89c9b60b7bd231fa07f9e18ccba353488930.yml
3+
openapi_spec_hash: 12e010a9fe6bed4b9c00e95a85f28b91
44
config_hash: 8e356248f15e5e54d2aecab141f45228

CHANGELOG.md

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

3+
## 0.4.0 (2025-05-13)
4+
5+
Full Changelog: [v0.3.2...v0.4.0](https://github.com/replicate/replicate-python-stainless/compare/v0.3.2...v0.4.0)
6+
7+
### Features
8+
9+
* **api:** api update ([d36589e](https://github.com/replicate/replicate-python-stainless/commit/d36589ef3ec1718ff01948f56bfeb3dd5854d6de))
10+
11+
## 0.3.2 (2025-05-13)
12+
13+
Full Changelog: [v0.3.1...v0.3.2](https://github.com/replicate/replicate-python-stainless/compare/v0.3.1...v0.3.2)
14+
15+
### Bug Fixes
16+
17+
* **package:** support direct resource imports ([97b771a](https://github.com/replicate/replicate-python-stainless/commit/97b771a8f2f318e5907656c04ddb6b711af1d44a))
18+
19+
## 0.3.1 (2025-05-09)
20+
21+
Full Changelog: [v0.3.0...v0.3.1](https://github.com/replicate/replicate-python-stainless/compare/v0.3.0...v0.3.1)
22+
23+
### Chores
24+
25+
* **internal:** avoid errors for isinstance checks on proxies ([b31e651](https://github.com/replicate/replicate-python-stainless/commit/b31e651903235d70ea0f3b03aac56de9320996bf))
26+
327
## 0.3.0 (2025-05-08)
428

529
Full Changelog: [v0.2.1...v0.3.0](https://github.com/replicate/replicate-python-stainless/compare/v0.2.1...v0.3.0)

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ client = Replicate()
152152

153153
client.files.create(
154154
content=Path("/path/to/file"),
155-
filename="filename",
156155
)
157156
```
158157

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.3.0"
3+
version = "0.4.0"
44
description = "The official Python library for the replicate API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/replicate/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from __future__ import annotations
44

5+
import typing as _t
56
from typing_extensions import override
67

78
from . import types
@@ -89,6 +90,9 @@
8990
"ModelVersionIdentifier",
9091
]
9192

93+
if not _t.TYPE_CHECKING:
94+
from ._utils._resources_proxy import resources as resources
95+
9296
_setup_logging()
9397

9498
# Update the __module__ attribute for exported symbols so that
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
from __future__ import annotations
2+
3+
from typing import Any
4+
from typing_extensions import override
5+
6+
from ._proxy import LazyProxy
7+
8+
9+
class ResourcesProxy(LazyProxy[Any]):
10+
"""A proxy for the `replicate.resources` module.
11+
12+
This is used so that we can lazily import `replicate.resources` only when
13+
needed *and* so that users can just import `replicate` and reference `replicate.resources`
14+
"""
15+
16+
@override
17+
def __load__(self) -> Any:
18+
import importlib
19+
20+
mod = importlib.import_module("replicate.resources")
21+
return mod
22+
23+
24+
resources = ResourcesProxy().__as_proxied__()

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.3.0" # x-release-please-version
4+
__version__ = "0.4.0" # x-release-please-version

src/replicate/types/file_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class FileCreateParams(TypedDict, total=False):
1313
content: Required[FileTypes]
1414
"""The file content"""
1515

16-
filename: Required[str]
16+
filename: str
1717
"""The filename"""
1818

1919
metadata: object

0 commit comments

Comments
 (0)