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.42.0"
".": "0.43.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: 62
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread%2Fmixedbread-bc57b04eacad32c8e89b4d6eac2a369fd0b013bb7be49b698a3372d6393753f7.yml
openapi_spec_hash: 2591884e7b1b6c328cb5a88449282ccd
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread%2Fmixedbread-8a9abf45fe3e0db8c9ba59803ff9ef4ce5d0bb780765d3c1a9587dde2a8d6c93.yml
openapi_spec_hash: 0f3af27e4fc27bcbfbb17f0a2c45c060
config_hash: 6fa04d08d4e1a3a45f562e37fab0ea71
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## 0.43.0 (2025-12-17)

Full Changelog: [v0.42.0...v0.43.0](https://github.com/mixedbread-ai/mixedbread-python/compare/v0.42.0...v0.43.0)

### Features

* **api:** api update ([76031ac](https://github.com/mixedbread-ai/mixedbread-python/commit/76031acaaf497a052394a8605a714980a9c7c68d))
* **api:** api update ([00869f5](https://github.com/mixedbread-ai/mixedbread-python/commit/00869f5ba2c9ca6b8c4be5b74fad07ec98f7f647))


### Bug Fixes

* **docs:** remove extraneous example object fields ([23a65db](https://github.com/mixedbread-ai/mixedbread-python/commit/23a65dbf0eadce62364a421b474b8e4ffe6b9f22))


### Chores

* **internal:** add missing files argument to base client ([50f5711](https://github.com/mixedbread-ai/mixedbread-python/commit/50f57113be74f17642439e03ecce59deac2196f5))
* speedup initial import ([b8d7306](https://github.com/mixedbread-ai/mixedbread-python/commit/b8d73066a54c466366e934a9e086462bb00a3d75))

## 0.42.0 (2025-12-09)

Full Changelog: [v0.41.0...v0.42.0](https://github.com/mixedbread-ai/mixedbread-python/compare/v0.41.0...v0.42.0)
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 = "mixedbread"
version = "0.42.0"
version = "0.43.0"
description = "The official Python library for the Mixedbread API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
10 changes: 8 additions & 2 deletions src/mixedbread/_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1247,9 +1247,12 @@ def patch(
*,
cast_to: Type[ResponseT],
body: Body | None = None,
files: RequestFiles | None = None,
options: RequestOptions = {},
) -> ResponseT:
opts = FinalRequestOptions.construct(method="patch", url=path, json_data=body, **options)
opts = FinalRequestOptions.construct(
method="patch", url=path, json_data=body, files=to_httpx_files(files), **options
)
return self.request(cast_to, opts)

def put(
Expand Down Expand Up @@ -1767,9 +1770,12 @@ async def patch(
*,
cast_to: Type[ResponseT],
body: Body | None = None,
files: RequestFiles | None = None,
options: RequestOptions = {},
) -> ResponseT:
opts = FinalRequestOptions.construct(method="patch", url=path, json_data=body, **options)
opts = FinalRequestOptions.construct(
method="patch", url=path, json_data=body, files=to_httpx_files(files), **options
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Async patch method uses sync file conversion function

The async patch method incorrectly uses the synchronous to_httpx_files(files) function instead of await async_to_httpx_files(files). This is inconsistent with the async post method (line 1763) and async put method (line 1791), which both correctly use await async_to_httpx_files(files). Using the sync version in an async context could cause issues with async file operations and breaks the established pattern in the codebase.

Fix in Cursor Fix in Web

)
return await self.request(cast_to, opts)

async def put(
Expand Down
Loading
Loading