mixpeek 0.6.1__py3-none-any.whl → 0.6.2__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 +18 -13
- mixpeek/base_client.py +39 -12
- mixpeek/core/client_wrapper.py +1 -1
- mixpeek/embed/__init__.py +2 -0
- mixpeek/embed/client.py +350 -0
- mixpeek/environment.py +7 -0
- mixpeek/extract/__init__.py +2 -0
- mixpeek/extract/client.py +347 -0
- mixpeek/generators/client.py +2 -4
- mixpeek/parse/client.py +10 -248
- mixpeek/pipelines/client.py +45 -123
- mixpeek/storage/client.py +0 -4
- mixpeek/types/__init__.py +12 -12
- mixpeek/types/{configs_request.py → api_key.py} +4 -4
- mixpeek/types/connection.py +1 -1
- mixpeek/types/{destination_schema.py → destination.py} +3 -3
- mixpeek/types/field_type.py +1 -1
- mixpeek/types/model.py +2 -1
- mixpeek/types/models.py +5 -0
- mixpeek/types/{field_schema.py → source.py} +3 -4
- mixpeek/types/{source_schema.py → source_destination_mapping.py} +6 -5
- mixpeek/types/{pipeline_response.py → user.py} +7 -10
- mixpeek/users/__init__.py +2 -0
- mixpeek/users/client.py +308 -0
- mixpeek/workflows/client.py +122 -4
- {mixpeek-0.6.1.dist-info → mixpeek-0.6.2.dist-info}/METADATA +1 -1
- {mixpeek-0.6.1.dist-info → mixpeek-0.6.2.dist-info}/RECORD +29 -22
- mixpeek/types/embedding_request.py +0 -32
- {mixpeek-0.6.1.dist-info → mixpeek-0.6.2.dist-info}/LICENSE +0 -0
- {mixpeek-0.6.1.dist-info → mixpeek-0.6.2.dist-info}/WHEEL +0 -0
mixpeek/workflows/client.py
CHANGED
@@ -71,7 +71,6 @@ class WorkflowsClient:
|
|
71
71
|
authorization="YOUR_AUTHORIZATION",
|
72
72
|
index_id="YOUR_INDEX_ID",
|
73
73
|
api_key="YOUR_API_KEY",
|
74
|
-
base_url="https://yourhost.com/path/to/api",
|
75
74
|
)
|
76
75
|
client.workflows.create(
|
77
76
|
code_as_string="code_as_string",
|
@@ -159,7 +158,6 @@ class WorkflowsClient:
|
|
159
158
|
authorization="YOUR_AUTHORIZATION",
|
160
159
|
index_id="YOUR_INDEX_ID",
|
161
160
|
api_key="YOUR_API_KEY",
|
162
|
-
base_url="https://yourhost.com/path/to/api",
|
163
161
|
)
|
164
162
|
client.workflows.invoke(
|
165
163
|
workflow_id="workflow_id",
|
@@ -223,6 +221,67 @@ class WorkflowsClient:
|
|
223
221
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
224
222
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
225
223
|
|
224
|
+
def convert_code_to_string(
|
225
|
+
self, *, request: str, request_options: typing.Optional[RequestOptions] = None
|
226
|
+
) -> WorkflowResponse:
|
227
|
+
"""
|
228
|
+
Parameters:
|
229
|
+
- request: str.
|
230
|
+
|
231
|
+
- request_options: typing.Optional[RequestOptions]. Request-specific configuration.
|
232
|
+
---
|
233
|
+
from mixpeek.client import Mixpeek
|
234
|
+
|
235
|
+
client = Mixpeek(
|
236
|
+
authorization="YOUR_AUTHORIZATION",
|
237
|
+
index_id="YOUR_INDEX_ID",
|
238
|
+
api_key="YOUR_API_KEY",
|
239
|
+
)
|
240
|
+
client.workflows.convert_code_to_string(
|
241
|
+
request="string",
|
242
|
+
)
|
243
|
+
"""
|
244
|
+
_response = self._client_wrapper.httpx_client.request(
|
245
|
+
"POST",
|
246
|
+
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "workflows/code"),
|
247
|
+
params=jsonable_encoder(
|
248
|
+
request_options.get("additional_query_parameters") if request_options is not None else None
|
249
|
+
),
|
250
|
+
json=jsonable_encoder(request),
|
251
|
+
headers=jsonable_encoder(
|
252
|
+
remove_none_from_dict(
|
253
|
+
{
|
254
|
+
**self._client_wrapper.get_headers(),
|
255
|
+
**(request_options.get("additional_headers", {}) if request_options is not None else {}),
|
256
|
+
}
|
257
|
+
)
|
258
|
+
),
|
259
|
+
timeout=request_options.get("timeout_in_seconds")
|
260
|
+
if request_options is not None and request_options.get("timeout_in_seconds") is not None
|
261
|
+
else self._client_wrapper.get_timeout(),
|
262
|
+
retries=0,
|
263
|
+
max_retries=request_options.get("max_retries") if request_options is not None else 0, # type: ignore
|
264
|
+
)
|
265
|
+
if 200 <= _response.status_code < 300:
|
266
|
+
return pydantic.parse_obj_as(WorkflowResponse, _response.json()) # type: ignore
|
267
|
+
if _response.status_code == 400:
|
268
|
+
raise BadRequestError(pydantic.parse_obj_as(ErrorResponse, _response.json())) # type: ignore
|
269
|
+
if _response.status_code == 401:
|
270
|
+
raise UnauthorizedError(pydantic.parse_obj_as(ErrorResponse, _response.json())) # type: ignore
|
271
|
+
if _response.status_code == 403:
|
272
|
+
raise ForbiddenError(pydantic.parse_obj_as(ErrorResponse, _response.json())) # type: ignore
|
273
|
+
if _response.status_code == 404:
|
274
|
+
raise NotFoundError(pydantic.parse_obj_as(ErrorResponse, _response.json())) # type: ignore
|
275
|
+
if _response.status_code == 422:
|
276
|
+
raise UnprocessableEntityError(pydantic.parse_obj_as(HttpValidationError, _response.json())) # type: ignore
|
277
|
+
if _response.status_code == 500:
|
278
|
+
raise InternalServerError(pydantic.parse_obj_as(ErrorResponse, _response.json())) # type: ignore
|
279
|
+
try:
|
280
|
+
_response_json = _response.json()
|
281
|
+
except JSONDecodeError:
|
282
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
283
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
284
|
+
|
226
285
|
|
227
286
|
class AsyncWorkflowsClient:
|
228
287
|
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
@@ -265,7 +324,6 @@ class AsyncWorkflowsClient:
|
|
265
324
|
authorization="YOUR_AUTHORIZATION",
|
266
325
|
index_id="YOUR_INDEX_ID",
|
267
326
|
api_key="YOUR_API_KEY",
|
268
|
-
base_url="https://yourhost.com/path/to/api",
|
269
327
|
)
|
270
328
|
await client.workflows.create(
|
271
329
|
code_as_string="code_as_string",
|
@@ -353,7 +411,6 @@ class AsyncWorkflowsClient:
|
|
353
411
|
authorization="YOUR_AUTHORIZATION",
|
354
412
|
index_id="YOUR_INDEX_ID",
|
355
413
|
api_key="YOUR_API_KEY",
|
356
|
-
base_url="https://yourhost.com/path/to/api",
|
357
414
|
)
|
358
415
|
await client.workflows.invoke(
|
359
416
|
workflow_id="workflow_id",
|
@@ -416,3 +473,64 @@ class AsyncWorkflowsClient:
|
|
416
473
|
except JSONDecodeError:
|
417
474
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
418
475
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
476
|
+
|
477
|
+
async def convert_code_to_string(
|
478
|
+
self, *, request: str, request_options: typing.Optional[RequestOptions] = None
|
479
|
+
) -> WorkflowResponse:
|
480
|
+
"""
|
481
|
+
Parameters:
|
482
|
+
- request: str.
|
483
|
+
|
484
|
+
- request_options: typing.Optional[RequestOptions]. Request-specific configuration.
|
485
|
+
---
|
486
|
+
from mixpeek.client import AsyncMixpeek
|
487
|
+
|
488
|
+
client = AsyncMixpeek(
|
489
|
+
authorization="YOUR_AUTHORIZATION",
|
490
|
+
index_id="YOUR_INDEX_ID",
|
491
|
+
api_key="YOUR_API_KEY",
|
492
|
+
)
|
493
|
+
await client.workflows.convert_code_to_string(
|
494
|
+
request="string",
|
495
|
+
)
|
496
|
+
"""
|
497
|
+
_response = await self._client_wrapper.httpx_client.request(
|
498
|
+
"POST",
|
499
|
+
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "workflows/code"),
|
500
|
+
params=jsonable_encoder(
|
501
|
+
request_options.get("additional_query_parameters") if request_options is not None else None
|
502
|
+
),
|
503
|
+
json=jsonable_encoder(request),
|
504
|
+
headers=jsonable_encoder(
|
505
|
+
remove_none_from_dict(
|
506
|
+
{
|
507
|
+
**self._client_wrapper.get_headers(),
|
508
|
+
**(request_options.get("additional_headers", {}) if request_options is not None else {}),
|
509
|
+
}
|
510
|
+
)
|
511
|
+
),
|
512
|
+
timeout=request_options.get("timeout_in_seconds")
|
513
|
+
if request_options is not None and request_options.get("timeout_in_seconds") is not None
|
514
|
+
else self._client_wrapper.get_timeout(),
|
515
|
+
retries=0,
|
516
|
+
max_retries=request_options.get("max_retries") if request_options is not None else 0, # type: ignore
|
517
|
+
)
|
518
|
+
if 200 <= _response.status_code < 300:
|
519
|
+
return pydantic.parse_obj_as(WorkflowResponse, _response.json()) # type: ignore
|
520
|
+
if _response.status_code == 400:
|
521
|
+
raise BadRequestError(pydantic.parse_obj_as(ErrorResponse, _response.json())) # type: ignore
|
522
|
+
if _response.status_code == 401:
|
523
|
+
raise UnauthorizedError(pydantic.parse_obj_as(ErrorResponse, _response.json())) # type: ignore
|
524
|
+
if _response.status_code == 403:
|
525
|
+
raise ForbiddenError(pydantic.parse_obj_as(ErrorResponse, _response.json())) # type: ignore
|
526
|
+
if _response.status_code == 404:
|
527
|
+
raise NotFoundError(pydantic.parse_obj_as(ErrorResponse, _response.json())) # type: ignore
|
528
|
+
if _response.status_code == 422:
|
529
|
+
raise UnprocessableEntityError(pydantic.parse_obj_as(HttpValidationError, _response.json())) # type: ignore
|
530
|
+
if _response.status_code == 500:
|
531
|
+
raise InternalServerError(pydantic.parse_obj_as(ErrorResponse, _response.json())) # type: ignore
|
532
|
+
try:
|
533
|
+
_response_json = _response.json()
|
534
|
+
except JSONDecodeError:
|
535
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
536
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
@@ -1,15 +1,18 @@
|
|
1
|
-
mixpeek/__init__.py,sha256=
|
2
|
-
mixpeek/base_client.py,sha256=
|
1
|
+
mixpeek/__init__.py,sha256=lUhNeNcGm17ibZbyMRdI-mRniA8Ez4Kl3te5eQfL6T8,2000
|
2
|
+
mixpeek/base_client.py,sha256=wl8CUr8zcD2DWTQ45MIiJ3aTbuEbkW4nwMRxLnwl1e0,7338
|
3
3
|
mixpeek/client.py,sha256=4FB09MxWYPm7ci7VBsuSYQvp-Fj6XWVaMmbcGg_J19o,2064
|
4
4
|
mixpeek/core/__init__.py,sha256=RWfyDqkzWsf8e3VGc3NV60MovfJbg5XWzNFGB2DZ0hA,790
|
5
5
|
mixpeek/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
6
|
-
mixpeek/core/client_wrapper.py,sha256=
|
6
|
+
mixpeek/core/client_wrapper.py,sha256=n0jL710h_e-Eheb8l0f5uGKnMI2xQzWJv7NAAAR2L-A,2622
|
7
7
|
mixpeek/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
8
8
|
mixpeek/core/file.py,sha256=sy1RUGZ3aJYuw998bZytxxo6QdgKmlnlgBaMvwEKCGg,1480
|
9
9
|
mixpeek/core/http_client.py,sha256=5ok6hqgZDJhg57EHvMnr0BBaHdG50QxFPKaCZ9aVWTc,5059
|
10
10
|
mixpeek/core/jsonable_encoder.py,sha256=IEhJedBpobt0zOfjW0pcH_sptQH3_frWtRF_s6i4HTM,3799
|
11
11
|
mixpeek/core/remove_none_from_dict.py,sha256=8m91FC3YuVem0Gm9_sXhJ2tGvP33owJJdrqCLEdowGw,330
|
12
12
|
mixpeek/core/request_options.py,sha256=-3QoOMMHI2exIyHH6Q2MD7rpo_6w-i6zMAy0nqWTN8c,1420
|
13
|
+
mixpeek/embed/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
14
|
+
mixpeek/embed/client.py,sha256=haXcK4uwxnelQEu_CKExZTxX8axjIoHESdENm711xWk,16086
|
15
|
+
mixpeek/environment.py,sha256=-muYBZQwCYNISO0ic3Kkn_hPqfrB_VpOv_RpBoCKA6Q,156
|
13
16
|
mixpeek/errors/__init__.py,sha256=whc3hN4Au19m_MxwQGjxUEfmSPyHqjmvOS0ESc0S7Qk,534
|
14
17
|
mixpeek/errors/bad_request_error.py,sha256=xHpPeLG8lM_kLR1QpOHI4xOuWVFEOgQfQi37kOcB0wc,285
|
15
18
|
mixpeek/errors/forbidden_error.py,sha256=CYoHSeucV5tjDJUTj19Dp6EoJZBvRswNAT9YhITApfE,284
|
@@ -17,30 +20,30 @@ mixpeek/errors/internal_server_error.py,sha256=fMmyOAEwUto7X9Mp65KbL0XkvepZsmT6p
|
|
17
20
|
mixpeek/errors/not_found_error.py,sha256=y5TwirUAu_TWO2d1Poh2ALf1IHj2v728z6AxrGexSVg,283
|
18
21
|
mixpeek/errors/unauthorized_error.py,sha256=nH-QOnS5KLta5PB4I-UoETY4i_Uz3-mF9xCwScE1JOE,287
|
19
22
|
mixpeek/errors/unprocessable_entity_error.py,sha256=FvR7XPlV3Xx5nu8HNlmLhBRdk4so_gCHjYT5PyZe6sM,313
|
23
|
+
mixpeek/extract/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
24
|
+
mixpeek/extract/client.py,sha256=qaslz87C5K3kh1CVL9VTuhgWgOKVWk8ctavYpkrqcDI,15158
|
20
25
|
mixpeek/generators/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
21
|
-
mixpeek/generators/client.py,sha256=
|
26
|
+
mixpeek/generators/client.py,sha256=SzB9kLokmXDOzPAfeQIbmrcMtXYDoJ4LqqGAY8ELkzo,10251
|
22
27
|
mixpeek/parse/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
23
|
-
mixpeek/parse/client.py,sha256=
|
28
|
+
mixpeek/parse/client.py,sha256=Zav85ROBG9jmhi6JKwy0FAcpvddGlwwE4uDv4dZ7o4c,4717
|
24
29
|
mixpeek/parse_client.py,sha256=yRhssnPCsjSKnS0LknhiYicAOuRcRnRVcn7iWaswQBU,279
|
25
30
|
mixpeek/pipelines/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
26
|
-
mixpeek/pipelines/client.py,sha256=
|
31
|
+
mixpeek/pipelines/client.py,sha256=giu5j2RBt4XbWWI4n9TBUxRUOEmsp1iDPSLU37utayg,22360
|
27
32
|
mixpeek/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
28
33
|
mixpeek/storage/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
29
|
-
mixpeek/storage/client.py,sha256=
|
30
|
-
mixpeek/types/__init__.py,sha256
|
34
|
+
mixpeek/storage/client.py,sha256=Ug_1zg0KF3lMT2JIipiryHB3dikitt7-GIVxrzdKQow,12609
|
35
|
+
mixpeek/types/__init__.py,sha256=frwgYFJuSzwu6UyATG--EvTATm81whup82khta72lFA,2060
|
36
|
+
mixpeek/types/api_key.py,sha256=DnZf9eer296hvfC5PK4Hcrg7-LywKA_fSn68aaMzf5U,1013
|
31
37
|
mixpeek/types/audio_params.py,sha256=3KowuNn3ClYTXWsFvKHd8XrR1G8hmydusRzQQ6cAp5I,939
|
32
|
-
mixpeek/types/configs_request.py,sha256=tqF_xDoyBREiOw5snNxiF5bSy83nbthWqmhLWlKedTc,1011
|
33
38
|
mixpeek/types/configs_response.py,sha256=_gH6KyKLlC6CZcJeJYFO0ecr7QLSpmgKJqlqxiLcXCQ,959
|
34
|
-
mixpeek/types/connection.py,sha256=
|
39
|
+
mixpeek/types/connection.py,sha256=b2dw5xagRgTuGjBB_NSW0JsVeSWGiFwkM6-E3jQc9IA,1144
|
35
40
|
mixpeek/types/connection_engine.py,sha256=Gy43bjrZTkfiYtQQZGZFvJwHvHS0PxhZCf8l-LRrbRE,168
|
36
41
|
mixpeek/types/csv_params.py,sha256=Adc3qwAOGpvRRAu3iV6ObN5EbLPnzmsj8IxTyDc0ZCM,938
|
37
|
-
mixpeek/types/
|
38
|
-
mixpeek/types/embedding_request.py,sha256=kmSrIu73ZryzXaCGeXP6qG99mJdVrBhThRpkxM8S0WA,1028
|
42
|
+
mixpeek/types/destination.py,sha256=bylFUTAdnonbUw_V1wBF4cNEAsyzkkgwa3lY9U029Ko,945
|
39
43
|
mixpeek/types/embedding_response.py,sha256=gQCNVHNVqYii4WLZisEbjkOllSaTwz3PxOhCBOe808Y,955
|
40
44
|
mixpeek/types/error_message.py,sha256=8Wh_GdH3jOviv_FYLyzQH20qbFTSzKqqjdZlOe2tlbE,905
|
41
45
|
mixpeek/types/error_response.py,sha256=SNectmi0OaoeWGAUvO7D0h40rf7jIEh3SLUtKxXs3ms,995
|
42
|
-
mixpeek/types/
|
43
|
-
mixpeek/types/field_type.py,sha256=bBXODNn4-VjjTt0U7AC9uj8XCDItYQmFQY9ZO76NmYY,153
|
46
|
+
mixpeek/types/field_type.py,sha256=ihpE7AL8NwS8mZ9ItVeK26KBmrIa0tLbCag96Pk4dqE,160
|
44
47
|
mixpeek/types/generation_response.py,sha256=A07sNXlAY1sY3Cl7zajf4zZaZbdTPFpElg1oDf636P0,1117
|
45
48
|
mixpeek/types/html_params.py,sha256=5wylzm01kSNgIgMFMGmgj93LCJpubrX0gp2NuKxjVYE,949
|
46
49
|
mixpeek/types/http_validation_error.py,sha256=C6i5Fm74cECbzWUDvUDgAO9g9ryIFeKesoeqTUNakJc,1010
|
@@ -48,24 +51,28 @@ mixpeek/types/image_params.py,sha256=zdeXR_-EGw_7MKOF1D2zilRFiYJWohDnLVTo1VwLa7U
|
|
48
51
|
mixpeek/types/message.py,sha256=21yebcf5X18U92khfedI-Gl02MkaBzDw4guLNy49bUk,918
|
49
52
|
mixpeek/types/metadata.py,sha256=YA7JZx_s7ChSqBA5Ay-zt8cGszDGmQv8PElYzi5N02E,1147
|
50
53
|
mixpeek/types/modality.py,sha256=GcEBlbYKdNs0qdyKnmrbgoDHyC1WYimv5PFKUjuI2jc,170
|
51
|
-
mixpeek/types/model.py,sha256=
|
54
|
+
mixpeek/types/model.py,sha256=mBXXY-K54nqGVqt7SnzAyZeDdoU7wVMzGrhM8XTAmx4,948
|
55
|
+
mixpeek/types/models.py,sha256=RnTOybDVTkVIWrZRY18cULyqjGGTWE2ZJuYT0lYv5lo,173
|
52
56
|
mixpeek/types/pdf_params.py,sha256=9RF3S2uuE4oyaoPlRfI52phqWyD8ViOz6tl25HXBlek,1646
|
53
|
-
mixpeek/types/pipeline_response.py,sha256=YiouqRl8QpsVGK-8pbW5_LAZGKwihCrdfO5K6wqTtQo,1292
|
54
57
|
mixpeek/types/ppt_params.py,sha256=FS9BjjiZStDhGtaImv8uz9lhQG6r6a9gBiUJsPzhca0,888
|
55
58
|
mixpeek/types/pptx_params.py,sha256=W2hrSVvYjRxDrClFRoZKmM0dSb0YbCOjjT5dBiJMkZw,889
|
56
59
|
mixpeek/types/settings.py,sha256=F_KpO1F5_yHyRXQr7SPn7QIjVa05ViiyXShlB_ODKsI,1223
|
57
|
-
mixpeek/types/
|
60
|
+
mixpeek/types/source.py,sha256=Dq0CGXa3tyfe01L-d4si02j6YavQ3PQj9N_KkYuMsCk,998
|
61
|
+
mixpeek/types/source_destination_mapping.py,sha256=2CTDTYcPbxUco8m_9ebbZ4xQ2_piylkRQeO5fFvdDkM,1041
|
58
62
|
mixpeek/types/txt_params.py,sha256=nongbYA0BWr4kHvNBDdA6yoNkg6TXTsP2AG3tstyLd8,888
|
63
|
+
mixpeek/types/user.py,sha256=bZ4ROKzi-5c8pfHQ-nvM445m_d3p9DK-OjTbGhXY1-w,1249
|
59
64
|
mixpeek/types/validation_error.py,sha256=dy6Ev1xmAsX_Wcck5AX8XvcVNP5xA-Lwlt7FTceiYqs,1029
|
60
65
|
mixpeek/types/validation_error_loc_item.py,sha256=LAtjCHIllWRBFXvAZ5QZpp7CPXjdtN9EB7HrLVo6EP0,128
|
61
66
|
mixpeek/types/video_params.py,sha256=SJlONUkncIVzFz37Q8iNNznYd10hdLgrMnRmxT5yz5E,890
|
62
67
|
mixpeek/types/workflow_response.py,sha256=t3fhcd780TUiCbFmX-2hRQY9oajjdE6g8AOy-lVS95A,1059
|
63
68
|
mixpeek/types/workflow_settings.py,sha256=1YXWRIJUxra85keIOglvJra62rItRyuH8PYcG3pgRvE,1003
|
64
69
|
mixpeek/types/xlsx_params.py,sha256=SXGQe3KhevNEdxjqIxxHmmuBrrk4IBetEcFaHq-_zQA,939
|
70
|
+
mixpeek/users/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
71
|
+
mixpeek/users/client.py,sha256=Fv01PY1J6mbuaCJPdKr97eONPcmLqzT6q9kuyNfjlSQ,14911
|
65
72
|
mixpeek/version.py,sha256=DfAuS0W7koTv3v8TZFxY1W5LvfaqOvG96P6Kc5fNnU0,75
|
66
73
|
mixpeek/workflows/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
67
|
-
mixpeek/workflows/client.py,sha256=
|
68
|
-
mixpeek-0.6.
|
69
|
-
mixpeek-0.6.
|
70
|
-
mixpeek-0.6.
|
71
|
-
mixpeek-0.6.
|
74
|
+
mixpeek/workflows/client.py,sha256=lDfSwYGPSMx9enKzPMKObdL93pFn6ByZH04F83cz9jA,24370
|
75
|
+
mixpeek-0.6.2.dist-info/LICENSE,sha256=4Wv5VxfDWkCcIouCfq1NrLwPm24Z83PE8Nbi3KyoEeg,1064
|
76
|
+
mixpeek-0.6.2.dist-info/METADATA,sha256=YsLQiIOSjceSER6cNNRlJXFlpYQ78bCLOnPqWhoUWUg,3985
|
77
|
+
mixpeek-0.6.2.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
78
|
+
mixpeek-0.6.2.dist-info/RECORD,,
|
@@ -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 .modality import Modality
|
8
|
-
|
9
|
-
try:
|
10
|
-
import pydantic.v1 as pydantic # type: ignore
|
11
|
-
except ImportError:
|
12
|
-
import pydantic # type: ignore
|
13
|
-
|
14
|
-
|
15
|
-
class EmbeddingRequest(pydantic.BaseModel):
|
16
|
-
input: str
|
17
|
-
modality: typing.Optional[Modality] = None
|
18
|
-
model: typing.Optional[str] = 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.Extra.allow
|
32
|
-
json_encoders = {dt.datetime: serialize_datetime}
|
File without changes
|
File without changes
|