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.1.0-alpha.39"
".": "0.1.0-alpha.40"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
8 changes: 7 additions & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
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.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"
Expand Down
2 changes: 1 addition & 1 deletion src/mixedbread/_version.py
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__ = "mixedbread"
__version__ = "0.1.0-alpha.39" # x-release-please-version
__version__ = "0.1.0-alpha.40" # x-release-please-version
1 change: 1 addition & 0 deletions src/mixedbread/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
34 changes: 3 additions & 31 deletions src/mixedbread/types/embedding_create_response.py
Original file line number Diff line number Diff line change
@@ -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):
Expand All @@ -21,42 +21,14 @@ 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"""

model: str
"""The model used"""

data: Union[List[Embedding], List[DataUnionMember1]]
data: Union[List[Embedding], List[MultiEncodingEmbedding]]
"""The created embeddings."""

object: Optional[
Expand Down
37 changes: 37 additions & 0 deletions src/mixedbread/types/multi_encoding_embedding.py
Original file line number Diff line number Diff line change
@@ -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."""
Loading