Skip to content

Commit 11ca612

Browse files
committed
chore: update
1 parent e178baa commit 11ca612

2 files changed

Lines changed: 53 additions & 53 deletions

File tree

src/mixedbread/resources/parsing/jobs.py

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import httpx
1010

1111
from ...lib import polling
12-
from ..._types import Body, Omit, Query, Headers, NotGiven, FileTypes, omit, not_given, NOT_GIVEN
12+
from ..._types import Body, Omit, Query, Headers, NotGiven, FileTypes, omit, not_given
1313
from ..._utils import maybe_transform, async_maybe_transform
1414
from ..._compat import cached_property
1515
from ..._resource import SyncAPIResource, AsyncAPIResource
@@ -303,8 +303,8 @@ def poll(
303303
self,
304304
job_id: str,
305305
*,
306-
poll_interval_ms: int | NotGiven = NOT_GIVEN,
307-
poll_timeout_ms: float | NotGiven = NOT_GIVEN,
306+
poll_interval_ms: int | NotGiven = not_given,
307+
poll_timeout_ms: float | NotGiven = not_given,
308308
**kwargs: Any,
309309
) -> ParsingJob:
310310
"""
@@ -329,7 +329,7 @@ def create_and_poll(
329329
self,
330330
*,
331331
file_id: str,
332-
chunking_strategy: Literal["page"] | NotGiven = NOT_GIVEN,
332+
chunking_strategy: Literal["page"] | NotGiven = not_given,
333333
element_types: Optional[
334334
List[
335335
Literal[
@@ -347,10 +347,10 @@ def create_and_poll(
347347
]
348348
]
349349
]
350-
| NotGiven = NOT_GIVEN,
351-
return_format: Literal["html", "markdown", "plain"] | NotGiven = NOT_GIVEN,
352-
poll_interval_ms: int | NotGiven = NOT_GIVEN,
353-
poll_timeout_ms: float | NotGiven = NOT_GIVEN,
350+
| NotGiven = not_given,
351+
return_format: Literal["html", "markdown", "plain"] | NotGiven = not_given,
352+
poll_interval_ms: int | NotGiven = not_given,
353+
poll_timeout_ms: float | NotGiven = not_given,
354354
**kwargs: Any,
355355
) -> ParsingJob:
356356
"""
@@ -383,7 +383,7 @@ def upload(
383383
self,
384384
*,
385385
file: FileTypes,
386-
chunking_strategy: Literal["page"] | NotGiven = NOT_GIVEN,
386+
chunking_strategy: Literal["page"] | NotGiven = not_given,
387387
element_types: Optional[
388388
List[
389389
Literal[
@@ -401,8 +401,8 @@ def upload(
401401
]
402402
]
403403
]
404-
| NotGiven = NOT_GIVEN,
405-
return_format: Literal["html", "markdown", "plain"] | NotGiven = NOT_GIVEN,
404+
| NotGiven = not_given,
405+
return_format: Literal["html", "markdown", "plain"] | NotGiven = not_given,
406406
**kwargs: Any,
407407
) -> ParsingJob:
408408
"""Upload a file to the `files` API and then create a parsing job for it.
@@ -422,7 +422,7 @@ def upload_and_poll(
422422
self,
423423
*,
424424
file: FileTypes,
425-
chunking_strategy: Literal["page"] | NotGiven = NOT_GIVEN,
425+
chunking_strategy: Literal["page"] | NotGiven = not_given,
426426
element_types: Optional[
427427
List[
428428
Literal[
@@ -440,9 +440,9 @@ def upload_and_poll(
440440
]
441441
]
442442
]
443-
| NotGiven = NOT_GIVEN,
444-
return_format: Literal["html", "markdown", "plain"] | NotGiven = NOT_GIVEN,
445-
poll_interval_ms: int | NotGiven = NOT_GIVEN,
443+
| NotGiven = not_given,
444+
return_format: Literal["html", "markdown", "plain"] | NotGiven = not_given,
445+
poll_interval_ms: int | NotGiven = not_given,
446446
**kwargs: Any,
447447
) -> ParsingJob:
448448
"""Upload a file and create a parsing job, then poll until processing is complete."""
@@ -727,8 +727,8 @@ async def poll(
727727
self,
728728
job_id: str,
729729
*,
730-
poll_interval_ms: int | NotGiven = NOT_GIVEN,
731-
poll_timeout_ms: float | NotGiven = NOT_GIVEN,
730+
poll_interval_ms: int | NotGiven = not_given,
731+
poll_timeout_ms: float | NotGiven = not_given,
732732
**kwargs: Any,
733733
) -> ParsingJob:
734734
"""
@@ -753,7 +753,7 @@ async def create_and_poll(
753753
self,
754754
*,
755755
file_id: str,
756-
chunking_strategy: Literal["page"] | NotGiven = NOT_GIVEN,
756+
chunking_strategy: Literal["page"] | NotGiven = not_given,
757757
element_types: Optional[
758758
List[
759759
Literal[
@@ -771,10 +771,10 @@ async def create_and_poll(
771771
]
772772
]
773773
]
774-
| NotGiven = NOT_GIVEN,
775-
return_format: Literal["html", "markdown", "plain"] | NotGiven = NOT_GIVEN,
776-
poll_interval_ms: int | NotGiven = NOT_GIVEN,
777-
poll_timeout_ms: float | NotGiven = NOT_GIVEN,
774+
| NotGiven = not_given,
775+
return_format: Literal["html", "markdown", "plain"] | NotGiven = not_given,
776+
poll_interval_ms: int | NotGiven = not_given,
777+
poll_timeout_ms: float | NotGiven = not_given,
778778
**kwargs: Any,
779779
) -> ParsingJob:
780780
"""
@@ -807,7 +807,7 @@ async def upload(
807807
self,
808808
*,
809809
file: FileTypes,
810-
chunking_strategy: Literal["page"] | NotGiven = NOT_GIVEN,
810+
chunking_strategy: Literal["page"] | NotGiven = not_given,
811811
element_types: Optional[
812812
List[
813813
Literal[
@@ -825,8 +825,8 @@ async def upload(
825825
]
826826
]
827827
]
828-
| NotGiven = NOT_GIVEN,
829-
return_format: Literal["html", "markdown", "plain"] | NotGiven = NOT_GIVEN,
828+
| NotGiven = not_given,
829+
return_format: Literal["html", "markdown", "plain"] | NotGiven = not_given,
830830
**kwargs: Any,
831831
) -> ParsingJob:
832832
"""Upload a file to the `files` API and then create a parsing job for it.
@@ -846,7 +846,7 @@ async def upload_and_poll(
846846
self,
847847
*,
848848
file: FileTypes,
849-
chunking_strategy: Literal["page"] | NotGiven = NOT_GIVEN,
849+
chunking_strategy: Literal["page"] | NotGiven = not_given,
850850
element_types: Optional[
851851
List[
852852
Literal[
@@ -864,9 +864,9 @@ async def upload_and_poll(
864864
]
865865
]
866866
]
867-
| NotGiven = NOT_GIVEN,
868-
return_format: Literal["html", "markdown", "plain"] | NotGiven = NOT_GIVEN,
869-
poll_interval_ms: int | NotGiven = NOT_GIVEN,
867+
| NotGiven = not_given,
868+
return_format: Literal["html", "markdown", "plain"] | NotGiven = not_given,
869+
poll_interval_ms: int | NotGiven = not_given,
870870
**kwargs: Any,
871871
) -> ParsingJob:
872872
"""Upload a file and create a parsing job, then poll until processing is complete."""

src/mixedbread/resources/vector_stores/files.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,8 @@ def poll(
332332
file_id: str,
333333
*,
334334
vector_store_identifier: str,
335-
poll_interval_ms: int | NotGiven = NOT_GIVEN,
336-
poll_timeout_ms: float | NotGiven = NOT_GIVEN,
335+
poll_interval_ms: int | NotGiven = not_given,
336+
poll_timeout_ms: float | NotGiven = not_given,
337337
**kwargs: Any,
338338
) -> VectorStoreFile:
339339
"""
@@ -360,10 +360,10 @@ def create_and_poll(
360360
file_id: str,
361361
*,
362362
vector_store_identifier: str,
363-
metadata: Optional[object] | NotGiven = NOT_GIVEN,
364-
experimental: file_create_params.Experimental | NotGiven = NOT_GIVEN,
365-
poll_interval_ms: int | NotGiven = NOT_GIVEN,
366-
poll_timeout_ms: float | NotGiven = NOT_GIVEN,
363+
metadata: Optional[object] | NotGiven = not_given,
364+
experimental: file_create_params.Experimental | NotGiven = not_given,
365+
poll_interval_ms: int | NotGiven = not_given,
366+
poll_timeout_ms: float | NotGiven = not_given,
367367
**kwargs: Any,
368368
) -> VectorStoreFile:
369369
"""
@@ -393,8 +393,8 @@ def upload(
393393
*,
394394
vector_store_identifier: str,
395395
file: FileTypes,
396-
metadata: Optional[object] | NotGiven = NOT_GIVEN,
397-
experimental: file_create_params.Experimental | NotGiven = NOT_GIVEN,
396+
metadata: Optional[object] | NotGiven = not_given,
397+
experimental: file_create_params.Experimental | NotGiven = not_given,
398398
**kwargs: Any,
399399
) -> VectorStoreFile:
400400
"""Upload a file to the `files` API and then attach it to the given vector store.
@@ -415,10 +415,10 @@ def upload_and_poll(
415415
*,
416416
vector_store_identifier: str,
417417
file: FileTypes,
418-
metadata: Optional[object] | NotGiven = NOT_GIVEN,
419-
experimental: file_create_params.Experimental | NotGiven = NOT_GIVEN,
420-
poll_interval_ms: int | NotGiven = NOT_GIVEN,
421-
poll_timeout_ms: float | NotGiven = NOT_GIVEN,
418+
metadata: Optional[object] | NotGiven = not_given,
419+
experimental: file_create_params.Experimental | NotGiven = not_given,
420+
poll_interval_ms: int | NotGiven = not_given,
421+
poll_timeout_ms: float | NotGiven = not_given,
422422
**kwargs: Any,
423423
) -> VectorStoreFile:
424424
"""Add a file to a vector store and poll until processing is complete."""
@@ -738,8 +738,8 @@ async def poll(
738738
file_id: str,
739739
*,
740740
vector_store_identifier: str,
741-
poll_interval_ms: int | NotGiven = NOT_GIVEN,
742-
poll_timeout_ms: float | NotGiven = NOT_GIVEN,
741+
poll_interval_ms: int | NotGiven = not_given,
742+
poll_timeout_ms: float | NotGiven = not_given,
743743
**kwargs: Any,
744744
) -> VectorStoreFile:
745745
"""
@@ -766,10 +766,10 @@ async def create_and_poll(
766766
file_id: str,
767767
*,
768768
vector_store_identifier: str,
769-
metadata: Optional[object] | NotGiven = NOT_GIVEN,
770-
experimental: file_create_params.Experimental | NotGiven = NOT_GIVEN,
771-
poll_interval_ms: int | NotGiven = NOT_GIVEN,
772-
poll_timeout_ms: float | NotGiven = NOT_GIVEN,
769+
metadata: Optional[object] | NotGiven = not_given,
770+
experimental: file_create_params.Experimental | NotGiven = not_given,
771+
poll_interval_ms: int | NotGiven = not_given,
772+
poll_timeout_ms: float | NotGiven = not_given,
773773
**kwargs: Any,
774774
) -> VectorStoreFile:
775775
"""
@@ -803,8 +803,8 @@ async def upload(
803803
*,
804804
vector_store_identifier: str,
805805
file: FileTypes,
806-
metadata: Optional[object] | NotGiven = NOT_GIVEN,
807-
experimental: file_create_params.Experimental | NotGiven = NOT_GIVEN,
806+
metadata: Optional[object] | NotGiven = not_given,
807+
experimental: file_create_params.Experimental | NotGiven = not_given,
808808
**kwargs: Any,
809809
) -> VectorStoreFile:
810810
"""Upload a file to the `files` API and then attach it to the given vector store.
@@ -825,10 +825,10 @@ async def upload_and_poll(
825825
*,
826826
vector_store_identifier: str,
827827
file: FileTypes,
828-
metadata: Optional[object] | NotGiven = NOT_GIVEN,
829-
experimental: file_create_params.Experimental | NotGiven = NOT_GIVEN,
830-
poll_interval_ms: int | NotGiven = NOT_GIVEN,
831-
poll_timeout_ms: float | NotGiven = NOT_GIVEN,
828+
metadata: Optional[object] | NotGiven = not_given,
829+
experimental: file_create_params.Experimental | NotGiven = not_given,
830+
poll_interval_ms: int | NotGiven = not_given,
831+
poll_timeout_ms: float | NotGiven = not_given,
832832
**kwargs: Any,
833833
) -> VectorStoreFile:
834834
"""Add a file to a vector store and poll until processing is complete."""

0 commit comments

Comments
 (0)