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.32.1"
".": "0.33.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: 61
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread%2Fmixedbread-2b47fdec8c177fb55b563457ef8e3e972177a8d395a341b77112a26909e98d43.yml
openapi_spec_hash: d818396c05166e73b409c28893e790b7
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread%2Fmixedbread-3bdc7b5f293ea927a961e6480cd3efb406c4e1a5ca21a4066f84b0d0e24b141c.yml
openapi_spec_hash: 44d5194554a7f6b454b38c96ac6736fb
config_hash: 2de40c343cf7b242d5925e3405ee8908
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.33.0 (2025-10-08)

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

### Features

* **api:** api update ([68de836](https://github.com/mixedbread-ai/mixedbread-python/commit/68de83662e850a55947aab9c761dcf2ce330d27a))

## 0.32.1 (2025-10-01)

Full Changelog: [v0.32.0...v0.32.1](https://github.com/mixedbread-ai/mixedbread-python/compare/v0.32.0...v0.32.1)
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.32.1"
version = "0.33.0"
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.32.1" # x-release-please-version
__version__ = "0.33.0" # x-release-please-version
173 changes: 169 additions & 4 deletions src/mixedbread/types/scored_audio_url_input_chunk.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,176 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Dict, Optional
from typing_extensions import Literal
from typing import TYPE_CHECKING, Dict, List, Union, Optional
from typing_extensions import Literal, Annotated, TypeAlias

from pydantic import Field as FieldInfo

from .._utils import PropertyInfo
from .._models import BaseModel

__all__ = ["ScoredAudioURLInputChunk", "AudioURL"]
__all__ = [
"ScoredAudioURLInputChunk",
"GeneratedMetadata",
"GeneratedMetadataMarkdownChunkGeneratedMetadata",
"GeneratedMetadataMarkdownChunkGeneratedMetadataChunkHeading",
"GeneratedMetadataMarkdownChunkGeneratedMetadataHeadingContext",
"GeneratedMetadataTextChunkGeneratedMetadata",
"GeneratedMetadataPdfChunkGeneratedMetadata",
"GeneratedMetadataCodeChunkGeneratedMetadata",
"GeneratedMetadataAudioChunkGeneratedMetadata",
"AudioURL",
]


class GeneratedMetadataMarkdownChunkGeneratedMetadataChunkHeading(BaseModel):
level: int

text: str


class GeneratedMetadataMarkdownChunkGeneratedMetadataHeadingContext(BaseModel):
level: int

text: str


class GeneratedMetadataMarkdownChunkGeneratedMetadata(BaseModel):
type: Optional[Literal["markdown"]] = None

file_type: Optional[Literal["text/markdown"]] = None

language: str

word_count: int

file_size: int

chunk_headings: Optional[List[GeneratedMetadataMarkdownChunkGeneratedMetadataChunkHeading]] = None

heading_context: Optional[List[GeneratedMetadataMarkdownChunkGeneratedMetadataHeadingContext]] = None

if TYPE_CHECKING:
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
# value to this field, so for compatibility we avoid doing it at runtime.
__pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]

# Stub to indicate that arbitrary properties are accepted.
# To access properties that are not valid identifiers you can use `getattr`, e.g.
# `getattr(obj, '$type')`
def __getattr__(self, attr: str) -> object: ...
else:
__pydantic_extra__: Dict[str, object]


class GeneratedMetadataTextChunkGeneratedMetadata(BaseModel):
type: Optional[Literal["text"]] = None

file_type: Optional[Literal["text/plain"]] = None

language: str

word_count: int

file_size: int

if TYPE_CHECKING:
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
# value to this field, so for compatibility we avoid doing it at runtime.
__pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]

# Stub to indicate that arbitrary properties are accepted.
# To access properties that are not valid identifiers you can use `getattr`, e.g.
# `getattr(obj, '$type')`
def __getattr__(self, attr: str) -> object: ...
else:
__pydantic_extra__: Dict[str, object]


class GeneratedMetadataPdfChunkGeneratedMetadata(BaseModel):
type: Optional[Literal["pdf"]] = None

file_type: Optional[Literal["application/pdf"]] = None

total_pages: int

total_size: int

if TYPE_CHECKING:
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
# value to this field, so for compatibility we avoid doing it at runtime.
__pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]

# Stub to indicate that arbitrary properties are accepted.
# To access properties that are not valid identifiers you can use `getattr`, e.g.
# `getattr(obj, '$type')`
def __getattr__(self, attr: str) -> object: ...
else:
__pydantic_extra__: Dict[str, object]


class GeneratedMetadataCodeChunkGeneratedMetadata(BaseModel):
type: Optional[Literal["code"]] = None

file_type: str

language: str

word_count: int

file_size: int

if TYPE_CHECKING:
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
# value to this field, so for compatibility we avoid doing it at runtime.
__pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]

# Stub to indicate that arbitrary properties are accepted.
# To access properties that are not valid identifiers you can use `getattr`, e.g.
# `getattr(obj, '$type')`
def __getattr__(self, attr: str) -> object: ...
else:
__pydantic_extra__: Dict[str, object]


class GeneratedMetadataAudioChunkGeneratedMetadata(BaseModel):
type: Optional[Literal["audio"]] = None

file_type: str

file_size: int

total_duration_seconds: float

sample_rate: int

channels: int

audio_format: int

if TYPE_CHECKING:
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
# value to this field, so for compatibility we avoid doing it at runtime.
__pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]

# Stub to indicate that arbitrary properties are accepted.
# To access properties that are not valid identifiers you can use `getattr`, e.g.
# `getattr(obj, '$type')`
def __getattr__(self, attr: str) -> object: ...
else:
__pydantic_extra__: Dict[str, object]


GeneratedMetadata: TypeAlias = Annotated[
Union[
GeneratedMetadataMarkdownChunkGeneratedMetadata,
GeneratedMetadataTextChunkGeneratedMetadata,
GeneratedMetadataPdfChunkGeneratedMetadata,
GeneratedMetadataCodeChunkGeneratedMetadata,
GeneratedMetadataAudioChunkGeneratedMetadata,
None,
],
PropertyInfo(discriminator="type"),
]


class AudioURL(BaseModel):
Expand All @@ -20,7 +185,7 @@ class ScoredAudioURLInputChunk(BaseModel):
mime_type: Optional[str] = None
"""mime type of the chunk"""

generated_metadata: Optional[Dict[str, object]] = None
generated_metadata: Optional[GeneratedMetadata] = None
"""metadata of the chunk"""

model: Optional[str] = None
Expand Down
Loading
Loading