diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 0f02ea1c..db3930fd 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.39" + ".": "0.1.0-alpha.40" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 7ce94546..a346743e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 32 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread%2Fmixedbread-82c2c1c322149cd73b2e8e45f475919b941752a89e74464ccecd1aee9352e9be.yml openapi_spec_hash: dbd7616a32c90fd25b32994830fb12f6 -config_hash: 564cc8bc5835fe03496be6aab6d4dc42 +config_hash: 6552b029ab372150ad4054acd59dde95 diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b66aca9..a3df2ea2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.1.0-alpha.40 (2025-04-03) + +Full Changelog: [v0.1.0-alpha.39...v0.1.0-alpha.40](https://github.com/mixedbread-ai/mixedbread-python/compare/v0.1.0-alpha.39...v0.1.0-alpha.40) + +### Features + +* **api:** update via SDK Studio ([#175](https://github.com/mixedbread-ai/mixedbread-python/issues/175)) ([46af55b](https://github.com/mixedbread-ai/mixedbread-python/commit/46af55b59f1727d387dca11f72e45eb99a046e43)) + ## 0.1.0-alpha.39 (2025-04-03) Full Changelog: [v0.1.0-alpha.38...v0.1.0-alpha.39](https://github.com/mixedbread-ai/mixedbread-python/compare/v0.1.0-alpha.38...v0.1.0-alpha.39) diff --git a/api.md b/api.md index c2a19d86..a7d820d8 100644 --- a/api.md +++ b/api.md @@ -9,7 +9,13 @@ from mixedbread.types import SearchFilter, SearchFilterCondition Types: ```python -from mixedbread.types import Embedding, EmbeddingCreateResponse, InfoResponse, RerankResponse +from mixedbread.types import ( + Embedding, + EmbeddingCreateResponse, + MultiEncodingEmbedding, + InfoResponse, + RerankResponse, +) ``` Methods: diff --git a/pyproject.toml b/pyproject.toml index 6b961a75..f124245d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mixedbread" -version = "0.1.0-alpha.39" +version = "0.1.0-alpha.40" 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 5ce0d007..92e78fd7 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.1.0-alpha.39" # x-release-please-version +__version__ = "0.1.0-alpha.40" # x-release-please-version diff --git a/src/mixedbread/types/__init__.py b/src/mixedbread/types/__init__.py index 18991940..ae8ce3a4 100644 --- a/src/mixedbread/types/__init__.py +++ b/src/mixedbread/types/__init__.py @@ -18,6 +18,7 @@ from .client_rerank_params import ClientRerankParams as ClientRerankParams from .file_delete_response import FileDeleteResponse as FileDeleteResponse from .embedding_create_params import EmbeddingCreateParams as EmbeddingCreateParams +from .multi_encoding_embedding import MultiEncodingEmbedding as MultiEncodingEmbedding from .vector_store_list_params import VectorStoreListParams as VectorStoreListParams from .embedding_create_response import EmbeddingCreateResponse as EmbeddingCreateResponse from .scored_vector_store_chunk import ScoredVectorStoreChunk as ScoredVectorStoreChunk diff --git a/src/mixedbread/types/embedding_create_response.py b/src/mixedbread/types/embedding_create_response.py index c72e68cb..8f3605cb 100644 --- a/src/mixedbread/types/embedding_create_response.py +++ b/src/mixedbread/types/embedding_create_response.py @@ -1,13 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import builtins from typing import List, Union, Optional from typing_extensions import Literal from .._models import BaseModel from .embedding import Embedding +from .multi_encoding_embedding import MultiEncodingEmbedding -__all__ = ["EmbeddingCreateResponse", "Usage", "DataUnionMember1", "DataUnionMember1Embedding"] +__all__ = ["EmbeddingCreateResponse", "Usage"] class Usage(BaseModel): @@ -21,34 +21,6 @@ class Usage(BaseModel): """The number of tokens used for the completion""" -class DataUnionMember1Embedding(BaseModel): - float: Optional[List[builtins.float]] = None - - int8: Optional[List[int]] = None - - uint8: Optional[List[int]] = None - - binary: Optional[List[int]] = None - - ubinary: Optional[List[int]] = None - - base64: Optional[str] = None - - -class DataUnionMember1(BaseModel): - embedding: DataUnionMember1Embedding - """ - The encoded embedding data by encoding format.Returned, if more than one - encoding format is used. - """ - - index: int - """The index of the embedding.""" - - object: Optional[Literal["embedding_dict"]] = None - """The object type of the embedding.""" - - class EmbeddingCreateResponse(BaseModel): usage: Usage """The usage of the model""" @@ -56,7 +28,7 @@ class EmbeddingCreateResponse(BaseModel): model: str """The model used""" - data: Union[List[Embedding], List[DataUnionMember1]] + data: Union[List[Embedding], List[MultiEncodingEmbedding]] """The created embeddings.""" object: Optional[ diff --git a/src/mixedbread/types/multi_encoding_embedding.py b/src/mixedbread/types/multi_encoding_embedding.py new file mode 100644 index 00000000..8a7b3ca3 --- /dev/null +++ b/src/mixedbread/types/multi_encoding_embedding.py @@ -0,0 +1,37 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import builtins +from typing import List, Optional +from typing_extensions import Literal + +from .._models import BaseModel + +__all__ = ["MultiEncodingEmbedding", "Embedding"] + + +class Embedding(BaseModel): + float: Optional[List[builtins.float]] = None + + int8: Optional[List[int]] = None + + uint8: Optional[List[int]] = None + + binary: Optional[List[int]] = None + + ubinary: Optional[List[int]] = None + + base64: Optional[str] = None + + +class MultiEncodingEmbedding(BaseModel): + embedding: Embedding + """ + The encoded embedding data by encoding format.Returned, if more than one + encoding format is used. + """ + + index: int + """The index of the embedding.""" + + object: Optional[Literal["embedding_dict"]] = None + """The object type of the embedding."""