Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

release: 0.4.0 #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
zeke merged 2 commits into main from release-please--branches--main--changes--next
May 13, 2025
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
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.3.2"
".": "0.4.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
View file Open in desktop
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-88cf5fe1f5accb56ae9fbb31c0df00d1552762d4c558d16d8547894ae95e8ccb.yml
openapi_spec_hash: 43283d20f335a04241cce165452ff50e
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/replicate%2Freplicate-client-8f6c27fe1521273cd9d08f1250da89c9b60b7bd231fa07f9e18ccba353488930.yml
openapi_spec_hash: 12e010a9fe6bed4b9c00e95a85f28b91
config_hash: 8e356248f15e5e54d2aecab141f45228
8 changes: 8 additions & 0 deletions CHANGELOG.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.4.0 (2025年05月13日)

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

### Features

* **api:** api update ([d36589e](https://github.com/replicate/replicate-python-stainless/commit/d36589ef3ec1718ff01948f56bfeb3dd5854d6de))

## 0.3.2 (2025年05月13日)

Full Changelog: [v0.3.1...v0.3.2](https://github.com/replicate/replicate-python-stainless/compare/v0.3.1...v0.3.2)
Expand Down
1 change: 0 additions & 1 deletion README.md
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ client = Replicate()

client.files.create(
content=Path("/path/to/file"),
filename="filename",
)
```

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "replicate-stainless"
version = "0.3.2"
version = "0.4.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
View file Open in desktop
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.3.2" # x-release-please-version
__version__ = "0.4.0" # x-release-please-version
4 changes: 2 additions & 2 deletions src/replicate/resources/files.py
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def create(
self,
*,
content: FileTypes,
filename: str,
filename: str | NotGiven = NOT_GIVEN,
metadata: object | NotGiven = NOT_GIVEN,
type: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -336,7 +336,7 @@ async def create(
self,
*,
content: FileTypes,
filename: str,
filename: str | NotGiven = NOT_GIVEN,
metadata: object | NotGiven = NOT_GIVEN,
type: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down
2 changes: 1 addition & 1 deletion src/replicate/types/file_create_params.py
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class FileCreateParams(TypedDict, total=False):
content: Required[FileTypes]
"""The file content"""

filename: Required[str]
filename: str
"""The filename"""

metadata: object
Expand Down
6 changes: 0 additions & 6 deletions tests/api_resources/test_files.py
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class TestFiles:
def test_method_create(self, client: Replicate) -> None:
file = client.files.create(
content=b"raw file contents",
filename="filename",
)
assert_matches_type(FileCreateResponse, file, path=["response"])

Expand All @@ -55,7 +54,6 @@ def test_method_create_with_all_params(self, client: Replicate) -> None:
def test_raw_response_create(self, client: Replicate) -> None:
response = client.files.with_raw_response.create(
content=b"raw file contents",
filename="filename",
)

assert response.is_closed is True
Expand All @@ -68,7 +66,6 @@ def test_raw_response_create(self, client: Replicate) -> None:
def test_streaming_response_create(self, client: Replicate) -> None:
with client.files.with_streaming_response.create(
content=b"raw file contents",
filename="filename",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
Expand Down Expand Up @@ -265,7 +262,6 @@ class TestAsyncFiles:
async def test_method_create(self, async_client: AsyncReplicate) -> None:
file = await async_client.files.create(
content=b"raw file contents",
filename="filename",
)
assert_matches_type(FileCreateResponse, file, path=["response"])

Expand All @@ -285,7 +281,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncReplicate)
async def test_raw_response_create(self, async_client: AsyncReplicate) -> None:
response = await async_client.files.with_raw_response.create(
content=b"raw file contents",
filename="filename",
)

assert response.is_closed is True
Expand All @@ -298,7 +293,6 @@ async def test_raw_response_create(self, async_client: AsyncReplicate) -> None:
async def test_streaming_response_create(self, async_client: AsyncReplicate) -> None:
async with async_client.files.with_streaming_response.create(
content=b"raw file contents",
filename="filename",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
Expand Down

AltStyle によって変換されたページ (->オリジナル) /