chunkr-ai 0.1.0a7__py3-none-any.whl → 0.1.0a9__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.
- chunkr_ai/__init__.py +3 -1
- chunkr_ai/_base_client.py +12 -12
- chunkr_ai/_client.py +8 -8
- chunkr_ai/_compat.py +48 -48
- chunkr_ai/_models.py +50 -44
- chunkr_ai/_qs.py +7 -7
- chunkr_ai/_types.py +18 -11
- chunkr_ai/_utils/__init__.py +8 -2
- chunkr_ai/_utils/_compat.py +45 -0
- chunkr_ai/_utils/_datetime_parse.py +136 -0
- chunkr_ai/_utils/_transform.py +13 -3
- chunkr_ai/_utils/_typing.py +1 -1
- chunkr_ai/_utils/_utils.py +4 -5
- chunkr_ai/_version.py +1 -1
- chunkr_ai/resources/files.py +29 -29
- chunkr_ai/resources/health.py +3 -3
- chunkr_ai/resources/tasks/extract.py +21 -37
- chunkr_ai/resources/tasks/parse.py +29 -54
- chunkr_ai/resources/tasks/tasks.py +35 -51
- chunkr_ai/resources/webhooks.py +3 -3
- chunkr_ai/types/__init__.py +0 -2
- chunkr_ai/types/extract_output_response.py +45 -2
- chunkr_ai/types/file_info.py +3 -0
- chunkr_ai/types/ocr_result.py +6 -6
- chunkr_ai/types/parse_configuration.py +0 -4
- chunkr_ai/types/parse_configuration_param.py +0 -4
- chunkr_ai/types/segment.py +8 -5
- chunkr_ai/types/segment_processing.py +92 -2
- chunkr_ai/types/segment_processing_param.py +92 -2
- chunkr_ai/types/task_get_params.py +0 -3
- chunkr_ai/types/tasks/extract_create_response.py +0 -147
- chunkr_ai/types/tasks/extract_get_params.py +0 -3
- chunkr_ai/types/tasks/extract_get_response.py +0 -147
- chunkr_ai/types/tasks/parse_create_params.py +0 -4
- chunkr_ai/types/tasks/parse_get_params.py +0 -3
- chunkr_ai/types/version_info.py +1 -1
- {chunkr_ai-0.1.0a7.dist-info → chunkr_ai-0.1.0a9.dist-info}/METADATA +1 -1
- {chunkr_ai-0.1.0a7.dist-info → chunkr_ai-0.1.0a9.dist-info}/RECORD +40 -40
- chunkr_ai/types/llm_processing.py +0 -36
- chunkr_ai/types/llm_processing_param.py +0 -36
- {chunkr_ai-0.1.0a7.dist-info → chunkr_ai-0.1.0a9.dist-info}/WHEEL +0 -0
- {chunkr_ai-0.1.0a7.dist-info → chunkr_ai-0.1.0a9.dist-info}/licenses/LICENSE +0 -0
@@ -5,7 +5,6 @@ from __future__ import annotations
|
|
5
5
|
from typing import Optional
|
6
6
|
from typing_extensions import Literal, Required, TypedDict
|
7
7
|
|
8
|
-
from ..llm_processing_param import LlmProcessingParam
|
9
8
|
from ..chunk_processing_param import ChunkProcessingParam
|
10
9
|
from ..segment_processing_param import SegmentProcessingParam
|
11
10
|
|
@@ -42,9 +41,6 @@ class ParseCreateParams(TypedDict, total=False):
|
|
42
41
|
file_name: Optional[str]
|
43
42
|
"""The name of the file to be parsed. If not set a name will be generated."""
|
44
43
|
|
45
|
-
llm_processing: LlmProcessingParam
|
46
|
-
"""Controls the LLM used for the task."""
|
47
|
-
|
48
44
|
ocr_strategy: Literal["All", "Auto"]
|
49
45
|
"""Controls the Optical Character Recognition (OCR) strategy.
|
50
46
|
|
chunkr_ai/types/version_info.py
CHANGED
@@ -20,7 +20,7 @@ class ClientVersionGeneratedSDK(BaseModel):
|
|
20
20
|
"""Version of the auto-generated SDK"""
|
21
21
|
|
22
22
|
|
23
|
-
ClientVersion: TypeAlias = Union[Literal["Legacy"], ClientVersionManualSDK, ClientVersionGeneratedSDK]
|
23
|
+
ClientVersion: TypeAlias = Union[Literal["Legacy", "Unspecified"], ClientVersionManualSDK, ClientVersionGeneratedSDK]
|
24
24
|
|
25
25
|
|
26
26
|
class VersionInfo(BaseModel):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: chunkr-ai
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.0a9
|
4
4
|
Summary: The official Python library for the chunkr API
|
5
5
|
Project-URL: Homepage, https://github.com/lumina-ai-inc/chunkr-python
|
6
6
|
Project-URL: Repository, https://github.com/lumina-ai-inc/chunkr-python
|
@@ -1,39 +1,41 @@
|
|
1
|
-
chunkr_ai/__init__.py,sha256=
|
2
|
-
chunkr_ai/_base_client.py,sha256=
|
3
|
-
chunkr_ai/_client.py,sha256=
|
4
|
-
chunkr_ai/_compat.py,sha256=
|
1
|
+
chunkr_ai/__init__.py,sha256=_7WvnnJwSRX6_QiN4dPEmxkBr8LIkclkM0NOVBM1EZ8,2697
|
2
|
+
chunkr_ai/_base_client.py,sha256=qxszPQwryhCvneriz2wiMfMpywtw2gLszQuSYNxfW54,67050
|
3
|
+
chunkr_ai/_client.py,sha256=BOZnmLH0jNIdg7iuaJka7j6JFtp4cRci0OnOCA5qGXA,17314
|
4
|
+
chunkr_ai/_compat.py,sha256=DQBVORjFb33zch24jzkhM14msvnzY7mmSmgDLaVFUM8,6562
|
5
5
|
chunkr_ai/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
|
6
6
|
chunkr_ai/_exceptions.py,sha256=haF-MOTaZgqXRgzvN8v9NuJ5KHfdvCclJUephO3pTcs,3274
|
7
7
|
chunkr_ai/_files.py,sha256=SUFtic_gwSzbvhLtMdQ7TBem8szrqZE2nZFFMRa0KTw,3619
|
8
|
-
chunkr_ai/_models.py,sha256=
|
9
|
-
chunkr_ai/_qs.py,sha256=
|
8
|
+
chunkr_ai/_models.py,sha256=lKnskYPONAWDvWo8tmbbVk7HmG7UOsI0Nve0vSMmkRc,30452
|
9
|
+
chunkr_ai/_qs.py,sha256=craIKyvPktJ94cvf9zn8j8ekG9dWJzhWv0ob34lIOv4,4828
|
10
10
|
chunkr_ai/_resource.py,sha256=f5tiwjxcKdbeMor8idoHtMFTUhqD9yc2xXtq5rqeLLk,1100
|
11
11
|
chunkr_ai/_response.py,sha256=xXNpF53hiYARmAW7npKuxQ5UHAEjgAzm7ME_L3eIstY,28800
|
12
12
|
chunkr_ai/_streaming.py,sha256=ZmyrVWk7-AWkLAATR55WgNxnyFzYmaqJt2LthA_PTqQ,10100
|
13
|
-
chunkr_ai/_types.py,sha256=
|
14
|
-
chunkr_ai/_version.py,sha256=
|
13
|
+
chunkr_ai/_types.py,sha256=nzD_EEP9CVutLcSeuKLO6Mpn5cd_R0Vo0dEM7AWa7yY,7239
|
14
|
+
chunkr_ai/_version.py,sha256=p6DXKQHQmLj6OUJeVjwsbhoVQTNnIi0OBQ_nus38vdo,169
|
15
15
|
chunkr_ai/pagination.py,sha256=bT-ErcJ80YlKBV6tWq2s9uqg-wv7o66SKe_AgUAGrKc,3533
|
16
16
|
chunkr_ai/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
17
|
-
chunkr_ai/_utils/__init__.py,sha256=
|
17
|
+
chunkr_ai/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
|
18
|
+
chunkr_ai/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
|
19
|
+
chunkr_ai/_utils/_datetime_parse.py,sha256=bABTs0Bc6rabdFvnIwXjEhWL15TcRgWZ_6XGTqN8xUk,4204
|
18
20
|
chunkr_ai/_utils/_logs.py,sha256=ylZvP2JTPNlFCbxYajpsnWkA253kDFgnFYDWWuvgf_Q,780
|
19
21
|
chunkr_ai/_utils/_proxy.py,sha256=aglnj2yBTDyGX9Akk2crZHrl10oqRmceUy2Zp008XEs,1975
|
20
22
|
chunkr_ai/_utils/_reflection.py,sha256=ZmGkIgT_PuwedyNBrrKGbxoWtkpytJNU1uU4QHnmEMU,1364
|
21
23
|
chunkr_ai/_utils/_resources_proxy.py,sha256=3KbSCApjaz7x_frFAxJe9ltY-dIJBQUVnIhR2GvVRY8,604
|
22
24
|
chunkr_ai/_utils/_streams.py,sha256=SMC90diFFecpEg_zgDRVbdR3hSEIgVVij4taD-noMLM,289
|
23
25
|
chunkr_ai/_utils/_sync.py,sha256=TpGLrrhRNWTJtODNE6Fup3_k7zrWm1j2RlirzBwre-0,2862
|
24
|
-
chunkr_ai/_utils/_transform.py,sha256=
|
25
|
-
chunkr_ai/_utils/_typing.py,sha256=
|
26
|
-
chunkr_ai/_utils/_utils.py,sha256=
|
26
|
+
chunkr_ai/_utils/_transform.py,sha256=NjCzmnfqYrsAikUHQig6N9QfuTVbKipuP3ur9mcNF-E,15951
|
27
|
+
chunkr_ai/_utils/_typing.py,sha256=N_5PPuFNsaygbtA_npZd98SVN1LQQvFTKL6bkWPBZGU,4786
|
28
|
+
chunkr_ai/_utils/_utils.py,sha256=0dDqauUbVZEXV0NVl7Bwu904Wwo5eyFCZpQThhFNhyA,12253
|
27
29
|
chunkr_ai/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
28
30
|
chunkr_ai/resources/__init__.py,sha256=AbJ_7zmjJI5AxDXvFbXeQU_4jugnj7MRw7A20op2i1c,1902
|
29
|
-
chunkr_ai/resources/files.py,sha256=
|
30
|
-
chunkr_ai/resources/health.py,sha256=
|
31
|
-
chunkr_ai/resources/webhooks.py,sha256=
|
31
|
+
chunkr_ai/resources/files.py,sha256=yA8QO-f3LgFgnCeHkRot81SZ9dDfITOPesmfuLxk-tg,27128
|
32
|
+
chunkr_ai/resources/health.py,sha256=sLA4PSAf-4JK1Lrqb0TApQ0Hc5Q8fZzbKQXzA3bNEdQ,4965
|
33
|
+
chunkr_ai/resources/webhooks.py,sha256=RhteI3ahE2rGSDEMUZH0HDBTOQqWS8sZ5D00ErKWnpE,7006
|
32
34
|
chunkr_ai/resources/tasks/__init__.py,sha256=wDCnwtnpTfiaLg7NBxoLZYh2TtOw44_DSqtJa_TjmXU,1439
|
33
|
-
chunkr_ai/resources/tasks/extract.py,sha256=
|
34
|
-
chunkr_ai/resources/tasks/parse.py,sha256=
|
35
|
-
chunkr_ai/resources/tasks/tasks.py,sha256=
|
36
|
-
chunkr_ai/types/__init__.py,sha256=
|
35
|
+
chunkr_ai/resources/tasks/extract.py,sha256=LQJTmYItqUu60G0hYfdw_nyMLARyxqzjVO6ETIn8hDo,14980
|
36
|
+
chunkr_ai/resources/tasks/parse.py,sha256=hbFEFu-tU6RWktA0Tv6KP0HyeLdS62kO4UoQfbSsAJc,18963
|
37
|
+
chunkr_ai/resources/tasks/tasks.py,sha256=W9bXpfgE56MkM5buBYg5-dcPYGFo_CzgVkr1kOOpXtQ,23582
|
38
|
+
chunkr_ai/types/__init__.py,sha256=gO4mkpo_tYfe1PGSc0Uzlc8rZr9PTmHshGZFzmG98mM,2365
|
37
39
|
chunkr_ai/types/bounding_box.py,sha256=JDZlhJJl4lg6RYGf8VpC46soQfQ10-K8YwHHA6XBFkM,431
|
38
40
|
chunkr_ai/types/cell.py,sha256=D-S_XAzmOJs0Lo2RgY7T3h_ChdhSrRrI8IN4qo2sGOU,1143
|
39
41
|
chunkr_ai/types/cell_style.py,sha256=VqSz6pZ7rjmHYrq_S63IOFPaWvXjWhNUIGc3V4UlF6U,873
|
@@ -42,10 +44,10 @@ chunkr_ai/types/chunk_processing.py,sha256=1yV2A52MGNqs_F_RLMCzBuKqFRrtTzaM0tGh-
|
|
42
44
|
chunkr_ai/types/chunk_processing_param.py,sha256=MBl42a2r5xczGe5ST2IJQB1a4DjAajw4ZQMTxzDC4A8,1294
|
43
45
|
chunkr_ai/types/delete.py,sha256=EU78fjXpc8-fqvgcFTuJ0ejs5u_UjbhOz5frkeUHvxY,225
|
44
46
|
chunkr_ai/types/extract_configuration.py,sha256=OCs3SnuS8qXWB926o8Gv1Y2AuNszplGmPHBT9-iMR3g,691
|
45
|
-
chunkr_ai/types/extract_output_response.py,sha256=
|
47
|
+
chunkr_ai/types/extract_output_response.py,sha256=kfkHbeEVl3x3t-7u4h4Cd4wC5KbrOjz4-joP5RV1WyA,1272
|
46
48
|
chunkr_ai/types/file.py,sha256=kOxR0g-3A-qOxz2cjuTcq0wFMqPoph9uQuLYQ56zb-c,718
|
47
49
|
chunkr_ai/types/file_create_params.py,sha256=_1Dr3FlO9BOv6gzhCN4g46_otCBqEdLe0mnxpdaRPaE,468
|
48
|
-
chunkr_ai/types/file_info.py,sha256=
|
50
|
+
chunkr_ai/types/file_info.py,sha256=y5kVR3mPeiwsPBMc3IBAigQbkVRpGQN09IpDPdvCe7E,611
|
49
51
|
chunkr_ai/types/file_list_params.py,sha256=oJGTf88aAxBhNfmQDbxGT63b95HdSbMXUubKjXM22_U,822
|
50
52
|
chunkr_ai/types/file_url.py,sha256=L434WnOXkNmt59dJiaAgT1_3pN3BIsxm2q14zHQK6xY,365
|
51
53
|
chunkr_ai/types/file_url_params.py,sha256=ZHfKiy_6B25StdDemulavGcsPggNNMKLWf6KN7xfPTY,413
|
@@ -53,34 +55,32 @@ chunkr_ai/types/files_list_response.py,sha256=ggSRWhTzZWjcDXxStyCzrYICXXB5TqnL2j
|
|
53
55
|
chunkr_ai/types/generation_config.py,sha256=9gfwdd228x29jC1egxq3IreKwgkGZCjSWHCXIkzQwqE,958
|
54
56
|
chunkr_ai/types/generation_config_param.py,sha256=9E0Mhee-NInwOzjXmq3gpd8G5drsPBpzFs0AA2ywTc0,960
|
55
57
|
chunkr_ai/types/health_check_response.py,sha256=6Zn5YYHCQf2RgMjDlf39mtiTPqfaBfC9Vv599U_rKCI,200
|
56
|
-
chunkr_ai/types/
|
57
|
-
chunkr_ai/types/llm_processing_param.py,sha256=CSnW4-5-32Pzoo-G7G3p_NUvljtCkNguj1dHVc2Y4cA,1135
|
58
|
-
chunkr_ai/types/ocr_result.py,sha256=EdIvpuccQ_8A8ml7yVCOEOfBoewgwTBzVJZ_les9udM,740
|
58
|
+
chunkr_ai/types/ocr_result.py,sha256=W3piXLotfmZ40FJrJYMuS72shaVYLsKeN6jCf26uZGI,743
|
59
59
|
chunkr_ai/types/page.py,sha256=ADdGJisS-GxBD_wdu3q1pmikgJ7twFsP0choDEXw9ro,690
|
60
|
-
chunkr_ai/types/parse_configuration.py,sha256=
|
61
|
-
chunkr_ai/types/parse_configuration_param.py,sha256=
|
60
|
+
chunkr_ai/types/parse_configuration.py,sha256=WcUUk7ai0sHTeWUQYHyDn1ZjYqT7dzLqRWjGx5zFfsg,2427
|
61
|
+
chunkr_ai/types/parse_configuration_param.py,sha256=dl884XkCnloSS9YMk8UnUm7Z963HiAzNy5qgtCSIPH8,2405
|
62
62
|
chunkr_ai/types/parse_output_response.py,sha256=KfRFY5PnchJfEWr4jy3Dd-3AWeImGE5BP_NMFC5I6_c,947
|
63
|
-
chunkr_ai/types/segment.py,sha256=
|
64
|
-
chunkr_ai/types/segment_processing.py,sha256=
|
65
|
-
chunkr_ai/types/segment_processing_param.py,sha256=
|
63
|
+
chunkr_ai/types/segment.py,sha256=KsGNynGQq7s55EHuPLY7glmvXunv2Wszhx5FhkhkN5U,3093
|
64
|
+
chunkr_ai/types/segment_processing.py,sha256=uyNbxp7DsgTgBHoS9ELoyW8j-aTBbOshxYrb-TQ990E,17049
|
65
|
+
chunkr_ai/types/segment_processing_param.py,sha256=a1Zk8NiaeFNSbHw5P8Usq-17mqENuZdCOQCn8nNN0o0,17199
|
66
66
|
chunkr_ai/types/task_extract_updated_webhook_event.py,sha256=YYHDQEs4wg2bDgGXgHUgX_CwSLFxePJZrT5OV4J6Mhk,640
|
67
|
-
chunkr_ai/types/task_get_params.py,sha256=
|
67
|
+
chunkr_ai/types/task_get_params.py,sha256=Nx2luhebcoaiuRln4KP4FarWvBPd1OYi__efi56zHPM,460
|
68
68
|
chunkr_ai/types/task_list_params.py,sha256=NySdOH1mIhZAJvcHr9xm2PeODsCO05lJMsrAiGGBKNE,1275
|
69
69
|
chunkr_ai/types/task_parse_updated_webhook_event.py,sha256=3NsfEpJr_bfFB3Y66elraSxk0FS76c60BLUmhqmU9Vc,636
|
70
70
|
chunkr_ai/types/task_response.py,sha256=I53d8JdZxbg3p-AUnigISmwFFt5DILnm0gyOc2wRu28,2191
|
71
71
|
chunkr_ai/types/unwrap_webhook_event.py,sha256=G23CLp0__AMlfM2xE11ugnDxN82uiG0Xru0p-pI9VHQ,442
|
72
|
-
chunkr_ai/types/version_info.py,sha256=
|
72
|
+
chunkr_ai/types/version_info.py,sha256=MVSU2Z9ATehyc1IgVExczvcP_yH7wYc1UV_BwXeF0UA,917
|
73
73
|
chunkr_ai/types/webhook_url_response.py,sha256=q7VsWGOLqVfA_ctdcrbynQJVbfCGh1rHlXZsDc-9Sus,205
|
74
74
|
chunkr_ai/types/tasks/__init__.py,sha256=AEF_lM5YdEvz8_7fcX0HHnVvsXdC8Hcsb2Cs-LzRBK4,711
|
75
75
|
chunkr_ai/types/tasks/extract_create_params.py,sha256=IV5TrFqJAGFf4w_uH3hqWlbEySlAOC_2QzwKZ-3oM6o,1376
|
76
|
-
chunkr_ai/types/tasks/extract_create_response.py,sha256=
|
77
|
-
chunkr_ai/types/tasks/extract_get_params.py,sha256=
|
78
|
-
chunkr_ai/types/tasks/extract_get_response.py,sha256=
|
79
|
-
chunkr_ai/types/tasks/parse_create_params.py,sha256=
|
76
|
+
chunkr_ai/types/tasks/extract_create_response.py,sha256=Umbm40i0Q6Oz3vX9WwTeOXwKU2g8ddZmFhRwl-5Rm5U,2147
|
77
|
+
chunkr_ai/types/tasks/extract_get_params.py,sha256=AsJvXHvdDnIcVOvTK9gCeiMFk4wckuv19IXIJcqpqso,466
|
78
|
+
chunkr_ai/types/tasks/extract_get_response.py,sha256=FWXfS3Qobg3k6seWbbXJZ5y4N_mtJbHsN_FeZV5_ieM,2141
|
79
|
+
chunkr_ai/types/tasks/parse_create_params.py,sha256=8ctOPP2QT-q_8zN8Fl8ene74ZGOUnR6EAA9XcvA_0p4,2957
|
80
80
|
chunkr_ai/types/tasks/parse_create_response.py,sha256=asqeI2l6QbdtPhaQkxkbpSwVLe2HEFfeTPG5OX_xfus,1679
|
81
|
-
chunkr_ai/types/tasks/parse_get_params.py,sha256=
|
81
|
+
chunkr_ai/types/tasks/parse_get_params.py,sha256=Ca0C91k6ajNTMhtUkFMulgC6g8_wI7YLVGxsWiupiVA,462
|
82
82
|
chunkr_ai/types/tasks/parse_get_response.py,sha256=-0_j1_5skabmAtmcK882jZGroVsBRxC_o5d6pg31bJY,1673
|
83
|
-
chunkr_ai-0.1.
|
84
|
-
chunkr_ai-0.1.
|
85
|
-
chunkr_ai-0.1.
|
86
|
-
chunkr_ai-0.1.
|
83
|
+
chunkr_ai-0.1.0a9.dist-info/METADATA,sha256=LVLyY2CgCcRHxDF9SV79DbftAPh4d16TUh_cHmENI3I,16492
|
84
|
+
chunkr_ai-0.1.0a9.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
85
|
+
chunkr_ai-0.1.0a9.dist-info/licenses/LICENSE,sha256=3FDRL-L-DFkrFy8yJpb1Nxhuztm0PB2kawcCgK5utFg,11336
|
86
|
+
chunkr_ai-0.1.0a9.dist-info/RECORD,,
|
@@ -1,36 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
-
|
3
|
-
from typing import Union, Optional
|
4
|
-
from typing_extensions import Literal, TypeAlias
|
5
|
-
|
6
|
-
from pydantic import Field as FieldInfo
|
7
|
-
|
8
|
-
from .._models import BaseModel
|
9
|
-
|
10
|
-
__all__ = ["LlmProcessing", "FallbackStrategy", "FallbackStrategyModel"]
|
11
|
-
|
12
|
-
|
13
|
-
class FallbackStrategyModel(BaseModel):
|
14
|
-
model: str = FieldInfo(alias="Model")
|
15
|
-
"""Use a specific model as fallback"""
|
16
|
-
|
17
|
-
|
18
|
-
FallbackStrategy: TypeAlias = Union[Literal["None", "Default"], FallbackStrategyModel]
|
19
|
-
|
20
|
-
|
21
|
-
class LlmProcessing(BaseModel):
|
22
|
-
fallback_strategy: Optional[FallbackStrategy] = None
|
23
|
-
"""The fallback strategy to use for the LLMs in the task."""
|
24
|
-
|
25
|
-
llm_model_id: Optional[str] = None
|
26
|
-
"""The ID of the model to use for the task.
|
27
|
-
|
28
|
-
If not provided, the default model will be used. Please check the documentation
|
29
|
-
for the model you want to use.
|
30
|
-
"""
|
31
|
-
|
32
|
-
max_completion_tokens: Optional[int] = None
|
33
|
-
"""The maximum number of tokens to generate."""
|
34
|
-
|
35
|
-
temperature: Optional[float] = None
|
36
|
-
"""The temperature to use for the LLM."""
|
@@ -1,36 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
-
|
3
|
-
from __future__ import annotations
|
4
|
-
|
5
|
-
from typing import Union, Optional
|
6
|
-
from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict
|
7
|
-
|
8
|
-
from .._utils import PropertyInfo
|
9
|
-
|
10
|
-
__all__ = ["LlmProcessingParam", "FallbackStrategy", "FallbackStrategyModel"]
|
11
|
-
|
12
|
-
|
13
|
-
class FallbackStrategyModel(TypedDict, total=False):
|
14
|
-
model: Required[Annotated[str, PropertyInfo(alias="Model")]]
|
15
|
-
"""Use a specific model as fallback"""
|
16
|
-
|
17
|
-
|
18
|
-
FallbackStrategy: TypeAlias = Union[Literal["None", "Default"], FallbackStrategyModel]
|
19
|
-
|
20
|
-
|
21
|
-
class LlmProcessingParam(TypedDict, total=False):
|
22
|
-
fallback_strategy: FallbackStrategy
|
23
|
-
"""The fallback strategy to use for the LLMs in the task."""
|
24
|
-
|
25
|
-
llm_model_id: Optional[str]
|
26
|
-
"""The ID of the model to use for the task.
|
27
|
-
|
28
|
-
If not provided, the default model will be used. Please check the documentation
|
29
|
-
for the model you want to use.
|
30
|
-
"""
|
31
|
-
|
32
|
-
max_completion_tokens: Optional[int]
|
33
|
-
"""The maximum number of tokens to generate."""
|
34
|
-
|
35
|
-
temperature: float
|
36
|
-
"""The temperature to use for the LLM."""
|
File without changes
|
File without changes
|