From 1450bc6087e09fc4bab5c43fead61305a97890a6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 25 Jun 2025 13:33:51 +0000 Subject: [PATCH 1/2] feat(api): update via SDK Studio --- .stats.yml | 2 +- src/mixedbread/pagination.py | 24 +++++++++++++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 70831519..3a696724 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 49 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread%2Fmixedbread-fd1562786a889e981d7d9b30d7f4b29d3d2ea11a8c30e19b919fae07ea355ccd.yml openapi_spec_hash: 1d83645e7d7bc1b6ccfc1ecc7cca656a -config_hash: cc68e7e1e58a14763975c9396c8600ae +config_hash: 9957eb067ae655fc584c6a1fbe82540c diff --git a/src/mixedbread/pagination.py b/src/mixedbread/pagination.py index 581f4f65..59f96e24 100644 --- a/src/mixedbread/pagination.py +++ b/src/mixedbread/pagination.py @@ -101,7 +101,7 @@ class CursorPagination(BaseModel): prev_cursor: Optional[str] = None - has_more: Optional[object] = None + has_more: Optional[bool] = None has_prev: Optional[bool] = None @@ -119,6 +119,17 @@ def _get_page_items(self) -> List[_T]: return [] return data + @override + def has_next_page(self) -> bool: + has_more = None + if self.pagination is not None: + if self.pagination.has_more is not None: + has_more = self.pagination.has_more + if has_more is not None and has_more is False: + return False + + return super().has_next_page() + @override def next_page_info(self) -> Optional[PageInfo]: next_cursor = None @@ -142,6 +153,17 @@ def _get_page_items(self) -> List[_T]: return [] return data + @override + def has_next_page(self) -> bool: + has_more = None + if self.pagination is not None: + if self.pagination.has_more is not None: + has_more = self.pagination.has_more + if has_more is not None and has_more is False: + return False + + return super().has_next_page() + @override def next_page_info(self) -> Optional[PageInfo]: next_cursor = None From 508bdcecd55f22db306c2e88f804b02e8e3c92c1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 25 Jun 2025 13:34:10 +0000 Subject: [PATCH 2/2] release: 0.12.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/mixedbread/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f7014c35..a7130553 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.11.0" + ".": "0.12.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 19a94e04..4cff6499 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.12.0 (2025-06-25) + +Full Changelog: [v0.11.0...v0.12.0](https://github.com/mixedbread-ai/mixedbread-python/compare/v0.11.0...v0.12.0) + +### Features + +* **api:** update via SDK Studio ([1450bc6](https://github.com/mixedbread-ai/mixedbread-python/commit/1450bc6087e09fc4bab5c43fead61305a97890a6)) + ## 0.11.0 (2025-06-25) Full Changelog: [v0.10.0...v0.11.0](https://github.com/mixedbread-ai/mixedbread-python/compare/v0.10.0...v0.11.0) diff --git a/pyproject.toml b/pyproject.toml index 59f0d0fe..f1573a4e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mixedbread" -version = "0.11.0" +version = "0.12.0" description = "The official Python library for the Mixedbread API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/mixedbread/_version.py b/src/mixedbread/_version.py index 0341bb70..8a6b49a1 100644 --- a/src/mixedbread/_version.py +++ b/src/mixedbread/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "mixedbread" -__version__ = "0.11.0" # x-release-please-version +__version__ = "0.12.0" # x-release-please-version