mixpeek 0.6.8__py3-none-any.whl → 0.6.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mixpeek/__init__.py +1 -106
- mixpeek/client.py +21 -65
- mixpeek/endpoints/connections.py +16 -0
- mixpeek/endpoints/embed.py +50 -0
- mixpeek/endpoints/extract.py +16 -0
- mixpeek/endpoints/generate.py +17 -0
- mixpeek/endpoints/tools.py +23 -0
- mixpeek/exceptions.py +13 -0
- mixpeek-0.6.9.dist-info/METADATA +68 -0
- mixpeek-0.6.9.dist-info/RECORD +13 -0
- {mixpeek-0.6.8.dist-info → mixpeek-0.6.9.dist-info}/WHEEL +2 -1
- mixpeek-0.6.9.dist-info/top_level.txt +1 -0
- mixpeek/base_client.py +0 -1015
- mixpeek/core/__init__.py +0 -27
- mixpeek/core/api_error.py +0 -15
- mixpeek/core/client_wrapper.py +0 -83
- mixpeek/core/datetime_utils.py +0 -28
- mixpeek/core/file.py +0 -38
- mixpeek/core/http_client.py +0 -130
- mixpeek/core/jsonable_encoder.py +0 -99
- mixpeek/core/pydantic_utilities.py +0 -12
- mixpeek/core/remove_none_from_dict.py +0 -11
- mixpeek/core/request_options.py +0 -32
- mixpeek/environment.py +0 -7
- mixpeek/errors/__init__.py +0 -17
- mixpeek/errors/bad_request_error.py +0 -9
- mixpeek/errors/forbidden_error.py +0 -9
- mixpeek/errors/internal_server_error.py +0 -9
- mixpeek/errors/not_found_error.py +0 -9
- mixpeek/errors/unauthorized_error.py +0 -9
- mixpeek/errors/unprocessable_entity_error.py +0 -9
- mixpeek/pipeline/__init__.py +0 -2
- mixpeek/pipeline/client.py +0 -482
- mixpeek/storage/__init__.py +0 -5
- mixpeek/storage/client.py +0 -145
- mixpeek/storage/sample/__init__.py +0 -2
- mixpeek/storage/sample/client.py +0 -286
- mixpeek/types/__init__.py +0 -81
- mixpeek/types/api_key.py +0 -27
- mixpeek/types/audio_params.py +0 -25
- mixpeek/types/configs_response.py +0 -38
- mixpeek/types/connection.py +0 -32
- mixpeek/types/connection_engine.py +0 -5
- mixpeek/types/csv_params.py +0 -25
- mixpeek/types/destination.py +0 -38
- mixpeek/types/embedding_response.py +0 -30
- mixpeek/types/error_message.py +0 -25
- mixpeek/types/error_response.py +0 -26
- mixpeek/types/extract_response.py +0 -31
- mixpeek/types/field_type.py +0 -5
- mixpeek/types/generation_response.py +0 -32
- mixpeek/types/html_params.py +0 -25
- mixpeek/types/http_validation_error.py +0 -26
- mixpeek/types/image_params.py +0 -28
- mixpeek/types/message.py +0 -33
- mixpeek/types/metadata.py +0 -28
- mixpeek/types/modality.py +0 -5
- mixpeek/types/model.py +0 -34
- mixpeek/types/models.py +0 -5
- mixpeek/types/pdf_params.py +0 -37
- mixpeek/types/pipeline_response.py +0 -45
- mixpeek/types/pipeline_task_response.py +0 -28
- mixpeek/types/ppt_params.py +0 -23
- mixpeek/types/pptx_params.py +0 -23
- mixpeek/types/settings.py +0 -31
- mixpeek/types/source.py +0 -39
- mixpeek/types/source_destination_mapping.py +0 -40
- mixpeek/types/txt_params.py +0 -23
- mixpeek/types/user.py +0 -32
- mixpeek/types/validation_error.py +0 -28
- mixpeek/types/validation_error_loc_item.py +0 -5
- mixpeek/types/video_params.py +0 -23
- mixpeek/types/workflow_code_response.py +0 -25
- mixpeek/types/workflow_response.py +0 -28
- mixpeek/types/workflow_settings.py +0 -26
- mixpeek/types/xlsx_params.py +0 -25
- mixpeek/user/__init__.py +0 -2
- mixpeek/user/client.py +0 -312
- mixpeek/version.py +0 -4
- mixpeek/workflow/__init__.py +0 -2
- mixpeek/workflow/client.py +0 -543
- mixpeek-0.6.8.dist-info/LICENSE +0 -21
- mixpeek-0.6.8.dist-info/METADATA +0 -145
- mixpeek-0.6.8.dist-info/RECORD +0 -76
- /mixpeek/{py.typed → endpoints/__init__.py} +0 -0
mixpeek/types/field_type.py
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import pydantic_v1
|
8
|
-
from .metadata import Metadata
|
9
|
-
|
10
|
-
|
11
|
-
class GenerationResponse(pydantic_v1.BaseModel):
|
12
|
-
response: typing.Dict[str, typing.Any] = pydantic_v1.Field()
|
13
|
-
"""
|
14
|
-
The response from the generation.
|
15
|
-
"""
|
16
|
-
|
17
|
-
metadata: typing.Optional[Metadata] = None
|
18
|
-
elapsed_time: typing.Optional[float] = None
|
19
|
-
|
20
|
-
def json(self, **kwargs: typing.Any) -> str:
|
21
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
22
|
-
return super().json(**kwargs_with_defaults)
|
23
|
-
|
24
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
25
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
26
|
-
return super().dict(**kwargs_with_defaults)
|
27
|
-
|
28
|
-
class Config:
|
29
|
-
frozen = True
|
30
|
-
smart_union = True
|
31
|
-
extra = pydantic_v1.Extra.allow
|
32
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
mixpeek/types/html_params.py
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import pydantic_v1
|
8
|
-
|
9
|
-
|
10
|
-
class HtmlParams(pydantic_v1.BaseModel):
|
11
|
-
skip_headers_and_footers: typing.Optional[bool] = None
|
12
|
-
|
13
|
-
def json(self, **kwargs: typing.Any) -> str:
|
14
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
15
|
-
return super().json(**kwargs_with_defaults)
|
16
|
-
|
17
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
18
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
19
|
-
return super().dict(**kwargs_with_defaults)
|
20
|
-
|
21
|
-
class Config:
|
22
|
-
frozen = True
|
23
|
-
smart_union = True
|
24
|
-
extra = pydantic_v1.Extra.allow
|
25
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import pydantic_v1
|
8
|
-
from .validation_error import ValidationError
|
9
|
-
|
10
|
-
|
11
|
-
class HttpValidationError(pydantic_v1.BaseModel):
|
12
|
-
detail: typing.Optional[typing.List[ValidationError]] = None
|
13
|
-
|
14
|
-
def json(self, **kwargs: typing.Any) -> str:
|
15
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
16
|
-
return super().json(**kwargs_with_defaults)
|
17
|
-
|
18
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
19
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
20
|
-
return super().dict(**kwargs_with_defaults)
|
21
|
-
|
22
|
-
class Config:
|
23
|
-
frozen = True
|
24
|
-
smart_union = True
|
25
|
-
extra = pydantic_v1.Extra.allow
|
26
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
mixpeek/types/image_params.py
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import pydantic_v1
|
8
|
-
|
9
|
-
|
10
|
-
class ImageParams(pydantic_v1.BaseModel):
|
11
|
-
strategy: typing.Optional[str] = pydantic_v1.Field(default=None)
|
12
|
-
"""
|
13
|
-
The strategy to use for parsing the image. Valid strategies are 'ocr', 'object', and 'auto'.
|
14
|
-
"""
|
15
|
-
|
16
|
-
def json(self, **kwargs: typing.Any) -> str:
|
17
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
18
|
-
return super().json(**kwargs_with_defaults)
|
19
|
-
|
20
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
21
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
22
|
-
return super().dict(**kwargs_with_defaults)
|
23
|
-
|
24
|
-
class Config:
|
25
|
-
frozen = True
|
26
|
-
smart_union = True
|
27
|
-
extra = pydantic_v1.Extra.allow
|
28
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
mixpeek/types/message.py
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import pydantic_v1
|
8
|
-
|
9
|
-
|
10
|
-
class Message(pydantic_v1.BaseModel):
|
11
|
-
role: str = pydantic_v1.Field()
|
12
|
-
"""
|
13
|
-
The role of the message sender.
|
14
|
-
"""
|
15
|
-
|
16
|
-
content: str = pydantic_v1.Field()
|
17
|
-
"""
|
18
|
-
The content of the message.
|
19
|
-
"""
|
20
|
-
|
21
|
-
def json(self, **kwargs: typing.Any) -> str:
|
22
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
23
|
-
return super().json(**kwargs_with_defaults)
|
24
|
-
|
25
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
26
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
27
|
-
return super().dict(**kwargs_with_defaults)
|
28
|
-
|
29
|
-
class Config:
|
30
|
-
frozen = True
|
31
|
-
smart_union = True
|
32
|
-
extra = pydantic_v1.Extra.allow
|
33
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
mixpeek/types/metadata.py
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import pydantic_v1
|
8
|
-
from .model import Model
|
9
|
-
|
10
|
-
|
11
|
-
class Metadata(pydantic_v1.BaseModel):
|
12
|
-
total_tokens: typing.Optional[int] = None
|
13
|
-
generation_id: typing.Optional[str] = None
|
14
|
-
model: typing.Optional[Model] = None
|
15
|
-
|
16
|
-
def json(self, **kwargs: typing.Any) -> str:
|
17
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
18
|
-
return super().json(**kwargs_with_defaults)
|
19
|
-
|
20
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
21
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
22
|
-
return super().dict(**kwargs_with_defaults)
|
23
|
-
|
24
|
-
class Config:
|
25
|
-
frozen = True
|
26
|
-
smart_union = True
|
27
|
-
extra = pydantic_v1.Extra.allow
|
28
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
mixpeek/types/modality.py
DELETED
mixpeek/types/model.py
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import pydantic_v1
|
8
|
-
from .models import Models
|
9
|
-
|
10
|
-
|
11
|
-
class Model(pydantic_v1.BaseModel):
|
12
|
-
provider: str = pydantic_v1.Field()
|
13
|
-
"""
|
14
|
-
The provider of the model.
|
15
|
-
"""
|
16
|
-
|
17
|
-
model: Models = pydantic_v1.Field()
|
18
|
-
"""
|
19
|
-
The model to be used.
|
20
|
-
"""
|
21
|
-
|
22
|
-
def json(self, **kwargs: typing.Any) -> str:
|
23
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
24
|
-
return super().json(**kwargs_with_defaults)
|
25
|
-
|
26
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
27
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
28
|
-
return super().dict(**kwargs_with_defaults)
|
29
|
-
|
30
|
-
class Config:
|
31
|
-
frozen = True
|
32
|
-
smart_union = True
|
33
|
-
extra = pydantic_v1.Extra.allow
|
34
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
mixpeek/types/models.py
DELETED
mixpeek/types/pdf_params.py
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import pydantic_v1
|
8
|
-
|
9
|
-
|
10
|
-
class PdfParams(pydantic_v1.BaseModel):
|
11
|
-
strategy: typing.Optional[str] = pydantic_v1.Field(default=None)
|
12
|
-
"""
|
13
|
-
The strategy to use for partitioning the PDF. Valid strategies are "hi_res",
|
14
|
-
"ocr_only", and "fast". When using the "hi_res" strategy, the function uses
|
15
|
-
a layout detection model to identify document elements. When using the
|
16
|
-
"ocr_only" strategy, partition_pdf simply extracts the text from the
|
17
|
-
document using OCR and processes it. If the "fast" strategy is used, the text
|
18
|
-
is extracted directly from the PDF. The default strategy `auto` will determine
|
19
|
-
when a page can be extracted using `fast` mode, otherwise it will fall back to `hi_res`.
|
20
|
-
"""
|
21
|
-
|
22
|
-
infer_table_structure: typing.Optional[bool] = None
|
23
|
-
hi_res_model_name: typing.Optional[str] = None
|
24
|
-
|
25
|
-
def json(self, **kwargs: typing.Any) -> str:
|
26
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
27
|
-
return super().json(**kwargs_with_defaults)
|
28
|
-
|
29
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
30
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
31
|
-
return super().dict(**kwargs_with_defaults)
|
32
|
-
|
33
|
-
class Config:
|
34
|
-
frozen = True
|
35
|
-
smart_union = True
|
36
|
-
extra = pydantic_v1.Extra.allow
|
37
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -1,45 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import pydantic_v1
|
8
|
-
from .connection import Connection
|
9
|
-
from .source_destination_mapping import SourceDestinationMapping
|
10
|
-
|
11
|
-
|
12
|
-
class PipelineResponse(pydantic_v1.BaseModel):
|
13
|
-
pipeline_id: typing.Optional[str] = pydantic_v1.Field(default=None)
|
14
|
-
"""
|
15
|
-
The ID of the pipeline
|
16
|
-
"""
|
17
|
-
|
18
|
-
enabled: typing.Optional[bool] = None
|
19
|
-
connection: typing.Optional[Connection] = None
|
20
|
-
source_destination_mappings: typing.List[SourceDestinationMapping] = pydantic_v1.Field()
|
21
|
-
"""
|
22
|
-
The source-destination mappings
|
23
|
-
"""
|
24
|
-
|
25
|
-
metadata: typing.Optional[typing.Dict[str, typing.Any]] = None
|
26
|
-
created_at: typing.Optional[dt.datetime] = pydantic_v1.Field(default=None)
|
27
|
-
"""
|
28
|
-
The creation time
|
29
|
-
"""
|
30
|
-
|
31
|
-
last_run: typing.Optional[dt.datetime] = None
|
32
|
-
|
33
|
-
def json(self, **kwargs: typing.Any) -> str:
|
34
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
35
|
-
return super().json(**kwargs_with_defaults)
|
36
|
-
|
37
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
38
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
39
|
-
return super().dict(**kwargs_with_defaults)
|
40
|
-
|
41
|
-
class Config:
|
42
|
-
frozen = True
|
43
|
-
smart_union = True
|
44
|
-
extra = pydantic_v1.Extra.allow
|
45
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import pydantic_v1
|
8
|
-
|
9
|
-
|
10
|
-
class PipelineTaskResponse(pydantic_v1.BaseModel):
|
11
|
-
task_id: str = pydantic_v1.Field()
|
12
|
-
"""
|
13
|
-
The ID of the task
|
14
|
-
"""
|
15
|
-
|
16
|
-
def json(self, **kwargs: typing.Any) -> str:
|
17
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
18
|
-
return super().json(**kwargs_with_defaults)
|
19
|
-
|
20
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
21
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
22
|
-
return super().dict(**kwargs_with_defaults)
|
23
|
-
|
24
|
-
class Config:
|
25
|
-
frozen = True
|
26
|
-
smart_union = True
|
27
|
-
extra = pydantic_v1.Extra.allow
|
28
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
mixpeek/types/ppt_params.py
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import pydantic_v1
|
8
|
-
|
9
|
-
|
10
|
-
class PptParams(pydantic_v1.BaseModel):
|
11
|
-
def json(self, **kwargs: typing.Any) -> str:
|
12
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
13
|
-
return super().json(**kwargs_with_defaults)
|
14
|
-
|
15
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
16
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
17
|
-
return super().dict(**kwargs_with_defaults)
|
18
|
-
|
19
|
-
class Config:
|
20
|
-
frozen = True
|
21
|
-
smart_union = True
|
22
|
-
extra = pydantic_v1.Extra.allow
|
23
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
mixpeek/types/pptx_params.py
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import pydantic_v1
|
8
|
-
|
9
|
-
|
10
|
-
class PptxParams(pydantic_v1.BaseModel):
|
11
|
-
def json(self, **kwargs: typing.Any) -> str:
|
12
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
13
|
-
return super().json(**kwargs_with_defaults)
|
14
|
-
|
15
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
16
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
17
|
-
return super().dict(**kwargs_with_defaults)
|
18
|
-
|
19
|
-
class Config:
|
20
|
-
frozen = True
|
21
|
-
smart_union = True
|
22
|
-
extra = pydantic_v1.Extra.allow
|
23
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
mixpeek/types/settings.py
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import pydantic_v1
|
8
|
-
|
9
|
-
|
10
|
-
class Settings(pydantic_v1.BaseModel):
|
11
|
-
system_prompt: typing.Optional[str] = None
|
12
|
-
temperature: typing.Optional[float] = None
|
13
|
-
max_tokens: typing.Optional[int] = None
|
14
|
-
stop: typing.Optional[typing.List[str]] = None
|
15
|
-
top_p: typing.Optional[float] = None
|
16
|
-
frequency_penalty: typing.Optional[float] = None
|
17
|
-
presence_penalty: typing.Optional[float] = None
|
18
|
-
|
19
|
-
def json(self, **kwargs: typing.Any) -> str:
|
20
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
21
|
-
return super().json(**kwargs_with_defaults)
|
22
|
-
|
23
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
24
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
25
|
-
return super().dict(**kwargs_with_defaults)
|
26
|
-
|
27
|
-
class Config:
|
28
|
-
frozen = True
|
29
|
-
smart_union = True
|
30
|
-
extra = pydantic_v1.Extra.allow
|
31
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
mixpeek/types/source.py
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import pydantic_v1
|
8
|
-
from .field_type import FieldType
|
9
|
-
|
10
|
-
|
11
|
-
class Source(pydantic_v1.BaseModel):
|
12
|
-
field: str = pydantic_v1.Field()
|
13
|
-
"""
|
14
|
-
The field name
|
15
|
-
"""
|
16
|
-
|
17
|
-
type: FieldType = pydantic_v1.Field()
|
18
|
-
"""
|
19
|
-
The type of the field
|
20
|
-
"""
|
21
|
-
|
22
|
-
settings: typing.Dict[str, typing.Any] = pydantic_v1.Field()
|
23
|
-
"""
|
24
|
-
The settings for the field
|
25
|
-
"""
|
26
|
-
|
27
|
-
def json(self, **kwargs: typing.Any) -> str:
|
28
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
29
|
-
return super().json(**kwargs_with_defaults)
|
30
|
-
|
31
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
32
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
33
|
-
return super().dict(**kwargs_with_defaults)
|
34
|
-
|
35
|
-
class Config:
|
36
|
-
frozen = True
|
37
|
-
smart_union = True
|
38
|
-
extra = pydantic_v1.Extra.allow
|
39
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -1,40 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import pydantic_v1
|
8
|
-
from .destination import Destination
|
9
|
-
from .source import Source
|
10
|
-
|
11
|
-
|
12
|
-
class SourceDestinationMapping(pydantic_v1.BaseModel):
|
13
|
-
embedding_model: str = pydantic_v1.Field()
|
14
|
-
"""
|
15
|
-
The embedding model
|
16
|
-
"""
|
17
|
-
|
18
|
-
source: Source = pydantic_v1.Field()
|
19
|
-
"""
|
20
|
-
The source
|
21
|
-
"""
|
22
|
-
|
23
|
-
destination: Destination = pydantic_v1.Field()
|
24
|
-
"""
|
25
|
-
The destination
|
26
|
-
"""
|
27
|
-
|
28
|
-
def json(self, **kwargs: typing.Any) -> str:
|
29
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
30
|
-
return super().json(**kwargs_with_defaults)
|
31
|
-
|
32
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
33
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
34
|
-
return super().dict(**kwargs_with_defaults)
|
35
|
-
|
36
|
-
class Config:
|
37
|
-
frozen = True
|
38
|
-
smart_union = True
|
39
|
-
extra = pydantic_v1.Extra.allow
|
40
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
mixpeek/types/txt_params.py
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import pydantic_v1
|
8
|
-
|
9
|
-
|
10
|
-
class TxtParams(pydantic_v1.BaseModel):
|
11
|
-
def json(self, **kwargs: typing.Any) -> str:
|
12
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
13
|
-
return super().json(**kwargs_with_defaults)
|
14
|
-
|
15
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
16
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
17
|
-
return super().dict(**kwargs_with_defaults)
|
18
|
-
|
19
|
-
class Config:
|
20
|
-
frozen = True
|
21
|
-
smart_union = True
|
22
|
-
extra = pydantic_v1.Extra.allow
|
23
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
mixpeek/types/user.py
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import pydantic_v1
|
8
|
-
from .api_key import ApiKey
|
9
|
-
from .connection import Connection
|
10
|
-
|
11
|
-
|
12
|
-
class User(pydantic_v1.BaseModel):
|
13
|
-
user_id: typing.Optional[str] = None
|
14
|
-
email: str
|
15
|
-
api_keys: typing.Optional[typing.List[ApiKey]] = None
|
16
|
-
index_ids: typing.Optional[typing.List[str]] = None
|
17
|
-
metadata: typing.Optional[typing.Dict[str, typing.Any]] = None
|
18
|
-
connections: typing.Optional[typing.List[Connection]] = None
|
19
|
-
|
20
|
-
def json(self, **kwargs: typing.Any) -> str:
|
21
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
22
|
-
return super().json(**kwargs_with_defaults)
|
23
|
-
|
24
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
25
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
26
|
-
return super().dict(**kwargs_with_defaults)
|
27
|
-
|
28
|
-
class Config:
|
29
|
-
frozen = True
|
30
|
-
smart_union = True
|
31
|
-
extra = pydantic_v1.Extra.allow
|
32
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import pydantic_v1
|
8
|
-
from .validation_error_loc_item import ValidationErrorLocItem
|
9
|
-
|
10
|
-
|
11
|
-
class ValidationError(pydantic_v1.BaseModel):
|
12
|
-
loc: typing.List[ValidationErrorLocItem]
|
13
|
-
msg: str
|
14
|
-
type: str
|
15
|
-
|
16
|
-
def json(self, **kwargs: typing.Any) -> str:
|
17
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
18
|
-
return super().json(**kwargs_with_defaults)
|
19
|
-
|
20
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
21
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
22
|
-
return super().dict(**kwargs_with_defaults)
|
23
|
-
|
24
|
-
class Config:
|
25
|
-
frozen = True
|
26
|
-
smart_union = True
|
27
|
-
extra = pydantic_v1.Extra.allow
|
28
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
mixpeek/types/video_params.py
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import pydantic_v1
|
8
|
-
|
9
|
-
|
10
|
-
class VideoParams(pydantic_v1.BaseModel):
|
11
|
-
def json(self, **kwargs: typing.Any) -> str:
|
12
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
13
|
-
return super().json(**kwargs_with_defaults)
|
14
|
-
|
15
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
16
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
17
|
-
return super().dict(**kwargs_with_defaults)
|
18
|
-
|
19
|
-
class Config:
|
20
|
-
frozen = True
|
21
|
-
smart_union = True
|
22
|
-
extra = pydantic_v1.Extra.allow
|
23
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
2
|
-
|
3
|
-
import datetime as dt
|
4
|
-
import typing
|
5
|
-
|
6
|
-
from ..core.datetime_utils import serialize_datetime
|
7
|
-
from ..core.pydantic_utilities import pydantic_v1
|
8
|
-
|
9
|
-
|
10
|
-
class WorkflowCodeResponse(pydantic_v1.BaseModel):
|
11
|
-
code_as_string: str
|
12
|
-
|
13
|
-
def json(self, **kwargs: typing.Any) -> str:
|
14
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
15
|
-
return super().json(**kwargs_with_defaults)
|
16
|
-
|
17
|
-
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
|
18
|
-
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
19
|
-
return super().dict(**kwargs_with_defaults)
|
20
|
-
|
21
|
-
class Config:
|
22
|
-
frozen = True
|
23
|
-
smart_union = True
|
24
|
-
extra = pydantic_v1.Extra.allow
|
25
|
-
json_encoders = {dt.datetime: serialize_datetime}
|