Skip to content

Commit 91f4c77

Browse files
feat(api): api update
1 parent cea8399 commit 91f4c77

7 files changed

Lines changed: 29 additions & 1342 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 49
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread%2Fmixedbread-6eceba7c701064aa752ff55cf7539a15258dea54c151fec7e56a20c72bc2920a.yml
3-
openapi_spec_hash: 46b9ea8cf4a72ab36be2f5d8fb45de54
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread%2Fmixedbread-7e1c9e69f48d60426e9495fa864cacb60b1df2462a89dd0dc6f8faa29b85537d.yml
3+
openapi_spec_hash: c6ac1b5e4ee5db8723cc223695d296f5
44
config_hash: fef0ea78daf11093ff503919baae5ec0

src/mixedbread/resources/vector_stores/vector_stores.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,10 @@ def list(
258258
"""
259259
List all vector stores with optional search.
260260
261-
Args: options: The pagination options including limit, cursor, and optional
262-
search query (q)
261+
Args: pagination: The pagination options. q: Optional search query to filter
262+
vector stores.
263263
264-
Returns: VectorStoreListResponse: The list of vector stores
264+
Returns: VectorStoreListResponse: The list of vector stores.
265265
266266
Args:
267267
limit: Maximum number of items to return per page (1-100)
@@ -707,10 +707,10 @@ def list(
707707
"""
708708
List all vector stores with optional search.
709709
710-
Args: options: The pagination options including limit, cursor, and optional
711-
search query (q)
710+
Args: pagination: The pagination options. q: Optional search query to filter
711+
vector stores.
712712
713-
Returns: VectorStoreListResponse: The list of vector stores
713+
Returns: VectorStoreListResponse: The list of vector stores.
714714
715715
Args:
716716
limit: Maximum number of items to return per page (1-100)

src/mixedbread/types/scored_audio_url_input_chunk.py

Lines changed: 4 additions & 169 deletions
Original file line numberDiff line numberDiff line change
@@ -1,176 +1,11 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import TYPE_CHECKING, Dict, List, Union, Optional
4-
from typing_extensions import Literal, Annotated, TypeAlias
3+
from typing import Dict, Optional
4+
from typing_extensions import Literal
55

6-
from pydantic import Field as FieldInfo
7-
8-
from .._utils import PropertyInfo
96
from .._models import BaseModel
107

11-
__all__ = [
12-
"ScoredAudioURLInputChunk",
13-
"GeneratedMetadata",
14-
"GeneratedMetadataMarkdownChunkGeneratedMetadata",
15-
"GeneratedMetadataMarkdownChunkGeneratedMetadataChunkHeading",
16-
"GeneratedMetadataMarkdownChunkGeneratedMetadataHeadingContext",
17-
"GeneratedMetadataTextChunkGeneratedMetadata",
18-
"GeneratedMetadataPdfChunkGeneratedMetadata",
19-
"GeneratedMetadataCodeChunkGeneratedMetadata",
20-
"GeneratedMetadataAudioChunkGeneratedMetadata",
21-
"AudioURL",
22-
]
23-
24-
25-
class GeneratedMetadataMarkdownChunkGeneratedMetadataChunkHeading(BaseModel):
26-
level: int
27-
28-
text: str
29-
30-
31-
class GeneratedMetadataMarkdownChunkGeneratedMetadataHeadingContext(BaseModel):
32-
level: int
33-
34-
text: str
35-
36-
37-
class GeneratedMetadataMarkdownChunkGeneratedMetadata(BaseModel):
38-
type: Optional[Literal["markdown"]] = None
39-
40-
file_type: Optional[Literal["text/markdown"]] = None
41-
42-
language: str
43-
44-
word_count: int
45-
46-
file_size: int
47-
48-
chunk_headings: Optional[List[GeneratedMetadataMarkdownChunkGeneratedMetadataChunkHeading]] = None
49-
50-
heading_context: Optional[List[GeneratedMetadataMarkdownChunkGeneratedMetadataHeadingContext]] = None
51-
52-
if TYPE_CHECKING:
53-
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
54-
# value to this field, so for compatibility we avoid doing it at runtime.
55-
__pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]
56-
57-
# Stub to indicate that arbitrary properties are accepted.
58-
# To access properties that are not valid identifiers you can use `getattr`, e.g.
59-
# `getattr(obj, '$type')`
60-
def __getattr__(self, attr: str) -> object: ...
61-
else:
62-
__pydantic_extra__: Dict[str, object]
63-
64-
65-
class GeneratedMetadataTextChunkGeneratedMetadata(BaseModel):
66-
type: Optional[Literal["text"]] = None
67-
68-
file_type: Optional[Literal["text/plain"]] = None
69-
70-
language: str
71-
72-
word_count: int
73-
74-
file_size: int
75-
76-
if TYPE_CHECKING:
77-
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
78-
# value to this field, so for compatibility we avoid doing it at runtime.
79-
__pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]
80-
81-
# Stub to indicate that arbitrary properties are accepted.
82-
# To access properties that are not valid identifiers you can use `getattr`, e.g.
83-
# `getattr(obj, '$type')`
84-
def __getattr__(self, attr: str) -> object: ...
85-
else:
86-
__pydantic_extra__: Dict[str, object]
87-
88-
89-
class GeneratedMetadataPdfChunkGeneratedMetadata(BaseModel):
90-
type: Optional[Literal["pdf"]] = None
91-
92-
file_type: Optional[Literal["application/pdf"]] = None
93-
94-
total_pages: int
95-
96-
total_size: int
97-
98-
if TYPE_CHECKING:
99-
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
100-
# value to this field, so for compatibility we avoid doing it at runtime.
101-
__pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]
102-
103-
# Stub to indicate that arbitrary properties are accepted.
104-
# To access properties that are not valid identifiers you can use `getattr`, e.g.
105-
# `getattr(obj, '$type')`
106-
def __getattr__(self, attr: str) -> object: ...
107-
else:
108-
__pydantic_extra__: Dict[str, object]
109-
110-
111-
class GeneratedMetadataCodeChunkGeneratedMetadata(BaseModel):
112-
type: Optional[Literal["code"]] = None
113-
114-
file_type: str
115-
116-
language: str
117-
118-
word_count: int
119-
120-
file_size: int
121-
122-
if TYPE_CHECKING:
123-
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
124-
# value to this field, so for compatibility we avoid doing it at runtime.
125-
__pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]
126-
127-
# Stub to indicate that arbitrary properties are accepted.
128-
# To access properties that are not valid identifiers you can use `getattr`, e.g.
129-
# `getattr(obj, '$type')`
130-
def __getattr__(self, attr: str) -> object: ...
131-
else:
132-
__pydantic_extra__: Dict[str, object]
133-
134-
135-
class GeneratedMetadataAudioChunkGeneratedMetadata(BaseModel):
136-
type: Optional[Literal["audio"]] = None
137-
138-
file_type: str
139-
140-
file_size: int
141-
142-
total_duration_seconds: float
143-
144-
sample_rate: int
145-
146-
channels: int
147-
148-
audio_format: int
149-
150-
if TYPE_CHECKING:
151-
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
152-
# value to this field, so for compatibility we avoid doing it at runtime.
153-
__pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]
154-
155-
# Stub to indicate that arbitrary properties are accepted.
156-
# To access properties that are not valid identifiers you can use `getattr`, e.g.
157-
# `getattr(obj, '$type')`
158-
def __getattr__(self, attr: str) -> object: ...
159-
else:
160-
__pydantic_extra__: Dict[str, object]
161-
162-
163-
GeneratedMetadata: TypeAlias = Annotated[
164-
Union[
165-
GeneratedMetadataMarkdownChunkGeneratedMetadata,
166-
GeneratedMetadataTextChunkGeneratedMetadata,
167-
GeneratedMetadataPdfChunkGeneratedMetadata,
168-
GeneratedMetadataCodeChunkGeneratedMetadata,
169-
GeneratedMetadataAudioChunkGeneratedMetadata,
170-
None,
171-
],
172-
PropertyInfo(discriminator="type"),
173-
]
8+
__all__ = ["ScoredAudioURLInputChunk", "AudioURL"]
1749

17510

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

188-
generated_metadata: Optional[GeneratedMetadata] = None
23+
generated_metadata: Optional[Dict[str, object]] = None
18924
"""metadata of the chunk"""
19025

19126
model: Optional[str] = None

0 commit comments

Comments
 (0)