mistralai 1.0.2__py3-none-any.whl → 1.1.0__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.
- mistralai/_hooks/sdkhooks.py +23 -4
- mistralai/_hooks/types.py +27 -9
- mistralai/agents.py +286 -150
- mistralai/basesdk.py +90 -5
- mistralai/chat.py +260 -144
- mistralai/embeddings.py +73 -53
- mistralai/files.py +252 -192
- mistralai/fim.py +174 -110
- mistralai/fine_tuning.py +3 -2
- mistralai/jobs.py +372 -263
- mistralai/models/__init__.py +499 -46
- mistralai/models/agentscompletionrequest.py +47 -11
- mistralai/models/agentscompletionstreamrequest.py +49 -11
- mistralai/models/archiveftmodelout.py +6 -2
- mistralai/models/assistantmessage.py +11 -4
- mistralai/models/{modelcard.py → basemodelcard.py} +37 -14
- mistralai/models/chatcompletionchoice.py +4 -2
- mistralai/models/chatcompletionrequest.py +57 -11
- mistralai/models/chatcompletionresponse.py +6 -2
- mistralai/models/chatcompletionstreamrequest.py +59 -11
- mistralai/models/checkpointout.py +3 -2
- mistralai/models/completionchunk.py +10 -3
- mistralai/models/completionevent.py +1 -2
- mistralai/models/completionresponsestreamchoice.py +13 -5
- mistralai/models/contentchunk.py +13 -10
- mistralai/models/delete_model_v1_models_model_id_deleteop.py +4 -3
- mistralai/models/deletefileout.py +3 -2
- mistralai/models/deletemodelout.py +3 -2
- mistralai/models/deltamessage.py +9 -4
- mistralai/models/detailedjobout.py +59 -7
- mistralai/models/embeddingrequest.py +9 -4
- mistralai/models/embeddingresponse.py +5 -2
- mistralai/models/embeddingresponsedata.py +3 -2
- mistralai/models/eventout.py +9 -4
- mistralai/models/files_api_routes_delete_fileop.py +4 -3
- mistralai/models/files_api_routes_retrieve_fileop.py +4 -3
- mistralai/models/files_api_routes_upload_fileop.py +27 -8
- mistralai/models/fileschema.py +26 -5
- mistralai/models/fimcompletionrequest.py +26 -5
- mistralai/models/fimcompletionresponse.py +6 -2
- mistralai/models/fimcompletionstreamrequest.py +26 -5
- mistralai/models/finetuneablemodel.py +7 -1
- mistralai/models/ftmodelcapabilitiesout.py +4 -2
- mistralai/models/ftmodelcard.py +103 -0
- mistralai/models/ftmodelout.py +32 -6
- mistralai/models/function.py +3 -2
- mistralai/models/functioncall.py +2 -2
- mistralai/models/functionname.py +17 -0
- mistralai/models/githubrepositoryin.py +15 -4
- mistralai/models/githubrepositoryout.py +15 -4
- mistralai/models/httpvalidationerror.py +2 -2
- mistralai/models/imageurl.py +48 -0
- mistralai/models/imageurlchunk.py +32 -0
- mistralai/models/jobin.py +22 -5
- mistralai/models/jobmetadataout.py +31 -6
- mistralai/models/jobout.py +55 -7
- mistralai/models/jobs_api_routes_fine_tuning_archive_fine_tuned_modelop.py +4 -3
- mistralai/models/jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop.py +4 -3
- mistralai/models/jobs_api_routes_fine_tuning_create_fine_tuning_jobop.py +3 -2
- mistralai/models/jobs_api_routes_fine_tuning_get_fine_tuning_jobop.py +4 -3
- mistralai/models/jobs_api_routes_fine_tuning_get_fine_tuning_jobsop.py +83 -16
- mistralai/models/jobs_api_routes_fine_tuning_start_fine_tuning_jobop.py +4 -3
- mistralai/models/jobs_api_routes_fine_tuning_unarchive_fine_tuned_modelop.py +4 -3
- mistralai/models/jobs_api_routes_fine_tuning_update_fine_tuned_modelop.py +9 -4
- mistralai/models/jobsout.py +6 -2
- mistralai/models/legacyjobmetadataout.py +45 -6
- mistralai/models/listfilesout.py +2 -2
- mistralai/models/metricout.py +11 -6
- mistralai/models/modelcapabilities.py +7 -2
- mistralai/models/modellist.py +21 -7
- mistralai/models/responseformat.py +6 -7
- mistralai/models/responseformats.py +8 -0
- mistralai/models/retrieve_model_v1_models_model_id_getop.py +24 -5
- mistralai/models/retrievefileout.py +26 -5
- mistralai/models/security.py +12 -3
- mistralai/models/systemmessage.py +6 -5
- mistralai/models/textchunk.py +9 -4
- mistralai/models/tool.py +9 -8
- mistralai/models/toolcall.py +9 -7
- mistralai/models/toolchoice.py +29 -0
- mistralai/models/toolchoiceenum.py +7 -0
- mistralai/models/toolmessage.py +11 -4
- mistralai/models/tooltypes.py +8 -0
- mistralai/models/trainingfile.py +2 -2
- mistralai/models/trainingparameters.py +27 -6
- mistralai/models/trainingparametersin.py +29 -8
- mistralai/models/unarchiveftmodelout.py +6 -2
- mistralai/models/updateftmodelin.py +8 -4
- mistralai/models/uploadfileout.py +26 -5
- mistralai/models/usageinfo.py +3 -2
- mistralai/models/usermessage.py +6 -5
- mistralai/models/validationerror.py +3 -2
- mistralai/models/wandbintegration.py +14 -4
- mistralai/models/wandbintegrationout.py +13 -4
- mistralai/models_.py +392 -294
- mistralai/sdk.py +24 -19
- mistralai/sdkconfiguration.py +6 -8
- mistralai/utils/__init__.py +6 -1
- mistralai/utils/logger.py +4 -1
- mistralai/utils/retries.py +2 -1
- mistralai/utils/security.py +13 -6
- {mistralai-1.0.2.dist-info → mistralai-1.1.0.dist-info}/METADATA +103 -74
- mistralai-1.1.0.dist-info/RECORD +254 -0
- mistralai_azure/_hooks/sdkhooks.py +23 -4
- mistralai_azure/_hooks/types.py +27 -9
- mistralai_azure/basesdk.py +91 -6
- mistralai_azure/chat.py +252 -144
- mistralai_azure/models/__init__.py +157 -15
- mistralai_azure/models/assistantmessage.py +18 -5
- mistralai_azure/models/chatcompletionchoice.py +7 -3
- mistralai_azure/models/chatcompletionrequest.py +65 -12
- mistralai_azure/models/chatcompletionresponse.py +6 -2
- mistralai_azure/models/chatcompletionstreamrequest.py +67 -12
- mistralai_azure/models/completionchunk.py +10 -3
- mistralai_azure/models/completionevent.py +1 -2
- mistralai_azure/models/completionresponsestreamchoice.py +10 -4
- mistralai_azure/models/contentchunk.py +4 -11
- mistralai_azure/models/deltamessage.py +16 -5
- mistralai_azure/models/function.py +3 -2
- mistralai_azure/models/functioncall.py +2 -2
- mistralai_azure/models/functionname.py +17 -0
- mistralai_azure/models/httpvalidationerror.py +2 -2
- mistralai_azure/models/responseformat.py +6 -7
- mistralai_azure/models/responseformats.py +8 -0
- mistralai_azure/models/security.py +12 -3
- mistralai_azure/models/systemmessage.py +6 -5
- mistralai_azure/models/textchunk.py +9 -4
- mistralai_azure/models/tool.py +9 -8
- mistralai_azure/models/toolcall.py +9 -7
- mistralai_azure/models/toolchoice.py +29 -0
- mistralai_azure/models/toolchoiceenum.py +7 -0
- mistralai_azure/models/toolmessage.py +18 -5
- mistralai_azure/models/tooltypes.py +8 -0
- mistralai_azure/models/usageinfo.py +3 -2
- mistralai_azure/models/usermessage.py +6 -5
- mistralai_azure/models/validationerror.py +3 -2
- mistralai_azure/sdkconfiguration.py +6 -8
- mistralai_azure/utils/__init__.py +8 -3
- mistralai_azure/utils/forms.py +10 -9
- mistralai_azure/utils/headers.py +8 -8
- mistralai_azure/utils/logger.py +6 -0
- mistralai_azure/utils/queryparams.py +16 -14
- mistralai_azure/utils/retries.py +2 -1
- mistralai_azure/utils/security.py +12 -6
- mistralai_azure/utils/serializers.py +17 -8
- mistralai_azure/utils/url.py +13 -8
- mistralai_azure/utils/values.py +6 -0
- mistralai_gcp/_hooks/sdkhooks.py +23 -4
- mistralai_gcp/_hooks/types.py +27 -9
- mistralai_gcp/basesdk.py +91 -6
- mistralai_gcp/chat.py +252 -144
- mistralai_gcp/fim.py +166 -110
- mistralai_gcp/models/__init__.py +179 -17
- mistralai_gcp/models/assistantmessage.py +18 -5
- mistralai_gcp/models/chatcompletionchoice.py +7 -3
- mistralai_gcp/models/chatcompletionrequest.py +62 -12
- mistralai_gcp/models/chatcompletionresponse.py +6 -2
- mistralai_gcp/models/chatcompletionstreamrequest.py +64 -12
- mistralai_gcp/models/completionchunk.py +10 -3
- mistralai_gcp/models/completionevent.py +1 -2
- mistralai_gcp/models/completionresponsestreamchoice.py +10 -4
- mistralai_gcp/models/contentchunk.py +4 -11
- mistralai_gcp/models/deltamessage.py +16 -5
- mistralai_gcp/models/fimcompletionrequest.py +33 -6
- mistralai_gcp/models/fimcompletionresponse.py +6 -2
- mistralai_gcp/models/fimcompletionstreamrequest.py +33 -6
- mistralai_gcp/models/function.py +3 -2
- mistralai_gcp/models/functioncall.py +2 -2
- mistralai_gcp/models/functionname.py +17 -0
- mistralai_gcp/models/httpvalidationerror.py +2 -2
- mistralai_gcp/models/responseformat.py +6 -7
- mistralai_gcp/models/responseformats.py +8 -0
- mistralai_gcp/models/security.py +12 -3
- mistralai_gcp/models/systemmessage.py +6 -5
- mistralai_gcp/models/textchunk.py +9 -4
- mistralai_gcp/models/tool.py +9 -8
- mistralai_gcp/models/toolcall.py +9 -7
- mistralai_gcp/models/toolchoice.py +29 -0
- mistralai_gcp/models/toolchoiceenum.py +7 -0
- mistralai_gcp/models/toolmessage.py +18 -5
- mistralai_gcp/models/tooltypes.py +8 -0
- mistralai_gcp/models/usageinfo.py +3 -2
- mistralai_gcp/models/usermessage.py +6 -5
- mistralai_gcp/models/validationerror.py +3 -2
- mistralai_gcp/sdk.py +14 -10
- mistralai_gcp/sdkconfiguration.py +6 -8
- mistralai_gcp/utils/__init__.py +8 -3
- mistralai_gcp/utils/forms.py +10 -9
- mistralai_gcp/utils/headers.py +8 -8
- mistralai_gcp/utils/logger.py +6 -0
- mistralai_gcp/utils/queryparams.py +16 -14
- mistralai_gcp/utils/retries.py +2 -1
- mistralai_gcp/utils/security.py +12 -6
- mistralai_gcp/utils/serializers.py +17 -8
- mistralai_gcp/utils/url.py +13 -8
- mistralai_gcp/utils/values.py +6 -0
- mistralai-1.0.2.dist-info/RECORD +0 -236
- {mistralai-1.0.2.dist-info → mistralai-1.1.0.dist-info}/LICENSE +0 -0
- {mistralai-1.0.2.dist-info → mistralai-1.1.0.dist-info}/WHEEL +0 -0
mistralai/models/__init__.py
CHANGED
|
@@ -1,82 +1,535 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
|
-
from .agentscompletionrequest import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
from .agentscompletionrequest import (
|
|
4
|
+
AgentsCompletionRequest,
|
|
5
|
+
AgentsCompletionRequestMessages,
|
|
6
|
+
AgentsCompletionRequestMessagesTypedDict,
|
|
7
|
+
AgentsCompletionRequestStop,
|
|
8
|
+
AgentsCompletionRequestStopTypedDict,
|
|
9
|
+
AgentsCompletionRequestToolChoice,
|
|
10
|
+
AgentsCompletionRequestToolChoiceTypedDict,
|
|
11
|
+
AgentsCompletionRequestTypedDict,
|
|
12
|
+
)
|
|
13
|
+
from .agentscompletionstreamrequest import (
|
|
14
|
+
AgentsCompletionStreamRequest,
|
|
15
|
+
AgentsCompletionStreamRequestMessages,
|
|
16
|
+
AgentsCompletionStreamRequestMessagesTypedDict,
|
|
17
|
+
AgentsCompletionStreamRequestStop,
|
|
18
|
+
AgentsCompletionStreamRequestStopTypedDict,
|
|
19
|
+
AgentsCompletionStreamRequestToolChoice,
|
|
20
|
+
AgentsCompletionStreamRequestToolChoiceTypedDict,
|
|
21
|
+
AgentsCompletionStreamRequestTypedDict,
|
|
22
|
+
)
|
|
23
|
+
from .archiveftmodelout import (
|
|
24
|
+
ArchiveFTModelOut,
|
|
25
|
+
ArchiveFTModelOutObject,
|
|
26
|
+
ArchiveFTModelOutTypedDict,
|
|
27
|
+
)
|
|
28
|
+
from .assistantmessage import (
|
|
29
|
+
AssistantMessage,
|
|
30
|
+
AssistantMessageRole,
|
|
31
|
+
AssistantMessageTypedDict,
|
|
32
|
+
)
|
|
33
|
+
from .basemodelcard import BaseModelCard, BaseModelCardTypedDict
|
|
34
|
+
from .chatcompletionchoice import (
|
|
35
|
+
ChatCompletionChoice,
|
|
36
|
+
ChatCompletionChoiceTypedDict,
|
|
37
|
+
FinishReason,
|
|
38
|
+
)
|
|
39
|
+
from .chatcompletionrequest import (
|
|
40
|
+
ChatCompletionRequest,
|
|
41
|
+
ChatCompletionRequestToolChoice,
|
|
42
|
+
ChatCompletionRequestToolChoiceTypedDict,
|
|
43
|
+
ChatCompletionRequestTypedDict,
|
|
44
|
+
Messages,
|
|
45
|
+
MessagesTypedDict,
|
|
46
|
+
Stop,
|
|
47
|
+
StopTypedDict,
|
|
48
|
+
)
|
|
49
|
+
from .chatcompletionresponse import (
|
|
50
|
+
ChatCompletionResponse,
|
|
51
|
+
ChatCompletionResponseTypedDict,
|
|
52
|
+
)
|
|
53
|
+
from .chatcompletionstreamrequest import (
|
|
54
|
+
ChatCompletionStreamRequest,
|
|
55
|
+
ChatCompletionStreamRequestMessages,
|
|
56
|
+
ChatCompletionStreamRequestMessagesTypedDict,
|
|
57
|
+
ChatCompletionStreamRequestStop,
|
|
58
|
+
ChatCompletionStreamRequestStopTypedDict,
|
|
59
|
+
ChatCompletionStreamRequestToolChoice,
|
|
60
|
+
ChatCompletionStreamRequestToolChoiceTypedDict,
|
|
61
|
+
ChatCompletionStreamRequestTypedDict,
|
|
62
|
+
)
|
|
11
63
|
from .checkpointout import CheckpointOut, CheckpointOutTypedDict
|
|
12
64
|
from .completionchunk import CompletionChunk, CompletionChunkTypedDict
|
|
13
65
|
from .completionevent import CompletionEvent, CompletionEventTypedDict
|
|
14
|
-
from .completionresponsestreamchoice import
|
|
66
|
+
from .completionresponsestreamchoice import (
|
|
67
|
+
CompletionResponseStreamChoice,
|
|
68
|
+
CompletionResponseStreamChoiceFinishReason,
|
|
69
|
+
CompletionResponseStreamChoiceTypedDict,
|
|
70
|
+
)
|
|
15
71
|
from .contentchunk import ContentChunk, ContentChunkTypedDict
|
|
16
|
-
from .delete_model_v1_models_model_id_deleteop import
|
|
72
|
+
from .delete_model_v1_models_model_id_deleteop import (
|
|
73
|
+
DeleteModelV1ModelsModelIDDeleteRequest,
|
|
74
|
+
DeleteModelV1ModelsModelIDDeleteRequestTypedDict,
|
|
75
|
+
)
|
|
17
76
|
from .deletefileout import DeleteFileOut, DeleteFileOutTypedDict
|
|
18
77
|
from .deletemodelout import DeleteModelOut, DeleteModelOutTypedDict
|
|
19
78
|
from .deltamessage import DeltaMessage, DeltaMessageTypedDict
|
|
20
|
-
from .detailedjobout import
|
|
21
|
-
|
|
79
|
+
from .detailedjobout import (
|
|
80
|
+
DetailedJobOut,
|
|
81
|
+
DetailedJobOutIntegrations,
|
|
82
|
+
DetailedJobOutIntegrationsTypedDict,
|
|
83
|
+
DetailedJobOutObject,
|
|
84
|
+
DetailedJobOutRepositories,
|
|
85
|
+
DetailedJobOutRepositoriesTypedDict,
|
|
86
|
+
DetailedJobOutStatus,
|
|
87
|
+
DetailedJobOutTypedDict,
|
|
88
|
+
)
|
|
89
|
+
from .embeddingrequest import (
|
|
90
|
+
EmbeddingRequest,
|
|
91
|
+
EmbeddingRequestTypedDict,
|
|
92
|
+
Inputs,
|
|
93
|
+
InputsTypedDict,
|
|
94
|
+
)
|
|
22
95
|
from .embeddingresponse import EmbeddingResponse, EmbeddingResponseTypedDict
|
|
23
96
|
from .embeddingresponsedata import EmbeddingResponseData, EmbeddingResponseDataTypedDict
|
|
24
97
|
from .eventout import EventOut, EventOutTypedDict
|
|
25
|
-
from .files_api_routes_delete_fileop import
|
|
26
|
-
|
|
27
|
-
|
|
98
|
+
from .files_api_routes_delete_fileop import (
|
|
99
|
+
FilesAPIRoutesDeleteFileRequest,
|
|
100
|
+
FilesAPIRoutesDeleteFileRequestTypedDict,
|
|
101
|
+
)
|
|
102
|
+
from .files_api_routes_retrieve_fileop import (
|
|
103
|
+
FilesAPIRoutesRetrieveFileRequest,
|
|
104
|
+
FilesAPIRoutesRetrieveFileRequestTypedDict,
|
|
105
|
+
)
|
|
106
|
+
from .files_api_routes_upload_fileop import (
|
|
107
|
+
File,
|
|
108
|
+
FileTypedDict,
|
|
109
|
+
FilesAPIRoutesUploadFileMultiPartBodyParams,
|
|
110
|
+
FilesAPIRoutesUploadFileMultiPartBodyParamsTypedDict,
|
|
111
|
+
FilesAPIRoutesUploadFilePurpose,
|
|
112
|
+
)
|
|
28
113
|
from .fileschema import FileSchema, FileSchemaPurpose, FileSchemaTypedDict
|
|
29
|
-
from .fimcompletionrequest import
|
|
114
|
+
from .fimcompletionrequest import (
|
|
115
|
+
FIMCompletionRequest,
|
|
116
|
+
FIMCompletionRequestStop,
|
|
117
|
+
FIMCompletionRequestStopTypedDict,
|
|
118
|
+
FIMCompletionRequestTypedDict,
|
|
119
|
+
)
|
|
30
120
|
from .fimcompletionresponse import FIMCompletionResponse, FIMCompletionResponseTypedDict
|
|
31
|
-
from .fimcompletionstreamrequest import
|
|
121
|
+
from .fimcompletionstreamrequest import (
|
|
122
|
+
FIMCompletionStreamRequest,
|
|
123
|
+
FIMCompletionStreamRequestStop,
|
|
124
|
+
FIMCompletionStreamRequestStopTypedDict,
|
|
125
|
+
FIMCompletionStreamRequestTypedDict,
|
|
126
|
+
)
|
|
32
127
|
from .finetuneablemodel import FineTuneableModel
|
|
33
|
-
from .ftmodelcapabilitiesout import
|
|
128
|
+
from .ftmodelcapabilitiesout import (
|
|
129
|
+
FTModelCapabilitiesOut,
|
|
130
|
+
FTModelCapabilitiesOutTypedDict,
|
|
131
|
+
)
|
|
132
|
+
from .ftmodelcard import FTModelCard, FTModelCardTypedDict
|
|
34
133
|
from .ftmodelout import FTModelOut, FTModelOutObject, FTModelOutTypedDict
|
|
35
134
|
from .function import Function, FunctionTypedDict
|
|
36
|
-
from .functioncall import
|
|
37
|
-
|
|
38
|
-
|
|
135
|
+
from .functioncall import (
|
|
136
|
+
Arguments,
|
|
137
|
+
ArgumentsTypedDict,
|
|
138
|
+
FunctionCall,
|
|
139
|
+
FunctionCallTypedDict,
|
|
140
|
+
)
|
|
141
|
+
from .functionname import FunctionName, FunctionNameTypedDict
|
|
142
|
+
from .githubrepositoryin import (
|
|
143
|
+
GithubRepositoryIn,
|
|
144
|
+
GithubRepositoryInType,
|
|
145
|
+
GithubRepositoryInTypedDict,
|
|
146
|
+
)
|
|
147
|
+
from .githubrepositoryout import (
|
|
148
|
+
GithubRepositoryOut,
|
|
149
|
+
GithubRepositoryOutType,
|
|
150
|
+
GithubRepositoryOutTypedDict,
|
|
151
|
+
)
|
|
39
152
|
from .httpvalidationerror import HTTPValidationError, HTTPValidationErrorData
|
|
40
|
-
from .
|
|
153
|
+
from .imageurl import ImageURL, ImageURLTypedDict
|
|
154
|
+
from .imageurlchunk import (
|
|
155
|
+
ImageURLChunk,
|
|
156
|
+
ImageURLChunkImageURL,
|
|
157
|
+
ImageURLChunkImageURLTypedDict,
|
|
158
|
+
ImageURLChunkType,
|
|
159
|
+
ImageURLChunkTypedDict,
|
|
160
|
+
)
|
|
161
|
+
from .jobin import (
|
|
162
|
+
JobIn,
|
|
163
|
+
JobInIntegrations,
|
|
164
|
+
JobInIntegrationsTypedDict,
|
|
165
|
+
JobInRepositories,
|
|
166
|
+
JobInRepositoriesTypedDict,
|
|
167
|
+
JobInTypedDict,
|
|
168
|
+
)
|
|
41
169
|
from .jobmetadataout import JobMetadataOut, JobMetadataOutTypedDict
|
|
42
|
-
from .jobout import
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
170
|
+
from .jobout import (
|
|
171
|
+
Integrations,
|
|
172
|
+
IntegrationsTypedDict,
|
|
173
|
+
JobOut,
|
|
174
|
+
JobOutTypedDict,
|
|
175
|
+
Object,
|
|
176
|
+
Repositories,
|
|
177
|
+
RepositoriesTypedDict,
|
|
178
|
+
Status,
|
|
179
|
+
)
|
|
180
|
+
from .jobs_api_routes_fine_tuning_archive_fine_tuned_modelop import (
|
|
181
|
+
JobsAPIRoutesFineTuningArchiveFineTunedModelRequest,
|
|
182
|
+
JobsAPIRoutesFineTuningArchiveFineTunedModelRequestTypedDict,
|
|
183
|
+
)
|
|
184
|
+
from .jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop import (
|
|
185
|
+
JobsAPIRoutesFineTuningCancelFineTuningJobRequest,
|
|
186
|
+
JobsAPIRoutesFineTuningCancelFineTuningJobRequestTypedDict,
|
|
187
|
+
)
|
|
188
|
+
from .jobs_api_routes_fine_tuning_create_fine_tuning_jobop import (
|
|
189
|
+
JobsAPIRoutesFineTuningCreateFineTuningJobResponse,
|
|
190
|
+
JobsAPIRoutesFineTuningCreateFineTuningJobResponseTypedDict,
|
|
191
|
+
)
|
|
192
|
+
from .jobs_api_routes_fine_tuning_get_fine_tuning_jobop import (
|
|
193
|
+
JobsAPIRoutesFineTuningGetFineTuningJobRequest,
|
|
194
|
+
JobsAPIRoutesFineTuningGetFineTuningJobRequestTypedDict,
|
|
195
|
+
)
|
|
196
|
+
from .jobs_api_routes_fine_tuning_get_fine_tuning_jobsop import (
|
|
197
|
+
JobsAPIRoutesFineTuningGetFineTuningJobsRequest,
|
|
198
|
+
JobsAPIRoutesFineTuningGetFineTuningJobsRequestTypedDict,
|
|
199
|
+
QueryParamStatus,
|
|
200
|
+
)
|
|
201
|
+
from .jobs_api_routes_fine_tuning_start_fine_tuning_jobop import (
|
|
202
|
+
JobsAPIRoutesFineTuningStartFineTuningJobRequest,
|
|
203
|
+
JobsAPIRoutesFineTuningStartFineTuningJobRequestTypedDict,
|
|
204
|
+
)
|
|
205
|
+
from .jobs_api_routes_fine_tuning_unarchive_fine_tuned_modelop import (
|
|
206
|
+
JobsAPIRoutesFineTuningUnarchiveFineTunedModelRequest,
|
|
207
|
+
JobsAPIRoutesFineTuningUnarchiveFineTunedModelRequestTypedDict,
|
|
208
|
+
)
|
|
209
|
+
from .jobs_api_routes_fine_tuning_update_fine_tuned_modelop import (
|
|
210
|
+
JobsAPIRoutesFineTuningUpdateFineTunedModelRequest,
|
|
211
|
+
JobsAPIRoutesFineTuningUpdateFineTunedModelRequestTypedDict,
|
|
212
|
+
)
|
|
51
213
|
from .jobsout import JobsOut, JobsOutObject, JobsOutTypedDict
|
|
52
|
-
from .legacyjobmetadataout import
|
|
214
|
+
from .legacyjobmetadataout import (
|
|
215
|
+
LegacyJobMetadataOut,
|
|
216
|
+
LegacyJobMetadataOutObject,
|
|
217
|
+
LegacyJobMetadataOutTypedDict,
|
|
218
|
+
)
|
|
53
219
|
from .listfilesout import ListFilesOut, ListFilesOutTypedDict
|
|
54
220
|
from .metricout import MetricOut, MetricOutTypedDict
|
|
55
221
|
from .modelcapabilities import ModelCapabilities, ModelCapabilitiesTypedDict
|
|
56
|
-
from .
|
|
57
|
-
from .
|
|
58
|
-
from .
|
|
59
|
-
from .retrieve_model_v1_models_model_id_getop import
|
|
60
|
-
|
|
222
|
+
from .modellist import Data, DataTypedDict, ModelList, ModelListTypedDict
|
|
223
|
+
from .responseformat import ResponseFormat, ResponseFormatTypedDict
|
|
224
|
+
from .responseformats import ResponseFormats
|
|
225
|
+
from .retrieve_model_v1_models_model_id_getop import (
|
|
226
|
+
RetrieveModelV1ModelsModelIDGetRequest,
|
|
227
|
+
RetrieveModelV1ModelsModelIDGetRequestTypedDict,
|
|
228
|
+
RetrieveModelV1ModelsModelIDGetResponseRetrieveModelV1ModelsModelIDGet,
|
|
229
|
+
RetrieveModelV1ModelsModelIDGetResponseRetrieveModelV1ModelsModelIDGetTypedDict,
|
|
230
|
+
)
|
|
231
|
+
from .retrievefileout import (
|
|
232
|
+
RetrieveFileOut,
|
|
233
|
+
RetrieveFileOutPurpose,
|
|
234
|
+
RetrieveFileOutTypedDict,
|
|
235
|
+
)
|
|
61
236
|
from .sampletype import SampleType
|
|
62
237
|
from .sdkerror import SDKError
|
|
63
238
|
from .security import Security, SecurityTypedDict
|
|
64
239
|
from .source import Source
|
|
65
|
-
from .systemmessage import
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
240
|
+
from .systemmessage import (
|
|
241
|
+
Content,
|
|
242
|
+
ContentTypedDict,
|
|
243
|
+
Role,
|
|
244
|
+
SystemMessage,
|
|
245
|
+
SystemMessageTypedDict,
|
|
246
|
+
)
|
|
247
|
+
from .textchunk import TextChunk, TextChunkType, TextChunkTypedDict
|
|
248
|
+
from .tool import Tool, ToolTypedDict
|
|
249
|
+
from .toolcall import ToolCall, ToolCallTypedDict
|
|
250
|
+
from .toolchoice import ToolChoice, ToolChoiceTypedDict
|
|
251
|
+
from .toolchoiceenum import ToolChoiceEnum
|
|
69
252
|
from .toolmessage import ToolMessage, ToolMessageRole, ToolMessageTypedDict
|
|
253
|
+
from .tooltypes import ToolTypes
|
|
70
254
|
from .trainingfile import TrainingFile, TrainingFileTypedDict
|
|
71
255
|
from .trainingparameters import TrainingParameters, TrainingParametersTypedDict
|
|
72
256
|
from .trainingparametersin import TrainingParametersIn, TrainingParametersInTypedDict
|
|
73
|
-
from .unarchiveftmodelout import
|
|
257
|
+
from .unarchiveftmodelout import (
|
|
258
|
+
UnarchiveFTModelOut,
|
|
259
|
+
UnarchiveFTModelOutObject,
|
|
260
|
+
UnarchiveFTModelOutTypedDict,
|
|
261
|
+
)
|
|
74
262
|
from .updateftmodelin import UpdateFTModelIn, UpdateFTModelInTypedDict
|
|
75
263
|
from .uploadfileout import Purpose, UploadFileOut, UploadFileOutTypedDict
|
|
76
264
|
from .usageinfo import UsageInfo, UsageInfoTypedDict
|
|
77
|
-
from .usermessage import
|
|
78
|
-
|
|
79
|
-
|
|
265
|
+
from .usermessage import (
|
|
266
|
+
UserMessage,
|
|
267
|
+
UserMessageContent,
|
|
268
|
+
UserMessageContentTypedDict,
|
|
269
|
+
UserMessageRole,
|
|
270
|
+
UserMessageTypedDict,
|
|
271
|
+
)
|
|
272
|
+
from .validationerror import (
|
|
273
|
+
Loc,
|
|
274
|
+
LocTypedDict,
|
|
275
|
+
ValidationError,
|
|
276
|
+
ValidationErrorTypedDict,
|
|
277
|
+
)
|
|
278
|
+
from .wandbintegration import (
|
|
279
|
+
WandbIntegration,
|
|
280
|
+
WandbIntegrationType,
|
|
281
|
+
WandbIntegrationTypedDict,
|
|
282
|
+
)
|
|
80
283
|
from .wandbintegrationout import Type, WandbIntegrationOut, WandbIntegrationOutTypedDict
|
|
81
284
|
|
|
82
|
-
__all__ = [
|
|
285
|
+
__all__ = [
|
|
286
|
+
"AgentsCompletionRequest",
|
|
287
|
+
"AgentsCompletionRequestMessages",
|
|
288
|
+
"AgentsCompletionRequestMessagesTypedDict",
|
|
289
|
+
"AgentsCompletionRequestStop",
|
|
290
|
+
"AgentsCompletionRequestStopTypedDict",
|
|
291
|
+
"AgentsCompletionRequestToolChoice",
|
|
292
|
+
"AgentsCompletionRequestToolChoiceTypedDict",
|
|
293
|
+
"AgentsCompletionRequestTypedDict",
|
|
294
|
+
"AgentsCompletionStreamRequest",
|
|
295
|
+
"AgentsCompletionStreamRequestMessages",
|
|
296
|
+
"AgentsCompletionStreamRequestMessagesTypedDict",
|
|
297
|
+
"AgentsCompletionStreamRequestStop",
|
|
298
|
+
"AgentsCompletionStreamRequestStopTypedDict",
|
|
299
|
+
"AgentsCompletionStreamRequestToolChoice",
|
|
300
|
+
"AgentsCompletionStreamRequestToolChoiceTypedDict",
|
|
301
|
+
"AgentsCompletionStreamRequestTypedDict",
|
|
302
|
+
"ArchiveFTModelOut",
|
|
303
|
+
"ArchiveFTModelOutObject",
|
|
304
|
+
"ArchiveFTModelOutTypedDict",
|
|
305
|
+
"Arguments",
|
|
306
|
+
"ArgumentsTypedDict",
|
|
307
|
+
"AssistantMessage",
|
|
308
|
+
"AssistantMessageRole",
|
|
309
|
+
"AssistantMessageTypedDict",
|
|
310
|
+
"BaseModelCard",
|
|
311
|
+
"BaseModelCardTypedDict",
|
|
312
|
+
"ChatCompletionChoice",
|
|
313
|
+
"ChatCompletionChoiceTypedDict",
|
|
314
|
+
"ChatCompletionRequest",
|
|
315
|
+
"ChatCompletionRequestToolChoice",
|
|
316
|
+
"ChatCompletionRequestToolChoiceTypedDict",
|
|
317
|
+
"ChatCompletionRequestTypedDict",
|
|
318
|
+
"ChatCompletionResponse",
|
|
319
|
+
"ChatCompletionResponseTypedDict",
|
|
320
|
+
"ChatCompletionStreamRequest",
|
|
321
|
+
"ChatCompletionStreamRequestMessages",
|
|
322
|
+
"ChatCompletionStreamRequestMessagesTypedDict",
|
|
323
|
+
"ChatCompletionStreamRequestStop",
|
|
324
|
+
"ChatCompletionStreamRequestStopTypedDict",
|
|
325
|
+
"ChatCompletionStreamRequestToolChoice",
|
|
326
|
+
"ChatCompletionStreamRequestToolChoiceTypedDict",
|
|
327
|
+
"ChatCompletionStreamRequestTypedDict",
|
|
328
|
+
"CheckpointOut",
|
|
329
|
+
"CheckpointOutTypedDict",
|
|
330
|
+
"CompletionChunk",
|
|
331
|
+
"CompletionChunkTypedDict",
|
|
332
|
+
"CompletionEvent",
|
|
333
|
+
"CompletionEventTypedDict",
|
|
334
|
+
"CompletionResponseStreamChoice",
|
|
335
|
+
"CompletionResponseStreamChoiceFinishReason",
|
|
336
|
+
"CompletionResponseStreamChoiceTypedDict",
|
|
337
|
+
"Content",
|
|
338
|
+
"ContentChunk",
|
|
339
|
+
"ContentChunkTypedDict",
|
|
340
|
+
"ContentTypedDict",
|
|
341
|
+
"Data",
|
|
342
|
+
"DataTypedDict",
|
|
343
|
+
"DeleteFileOut",
|
|
344
|
+
"DeleteFileOutTypedDict",
|
|
345
|
+
"DeleteModelOut",
|
|
346
|
+
"DeleteModelOutTypedDict",
|
|
347
|
+
"DeleteModelV1ModelsModelIDDeleteRequest",
|
|
348
|
+
"DeleteModelV1ModelsModelIDDeleteRequestTypedDict",
|
|
349
|
+
"DeltaMessage",
|
|
350
|
+
"DeltaMessageTypedDict",
|
|
351
|
+
"DetailedJobOut",
|
|
352
|
+
"DetailedJobOutIntegrations",
|
|
353
|
+
"DetailedJobOutIntegrationsTypedDict",
|
|
354
|
+
"DetailedJobOutObject",
|
|
355
|
+
"DetailedJobOutRepositories",
|
|
356
|
+
"DetailedJobOutRepositoriesTypedDict",
|
|
357
|
+
"DetailedJobOutStatus",
|
|
358
|
+
"DetailedJobOutTypedDict",
|
|
359
|
+
"EmbeddingRequest",
|
|
360
|
+
"EmbeddingRequestTypedDict",
|
|
361
|
+
"EmbeddingResponse",
|
|
362
|
+
"EmbeddingResponseData",
|
|
363
|
+
"EmbeddingResponseDataTypedDict",
|
|
364
|
+
"EmbeddingResponseTypedDict",
|
|
365
|
+
"EventOut",
|
|
366
|
+
"EventOutTypedDict",
|
|
367
|
+
"FIMCompletionRequest",
|
|
368
|
+
"FIMCompletionRequestStop",
|
|
369
|
+
"FIMCompletionRequestStopTypedDict",
|
|
370
|
+
"FIMCompletionRequestTypedDict",
|
|
371
|
+
"FIMCompletionResponse",
|
|
372
|
+
"FIMCompletionResponseTypedDict",
|
|
373
|
+
"FIMCompletionStreamRequest",
|
|
374
|
+
"FIMCompletionStreamRequestStop",
|
|
375
|
+
"FIMCompletionStreamRequestStopTypedDict",
|
|
376
|
+
"FIMCompletionStreamRequestTypedDict",
|
|
377
|
+
"FTModelCapabilitiesOut",
|
|
378
|
+
"FTModelCapabilitiesOutTypedDict",
|
|
379
|
+
"FTModelCard",
|
|
380
|
+
"FTModelCardTypedDict",
|
|
381
|
+
"FTModelOut",
|
|
382
|
+
"FTModelOutObject",
|
|
383
|
+
"FTModelOutTypedDict",
|
|
384
|
+
"File",
|
|
385
|
+
"FileSchema",
|
|
386
|
+
"FileSchemaPurpose",
|
|
387
|
+
"FileSchemaTypedDict",
|
|
388
|
+
"FileTypedDict",
|
|
389
|
+
"FilesAPIRoutesDeleteFileRequest",
|
|
390
|
+
"FilesAPIRoutesDeleteFileRequestTypedDict",
|
|
391
|
+
"FilesAPIRoutesRetrieveFileRequest",
|
|
392
|
+
"FilesAPIRoutesRetrieveFileRequestTypedDict",
|
|
393
|
+
"FilesAPIRoutesUploadFileMultiPartBodyParams",
|
|
394
|
+
"FilesAPIRoutesUploadFileMultiPartBodyParamsTypedDict",
|
|
395
|
+
"FilesAPIRoutesUploadFilePurpose",
|
|
396
|
+
"FineTuneableModel",
|
|
397
|
+
"FinishReason",
|
|
398
|
+
"Function",
|
|
399
|
+
"FunctionCall",
|
|
400
|
+
"FunctionCallTypedDict",
|
|
401
|
+
"FunctionName",
|
|
402
|
+
"FunctionNameTypedDict",
|
|
403
|
+
"FunctionTypedDict",
|
|
404
|
+
"GithubRepositoryIn",
|
|
405
|
+
"GithubRepositoryInType",
|
|
406
|
+
"GithubRepositoryInTypedDict",
|
|
407
|
+
"GithubRepositoryOut",
|
|
408
|
+
"GithubRepositoryOutType",
|
|
409
|
+
"GithubRepositoryOutTypedDict",
|
|
410
|
+
"HTTPValidationError",
|
|
411
|
+
"HTTPValidationErrorData",
|
|
412
|
+
"ImageURL",
|
|
413
|
+
"ImageURLChunk",
|
|
414
|
+
"ImageURLChunkImageURL",
|
|
415
|
+
"ImageURLChunkImageURLTypedDict",
|
|
416
|
+
"ImageURLChunkType",
|
|
417
|
+
"ImageURLChunkTypedDict",
|
|
418
|
+
"ImageURLTypedDict",
|
|
419
|
+
"Inputs",
|
|
420
|
+
"InputsTypedDict",
|
|
421
|
+
"Integrations",
|
|
422
|
+
"IntegrationsTypedDict",
|
|
423
|
+
"JobIn",
|
|
424
|
+
"JobInIntegrations",
|
|
425
|
+
"JobInIntegrationsTypedDict",
|
|
426
|
+
"JobInRepositories",
|
|
427
|
+
"JobInRepositoriesTypedDict",
|
|
428
|
+
"JobInTypedDict",
|
|
429
|
+
"JobMetadataOut",
|
|
430
|
+
"JobMetadataOutTypedDict",
|
|
431
|
+
"JobOut",
|
|
432
|
+
"JobOutTypedDict",
|
|
433
|
+
"JobsAPIRoutesFineTuningArchiveFineTunedModelRequest",
|
|
434
|
+
"JobsAPIRoutesFineTuningArchiveFineTunedModelRequestTypedDict",
|
|
435
|
+
"JobsAPIRoutesFineTuningCancelFineTuningJobRequest",
|
|
436
|
+
"JobsAPIRoutesFineTuningCancelFineTuningJobRequestTypedDict",
|
|
437
|
+
"JobsAPIRoutesFineTuningCreateFineTuningJobResponse",
|
|
438
|
+
"JobsAPIRoutesFineTuningCreateFineTuningJobResponseTypedDict",
|
|
439
|
+
"JobsAPIRoutesFineTuningGetFineTuningJobRequest",
|
|
440
|
+
"JobsAPIRoutesFineTuningGetFineTuningJobRequestTypedDict",
|
|
441
|
+
"JobsAPIRoutesFineTuningGetFineTuningJobsRequest",
|
|
442
|
+
"JobsAPIRoutesFineTuningGetFineTuningJobsRequestTypedDict",
|
|
443
|
+
"JobsAPIRoutesFineTuningStartFineTuningJobRequest",
|
|
444
|
+
"JobsAPIRoutesFineTuningStartFineTuningJobRequestTypedDict",
|
|
445
|
+
"JobsAPIRoutesFineTuningUnarchiveFineTunedModelRequest",
|
|
446
|
+
"JobsAPIRoutesFineTuningUnarchiveFineTunedModelRequestTypedDict",
|
|
447
|
+
"JobsAPIRoutesFineTuningUpdateFineTunedModelRequest",
|
|
448
|
+
"JobsAPIRoutesFineTuningUpdateFineTunedModelRequestTypedDict",
|
|
449
|
+
"JobsOut",
|
|
450
|
+
"JobsOutObject",
|
|
451
|
+
"JobsOutTypedDict",
|
|
452
|
+
"LegacyJobMetadataOut",
|
|
453
|
+
"LegacyJobMetadataOutObject",
|
|
454
|
+
"LegacyJobMetadataOutTypedDict",
|
|
455
|
+
"ListFilesOut",
|
|
456
|
+
"ListFilesOutTypedDict",
|
|
457
|
+
"Loc",
|
|
458
|
+
"LocTypedDict",
|
|
459
|
+
"Messages",
|
|
460
|
+
"MessagesTypedDict",
|
|
461
|
+
"MetricOut",
|
|
462
|
+
"MetricOutTypedDict",
|
|
463
|
+
"ModelCapabilities",
|
|
464
|
+
"ModelCapabilitiesTypedDict",
|
|
465
|
+
"ModelList",
|
|
466
|
+
"ModelListTypedDict",
|
|
467
|
+
"Object",
|
|
468
|
+
"Purpose",
|
|
469
|
+
"QueryParamStatus",
|
|
470
|
+
"Repositories",
|
|
471
|
+
"RepositoriesTypedDict",
|
|
472
|
+
"ResponseFormat",
|
|
473
|
+
"ResponseFormatTypedDict",
|
|
474
|
+
"ResponseFormats",
|
|
475
|
+
"RetrieveFileOut",
|
|
476
|
+
"RetrieveFileOutPurpose",
|
|
477
|
+
"RetrieveFileOutTypedDict",
|
|
478
|
+
"RetrieveModelV1ModelsModelIDGetRequest",
|
|
479
|
+
"RetrieveModelV1ModelsModelIDGetRequestTypedDict",
|
|
480
|
+
"RetrieveModelV1ModelsModelIDGetResponseRetrieveModelV1ModelsModelIDGet",
|
|
481
|
+
"RetrieveModelV1ModelsModelIDGetResponseRetrieveModelV1ModelsModelIDGetTypedDict",
|
|
482
|
+
"Role",
|
|
483
|
+
"SDKError",
|
|
484
|
+
"SampleType",
|
|
485
|
+
"Security",
|
|
486
|
+
"SecurityTypedDict",
|
|
487
|
+
"Source",
|
|
488
|
+
"Status",
|
|
489
|
+
"Stop",
|
|
490
|
+
"StopTypedDict",
|
|
491
|
+
"SystemMessage",
|
|
492
|
+
"SystemMessageTypedDict",
|
|
493
|
+
"TextChunk",
|
|
494
|
+
"TextChunkType",
|
|
495
|
+
"TextChunkTypedDict",
|
|
496
|
+
"Tool",
|
|
497
|
+
"ToolCall",
|
|
498
|
+
"ToolCallTypedDict",
|
|
499
|
+
"ToolChoice",
|
|
500
|
+
"ToolChoiceEnum",
|
|
501
|
+
"ToolChoiceTypedDict",
|
|
502
|
+
"ToolMessage",
|
|
503
|
+
"ToolMessageRole",
|
|
504
|
+
"ToolMessageTypedDict",
|
|
505
|
+
"ToolTypedDict",
|
|
506
|
+
"ToolTypes",
|
|
507
|
+
"TrainingFile",
|
|
508
|
+
"TrainingFileTypedDict",
|
|
509
|
+
"TrainingParameters",
|
|
510
|
+
"TrainingParametersIn",
|
|
511
|
+
"TrainingParametersInTypedDict",
|
|
512
|
+
"TrainingParametersTypedDict",
|
|
513
|
+
"Type",
|
|
514
|
+
"UnarchiveFTModelOut",
|
|
515
|
+
"UnarchiveFTModelOutObject",
|
|
516
|
+
"UnarchiveFTModelOutTypedDict",
|
|
517
|
+
"UpdateFTModelIn",
|
|
518
|
+
"UpdateFTModelInTypedDict",
|
|
519
|
+
"UploadFileOut",
|
|
520
|
+
"UploadFileOutTypedDict",
|
|
521
|
+
"UsageInfo",
|
|
522
|
+
"UsageInfoTypedDict",
|
|
523
|
+
"UserMessage",
|
|
524
|
+
"UserMessageContent",
|
|
525
|
+
"UserMessageContentTypedDict",
|
|
526
|
+
"UserMessageRole",
|
|
527
|
+
"UserMessageTypedDict",
|
|
528
|
+
"ValidationError",
|
|
529
|
+
"ValidationErrorTypedDict",
|
|
530
|
+
"WandbIntegration",
|
|
531
|
+
"WandbIntegrationOut",
|
|
532
|
+
"WandbIntegrationOutTypedDict",
|
|
533
|
+
"WandbIntegrationType",
|
|
534
|
+
"WandbIntegrationTypedDict",
|
|
535
|
+
]
|