mistralai 1.10.1__py3-none-any.whl → 1.12.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/_version.py +3 -3
- mistralai/accesses.py +22 -12
- mistralai/agents.py +88 -44
- mistralai/audio.py +20 -0
- mistralai/basesdk.py +6 -0
- mistralai/chat.py +96 -40
- mistralai/classifiers.py +35 -22
- mistralai/conversations.py +234 -72
- mistralai/documents.py +72 -26
- mistralai/embeddings.py +17 -8
- mistralai/extra/__init__.py +48 -0
- mistralai/extra/exceptions.py +49 -4
- mistralai/extra/realtime/__init__.py +25 -0
- mistralai/extra/realtime/connection.py +207 -0
- mistralai/extra/realtime/transcription.py +271 -0
- mistralai/files.py +64 -24
- mistralai/fim.py +20 -12
- mistralai/httpclient.py +0 -1
- mistralai/jobs.py +65 -26
- mistralai/libraries.py +20 -10
- mistralai/mistral_agents.py +825 -34
- mistralai/mistral_jobs.py +33 -14
- mistralai/models/__init__.py +119 -0
- mistralai/models/agent.py +1 -1
- mistralai/models/agentaliasresponse.py +23 -0
- mistralai/models/agentconversation.py +15 -5
- mistralai/models/agenthandoffdoneevent.py +1 -1
- mistralai/models/agenthandoffentry.py +3 -2
- mistralai/models/agenthandoffstartedevent.py +1 -1
- mistralai/models/agents_api_v1_agents_create_or_update_aliasop.py +26 -0
- mistralai/models/agents_api_v1_agents_get_versionop.py +21 -0
- mistralai/models/agents_api_v1_agents_getop.py +12 -3
- mistralai/models/agents_api_v1_agents_list_version_aliasesop.py +16 -0
- mistralai/models/agents_api_v1_agents_list_versionsop.py +33 -0
- mistralai/models/agents_api_v1_agents_listop.py +4 -0
- mistralai/models/agentscompletionrequest.py +2 -5
- mistralai/models/agentscompletionstreamrequest.py +2 -5
- mistralai/models/archiveftmodelout.py +1 -1
- mistralai/models/assistantmessage.py +1 -1
- mistralai/models/audiochunk.py +1 -1
- mistralai/models/audioencoding.py +6 -1
- mistralai/models/audioformat.py +2 -4
- mistralai/models/audiotranscriptionrequest.py +8 -0
- mistralai/models/audiotranscriptionrequeststream.py +8 -0
- mistralai/models/basemodelcard.py +1 -1
- mistralai/models/batchjobin.py +2 -4
- mistralai/models/batchjobout.py +1 -1
- mistralai/models/batchjobsout.py +1 -1
- mistralai/models/chatcompletionchoice.py +10 -5
- mistralai/models/chatcompletionrequest.py +2 -5
- mistralai/models/chatcompletionstreamrequest.py +2 -5
- mistralai/models/classifierdetailedjobout.py +4 -2
- mistralai/models/classifierftmodelout.py +3 -2
- mistralai/models/classifierjobout.py +4 -2
- mistralai/models/codeinterpretertool.py +1 -1
- mistralai/models/completiondetailedjobout.py +5 -2
- mistralai/models/completionftmodelout.py +3 -2
- mistralai/models/completionjobout.py +5 -2
- mistralai/models/completionresponsestreamchoice.py +9 -8
- mistralai/models/conversationappendrequest.py +4 -1
- mistralai/models/conversationappendstreamrequest.py +4 -1
- mistralai/models/conversationhistory.py +2 -1
- mistralai/models/conversationmessages.py +1 -1
- mistralai/models/conversationrequest.py +13 -3
- mistralai/models/conversationresponse.py +2 -1
- mistralai/models/conversationrestartrequest.py +22 -5
- mistralai/models/conversationrestartstreamrequest.py +24 -5
- mistralai/models/conversationstreamrequest.py +17 -3
- mistralai/models/documentlibrarytool.py +1 -1
- mistralai/models/documenturlchunk.py +1 -1
- mistralai/models/embeddingdtype.py +7 -1
- mistralai/models/encodingformat.py +4 -1
- mistralai/models/entitytype.py +8 -1
- mistralai/models/filepurpose.py +8 -1
- mistralai/models/files_api_routes_list_filesop.py +12 -12
- mistralai/models/files_api_routes_upload_fileop.py +2 -6
- mistralai/models/fileschema.py +3 -5
- mistralai/models/finetuneablemodeltype.py +4 -1
- mistralai/models/ftclassifierlossfunction.py +4 -1
- mistralai/models/ftmodelcard.py +1 -1
- mistralai/models/functioncallentry.py +3 -2
- mistralai/models/functioncallevent.py +1 -1
- mistralai/models/functionresultentry.py +3 -2
- mistralai/models/functiontool.py +1 -1
- mistralai/models/githubrepositoryin.py +1 -1
- mistralai/models/githubrepositoryout.py +1 -1
- mistralai/models/httpvalidationerror.py +4 -2
- mistralai/models/imagegenerationtool.py +1 -1
- mistralai/models/imageurlchunk.py +1 -1
- mistralai/models/jobsout.py +1 -1
- mistralai/models/legacyjobmetadataout.py +1 -1
- mistralai/models/messageinputentry.py +9 -3
- mistralai/models/messageoutputentry.py +6 -3
- mistralai/models/messageoutputevent.py +4 -2
- mistralai/models/mistralerror.py +11 -7
- mistralai/models/mistralpromptmode.py +5 -1
- mistralai/models/modelcapabilities.py +3 -0
- mistralai/models/modelconversation.py +1 -1
- mistralai/models/no_response_error.py +5 -1
- mistralai/models/ocrrequest.py +11 -1
- mistralai/models/ocrtableobject.py +4 -1
- mistralai/models/realtimetranscriptionerror.py +27 -0
- mistralai/models/realtimetranscriptionerrordetail.py +29 -0
- mistralai/models/realtimetranscriptionsession.py +20 -0
- mistralai/models/realtimetranscriptionsessioncreated.py +30 -0
- mistralai/models/realtimetranscriptionsessionupdated.py +30 -0
- mistralai/models/referencechunk.py +1 -1
- mistralai/models/requestsource.py +5 -1
- mistralai/models/responsedoneevent.py +1 -1
- mistralai/models/responseerrorevent.py +1 -1
- mistralai/models/responseformats.py +5 -1
- mistralai/models/responsestartedevent.py +1 -1
- mistralai/models/responsevalidationerror.py +2 -0
- mistralai/models/retrievefileout.py +3 -5
- mistralai/models/sampletype.py +7 -1
- mistralai/models/sdkerror.py +2 -0
- mistralai/models/shareenum.py +7 -1
- mistralai/models/sharingdelete.py +2 -4
- mistralai/models/sharingin.py +3 -5
- mistralai/models/source.py +8 -1
- mistralai/models/systemmessage.py +1 -1
- mistralai/models/textchunk.py +1 -1
- mistralai/models/thinkchunk.py +1 -1
- mistralai/models/timestampgranularity.py +4 -1
- mistralai/models/tool.py +2 -6
- mistralai/models/toolcall.py +2 -6
- mistralai/models/toolchoice.py +2 -6
- mistralai/models/toolchoiceenum.py +6 -1
- mistralai/models/toolexecutiondeltaevent.py +2 -1
- mistralai/models/toolexecutiondoneevent.py +2 -1
- mistralai/models/toolexecutionentry.py +4 -2
- mistralai/models/toolexecutionstartedevent.py +2 -1
- mistralai/models/toolfilechunk.py +2 -1
- mistralai/models/toolmessage.py +1 -1
- mistralai/models/toolreferencechunk.py +2 -1
- mistralai/models/tooltypes.py +1 -1
- mistralai/models/transcriptionsegmentchunk.py +42 -3
- mistralai/models/transcriptionstreamdone.py +1 -1
- mistralai/models/transcriptionstreamlanguage.py +1 -1
- mistralai/models/transcriptionstreamsegmentdelta.py +39 -3
- mistralai/models/transcriptionstreamtextdelta.py +1 -1
- mistralai/models/unarchiveftmodelout.py +1 -1
- mistralai/models/uploadfileout.py +3 -5
- mistralai/models/usermessage.py +1 -1
- mistralai/models/wandbintegration.py +1 -1
- mistralai/models/wandbintegrationout.py +1 -1
- mistralai/models/websearchpremiumtool.py +1 -1
- mistralai/models/websearchtool.py +1 -1
- mistralai/models_.py +24 -12
- mistralai/ocr.py +38 -10
- mistralai/sdk.py +2 -2
- mistralai/transcriptions.py +52 -12
- mistralai/types/basemodel.py +41 -3
- mistralai/utils/__init__.py +0 -3
- mistralai/utils/annotations.py +32 -8
- mistralai/utils/enums.py +60 -0
- mistralai/utils/forms.py +21 -10
- mistralai/utils/queryparams.py +14 -2
- mistralai/utils/requestbodies.py +3 -3
- mistralai/utils/retries.py +69 -5
- mistralai/utils/serializers.py +0 -20
- mistralai/utils/unmarshal_json_response.py +15 -1
- {mistralai-1.10.1.dist-info → mistralai-1.12.0.dist-info}/METADATA +28 -31
- {mistralai-1.10.1.dist-info → mistralai-1.12.0.dist-info}/RECORD +251 -237
- mistralai_azure/_version.py +3 -3
- mistralai_azure/basesdk.py +6 -0
- mistralai_azure/chat.py +27 -15
- mistralai_azure/httpclient.py +0 -1
- mistralai_azure/models/__init__.py +16 -1
- mistralai_azure/models/assistantmessage.py +1 -1
- mistralai_azure/models/chatcompletionchoice.py +10 -7
- mistralai_azure/models/chatcompletionrequest.py +8 -6
- mistralai_azure/models/chatcompletionstreamrequest.py +8 -6
- mistralai_azure/models/completionresponsestreamchoice.py +11 -7
- mistralai_azure/models/documenturlchunk.py +1 -1
- mistralai_azure/models/httpvalidationerror.py +4 -2
- mistralai_azure/models/imageurlchunk.py +1 -1
- mistralai_azure/models/mistralazureerror.py +11 -7
- mistralai_azure/models/mistralpromptmode.py +1 -1
- mistralai_azure/models/no_response_error.py +5 -1
- mistralai_azure/models/ocrpageobject.py +32 -5
- mistralai_azure/models/ocrrequest.py +20 -1
- mistralai_azure/models/ocrtableobject.py +34 -0
- mistralai_azure/models/referencechunk.py +1 -1
- mistralai_azure/models/responseformats.py +5 -1
- mistralai_azure/models/responsevalidationerror.py +2 -0
- mistralai_azure/models/sdkerror.py +2 -0
- mistralai_azure/models/systemmessage.py +1 -1
- mistralai_azure/models/textchunk.py +1 -1
- mistralai_azure/models/thinkchunk.py +1 -1
- mistralai_azure/models/tool.py +2 -6
- mistralai_azure/models/toolcall.py +2 -6
- mistralai_azure/models/toolchoice.py +2 -6
- mistralai_azure/models/toolchoiceenum.py +6 -1
- mistralai_azure/models/toolmessage.py +1 -1
- mistralai_azure/models/tooltypes.py +1 -1
- mistralai_azure/models/usermessage.py +1 -1
- mistralai_azure/ocr.py +26 -6
- mistralai_azure/types/basemodel.py +41 -3
- mistralai_azure/utils/__init__.py +0 -3
- mistralai_azure/utils/annotations.py +32 -8
- mistralai_azure/utils/enums.py +60 -0
- mistralai_azure/utils/forms.py +21 -10
- mistralai_azure/utils/queryparams.py +14 -2
- mistralai_azure/utils/requestbodies.py +3 -3
- mistralai_azure/utils/retries.py +69 -5
- mistralai_azure/utils/serializers.py +0 -20
- mistralai_azure/utils/unmarshal_json_response.py +15 -1
- mistralai_gcp/_version.py +3 -3
- mistralai_gcp/basesdk.py +6 -0
- mistralai_gcp/chat.py +27 -15
- mistralai_gcp/fim.py +27 -15
- mistralai_gcp/httpclient.py +0 -1
- mistralai_gcp/models/assistantmessage.py +1 -1
- mistralai_gcp/models/chatcompletionchoice.py +10 -7
- mistralai_gcp/models/chatcompletionrequest.py +8 -6
- mistralai_gcp/models/chatcompletionstreamrequest.py +8 -6
- mistralai_gcp/models/completionresponsestreamchoice.py +11 -7
- mistralai_gcp/models/fimcompletionrequest.py +6 -1
- mistralai_gcp/models/fimcompletionstreamrequest.py +6 -1
- mistralai_gcp/models/httpvalidationerror.py +4 -2
- mistralai_gcp/models/imageurlchunk.py +1 -1
- mistralai_gcp/models/mistralgcperror.py +11 -7
- mistralai_gcp/models/mistralpromptmode.py +1 -1
- mistralai_gcp/models/no_response_error.py +5 -1
- mistralai_gcp/models/referencechunk.py +1 -1
- mistralai_gcp/models/responseformats.py +5 -1
- mistralai_gcp/models/responsevalidationerror.py +2 -0
- mistralai_gcp/models/sdkerror.py +2 -0
- mistralai_gcp/models/systemmessage.py +1 -1
- mistralai_gcp/models/textchunk.py +1 -1
- mistralai_gcp/models/thinkchunk.py +1 -1
- mistralai_gcp/models/tool.py +2 -6
- mistralai_gcp/models/toolcall.py +2 -6
- mistralai_gcp/models/toolchoice.py +2 -6
- mistralai_gcp/models/toolchoiceenum.py +6 -1
- mistralai_gcp/models/toolmessage.py +1 -1
- mistralai_gcp/models/tooltypes.py +1 -1
- mistralai_gcp/models/usermessage.py +1 -1
- mistralai_gcp/types/basemodel.py +41 -3
- mistralai_gcp/utils/__init__.py +0 -3
- mistralai_gcp/utils/annotations.py +32 -8
- mistralai_gcp/utils/enums.py +60 -0
- mistralai_gcp/utils/forms.py +21 -10
- mistralai_gcp/utils/queryparams.py +14 -2
- mistralai_gcp/utils/requestbodies.py +3 -3
- mistralai_gcp/utils/retries.py +69 -5
- mistralai_gcp/utils/serializers.py +0 -20
- mistralai_gcp/utils/unmarshal_json_response.py +15 -1
- {mistralai-1.10.1.dist-info → mistralai-1.12.0.dist-info}/WHEEL +0 -0
- {mistralai-1.10.1.dist-info → mistralai-1.12.0.dist-info}/licenses/LICENSE +0 -0
mistralai/utils/serializers.py
CHANGED
|
@@ -102,26 +102,6 @@ def validate_int(b):
|
|
|
102
102
|
return int(b)
|
|
103
103
|
|
|
104
104
|
|
|
105
|
-
def validate_open_enum(is_int: bool):
|
|
106
|
-
def validate(e):
|
|
107
|
-
if e is None:
|
|
108
|
-
return None
|
|
109
|
-
|
|
110
|
-
if isinstance(e, Unset):
|
|
111
|
-
return e
|
|
112
|
-
|
|
113
|
-
if is_int:
|
|
114
|
-
if not isinstance(e, int):
|
|
115
|
-
raise ValueError("Expected int")
|
|
116
|
-
else:
|
|
117
|
-
if not isinstance(e, str):
|
|
118
|
-
raise ValueError("Expected string")
|
|
119
|
-
|
|
120
|
-
return e
|
|
121
|
-
|
|
122
|
-
return validate
|
|
123
|
-
|
|
124
|
-
|
|
125
105
|
def validate_const(v):
|
|
126
106
|
def validate(c):
|
|
127
107
|
# Optional[T] is a Union[T, None]
|
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
|
-
from typing import Any, Optional
|
|
3
|
+
from typing import Any, Optional, Type, TypeVar, overload
|
|
4
4
|
|
|
5
5
|
import httpx
|
|
6
6
|
|
|
7
7
|
from .serializers import unmarshal_json
|
|
8
8
|
from mistralai import models
|
|
9
9
|
|
|
10
|
+
T = TypeVar("T")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@overload
|
|
14
|
+
def unmarshal_json_response(
|
|
15
|
+
typ: Type[T], http_res: httpx.Response, body: Optional[str] = None
|
|
16
|
+
) -> T: ...
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@overload
|
|
20
|
+
def unmarshal_json_response(
|
|
21
|
+
typ: Any, http_res: httpx.Response, body: Optional[str] = None
|
|
22
|
+
) -> Any: ...
|
|
23
|
+
|
|
10
24
|
|
|
11
25
|
def unmarshal_json_response(
|
|
12
26
|
typ: Any, http_res: httpx.Response, body: Optional[str] = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mistralai
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.12.0
|
|
4
4
|
Summary: Python Client SDK for the Mistral AI API.
|
|
5
5
|
Project-URL: Repository, https://github.com/mistralai/client-python.git
|
|
6
6
|
Author: Mistral
|
|
@@ -24,6 +24,8 @@ Requires-Dist: mcp<2.0,>=1.0; extra == 'agents'
|
|
|
24
24
|
Provides-Extra: gcp
|
|
25
25
|
Requires-Dist: google-auth>=2.27.0; extra == 'gcp'
|
|
26
26
|
Requires-Dist: requests>=2.32.3; extra == 'gcp'
|
|
27
|
+
Provides-Extra: realtime
|
|
28
|
+
Requires-Dist: websockets>=13.0; extra == 'realtime'
|
|
27
29
|
Description-Content-Type: text/markdown
|
|
28
30
|
|
|
29
31
|
# Mistral Python Client
|
|
@@ -188,6 +190,7 @@ with Mistral(
|
|
|
188
190
|
</br>
|
|
189
191
|
|
|
190
192
|
The same SDK client can also be used to make asynchronous requests by importing asyncio.
|
|
193
|
+
|
|
191
194
|
```python
|
|
192
195
|
# Asynchronous Example
|
|
193
196
|
import asyncio
|
|
@@ -241,6 +244,7 @@ with Mistral(
|
|
|
241
244
|
</br>
|
|
242
245
|
|
|
243
246
|
The same SDK client can also be used to make asynchronous requests by importing asyncio.
|
|
247
|
+
|
|
244
248
|
```python
|
|
245
249
|
# Asynchronous Example
|
|
246
250
|
import asyncio
|
|
@@ -294,6 +298,7 @@ with Mistral(
|
|
|
294
298
|
</br>
|
|
295
299
|
|
|
296
300
|
The same SDK client can also be used to make asynchronous requests by importing asyncio.
|
|
301
|
+
|
|
297
302
|
```python
|
|
298
303
|
# Asynchronous Example
|
|
299
304
|
import asyncio
|
|
@@ -347,6 +352,7 @@ with Mistral(
|
|
|
347
352
|
</br>
|
|
348
353
|
|
|
349
354
|
The same SDK client can also be used to make asynchronous requests by importing asyncio.
|
|
355
|
+
|
|
350
356
|
```python
|
|
351
357
|
# Asynchronous Example
|
|
352
358
|
import asyncio
|
|
@@ -472,33 +478,24 @@ The documentation for the GCP SDK is available [here](packages/mistralai_gcp/REA
|
|
|
472
478
|
<details open>
|
|
473
479
|
<summary>Available methods</summary>
|
|
474
480
|
|
|
475
|
-
### [
|
|
481
|
+
### [Agents](docs/sdks/agents/README.md)
|
|
476
482
|
|
|
477
483
|
* [complete](docs/sdks/agents/README.md#complete) - Agents Completion
|
|
478
484
|
* [stream](docs/sdks/agents/README.md#stream) - Stream Agents completion
|
|
479
485
|
|
|
480
|
-
### [
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
#### [audio.transcriptions](docs/sdks/transcriptions/README.md)
|
|
486
|
+
### [Audio.Transcriptions](docs/sdks/transcriptions/README.md)
|
|
484
487
|
|
|
485
488
|
* [complete](docs/sdks/transcriptions/README.md#complete) - Create Transcription
|
|
486
489
|
* [stream](docs/sdks/transcriptions/README.md#stream) - Create Streaming Transcription (SSE)
|
|
487
490
|
|
|
488
|
-
### [
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
#### [batch.jobs](docs/sdks/mistraljobs/README.md)
|
|
491
|
+
### [Batch.Jobs](docs/sdks/mistraljobs/README.md)
|
|
492
492
|
|
|
493
493
|
* [list](docs/sdks/mistraljobs/README.md#list) - Get Batch Jobs
|
|
494
494
|
* [create](docs/sdks/mistraljobs/README.md#create) - Create Batch Job
|
|
495
495
|
* [get](docs/sdks/mistraljobs/README.md#get) - Get Batch Job
|
|
496
496
|
* [cancel](docs/sdks/mistraljobs/README.md#cancel) - Cancel Batch Job
|
|
497
497
|
|
|
498
|
-
### [
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
#### [beta.agents](docs/sdks/mistralagents/README.md)
|
|
498
|
+
### [Beta.Agents](docs/sdks/mistralagents/README.md)
|
|
502
499
|
|
|
503
500
|
* [create](docs/sdks/mistralagents/README.md#create) - Create a agent that can be used within a conversation.
|
|
504
501
|
* [list](docs/sdks/mistralagents/README.md#list) - List agent entities.
|
|
@@ -506,8 +503,12 @@ The documentation for the GCP SDK is available [here](packages/mistralai_gcp/REA
|
|
|
506
503
|
* [update](docs/sdks/mistralagents/README.md#update) - Update an agent entity.
|
|
507
504
|
* [delete](docs/sdks/mistralagents/README.md#delete) - Delete an agent entity.
|
|
508
505
|
* [update_version](docs/sdks/mistralagents/README.md#update_version) - Update an agent version.
|
|
506
|
+
* [list_versions](docs/sdks/mistralagents/README.md#list_versions) - List all versions of an agent.
|
|
507
|
+
* [get_version](docs/sdks/mistralagents/README.md#get_version) - Retrieve a specific version of an agent.
|
|
508
|
+
* [create_version_alias](docs/sdks/mistralagents/README.md#create_version_alias) - Create or update an agent version alias.
|
|
509
|
+
* [list_version_aliases](docs/sdks/mistralagents/README.md#list_version_aliases) - List all aliases for an agent.
|
|
509
510
|
|
|
510
|
-
|
|
511
|
+
### [Beta.Conversations](docs/sdks/conversations/README.md)
|
|
511
512
|
|
|
512
513
|
* [start](docs/sdks/conversations/README.md#start) - Create a conversation and append entries to it.
|
|
513
514
|
* [list](docs/sdks/conversations/README.md#list) - List all created conversations.
|
|
@@ -521,7 +522,7 @@ The documentation for the GCP SDK is available [here](packages/mistralai_gcp/REA
|
|
|
521
522
|
* [append_stream](docs/sdks/conversations/README.md#append_stream) - Append new entries to an existing conversation.
|
|
522
523
|
* [restart_stream](docs/sdks/conversations/README.md#restart_stream) - Restart a conversation starting from a given entry.
|
|
523
524
|
|
|
524
|
-
|
|
525
|
+
### [Beta.Libraries](docs/sdks/libraries/README.md)
|
|
525
526
|
|
|
526
527
|
* [list](docs/sdks/libraries/README.md#list) - List all libraries you have access to.
|
|
527
528
|
* [create](docs/sdks/libraries/README.md#create) - Create a new Library.
|
|
@@ -529,13 +530,13 @@ The documentation for the GCP SDK is available [here](packages/mistralai_gcp/REA
|
|
|
529
530
|
* [delete](docs/sdks/libraries/README.md#delete) - Delete a library and all of it's document.
|
|
530
531
|
* [update](docs/sdks/libraries/README.md#update) - Update a library.
|
|
531
532
|
|
|
532
|
-
#### [
|
|
533
|
+
#### [Beta.Libraries.Accesses](docs/sdks/accesses/README.md)
|
|
533
534
|
|
|
534
535
|
* [list](docs/sdks/accesses/README.md#list) - List all of the access to this library.
|
|
535
536
|
* [update_or_create](docs/sdks/accesses/README.md#update_or_create) - Create or update an access level.
|
|
536
537
|
* [delete](docs/sdks/accesses/README.md#delete) - Delete an access level.
|
|
537
538
|
|
|
538
|
-
#### [
|
|
539
|
+
#### [Beta.Libraries.Documents](docs/sdks/documents/README.md)
|
|
539
540
|
|
|
540
541
|
* [list](docs/sdks/documents/README.md#list) - List documents in a given library.
|
|
541
542
|
* [upload](docs/sdks/documents/README.md#upload) - Upload a new document.
|
|
@@ -548,23 +549,23 @@ The documentation for the GCP SDK is available [here](packages/mistralai_gcp/REA
|
|
|
548
549
|
* [extracted_text_signed_url](docs/sdks/documents/README.md#extracted_text_signed_url) - Retrieve the signed URL of text extracted from a given document.
|
|
549
550
|
* [reprocess](docs/sdks/documents/README.md#reprocess) - Reprocess a document.
|
|
550
551
|
|
|
551
|
-
### [
|
|
552
|
+
### [Chat](docs/sdks/chat/README.md)
|
|
552
553
|
|
|
553
554
|
* [complete](docs/sdks/chat/README.md#complete) - Chat Completion
|
|
554
555
|
* [stream](docs/sdks/chat/README.md#stream) - Stream chat completion
|
|
555
556
|
|
|
556
|
-
### [
|
|
557
|
+
### [Classifiers](docs/sdks/classifiers/README.md)
|
|
557
558
|
|
|
558
559
|
* [moderate](docs/sdks/classifiers/README.md#moderate) - Moderations
|
|
559
560
|
* [moderate_chat](docs/sdks/classifiers/README.md#moderate_chat) - Chat Moderations
|
|
560
561
|
* [classify](docs/sdks/classifiers/README.md#classify) - Classifications
|
|
561
562
|
* [classify_chat](docs/sdks/classifiers/README.md#classify_chat) - Chat Classifications
|
|
562
563
|
|
|
563
|
-
### [
|
|
564
|
+
### [Embeddings](docs/sdks/embeddings/README.md)
|
|
564
565
|
|
|
565
566
|
* [create](docs/sdks/embeddings/README.md#create) - Embeddings
|
|
566
567
|
|
|
567
|
-
### [
|
|
568
|
+
### [Files](docs/sdks/files/README.md)
|
|
568
569
|
|
|
569
570
|
* [upload](docs/sdks/files/README.md#upload) - Upload File
|
|
570
571
|
* [list](docs/sdks/files/README.md#list) - List Files
|
|
@@ -573,15 +574,12 @@ The documentation for the GCP SDK is available [here](packages/mistralai_gcp/REA
|
|
|
573
574
|
* [download](docs/sdks/files/README.md#download) - Download File
|
|
574
575
|
* [get_signed_url](docs/sdks/files/README.md#get_signed_url) - Get Signed Url
|
|
575
576
|
|
|
576
|
-
### [
|
|
577
|
+
### [Fim](docs/sdks/fim/README.md)
|
|
577
578
|
|
|
578
579
|
* [complete](docs/sdks/fim/README.md#complete) - Fim Completion
|
|
579
580
|
* [stream](docs/sdks/fim/README.md#stream) - Stream fim completion
|
|
580
581
|
|
|
581
|
-
### [
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
#### [fine_tuning.jobs](docs/sdks/jobs/README.md)
|
|
582
|
+
### [FineTuning.Jobs](docs/sdks/jobs/README.md)
|
|
585
583
|
|
|
586
584
|
* [list](docs/sdks/jobs/README.md#list) - Get Fine Tuning Jobs
|
|
587
585
|
* [create](docs/sdks/jobs/README.md#create) - Create Fine Tuning Job
|
|
@@ -589,8 +587,7 @@ The documentation for the GCP SDK is available [here](packages/mistralai_gcp/REA
|
|
|
589
587
|
* [cancel](docs/sdks/jobs/README.md#cancel) - Cancel Fine Tuning Job
|
|
590
588
|
* [start](docs/sdks/jobs/README.md#start) - Start Fine Tuning Job
|
|
591
589
|
|
|
592
|
-
|
|
593
|
-
### [models](docs/sdks/models/README.md)
|
|
590
|
+
### [Models](docs/sdks/models/README.md)
|
|
594
591
|
|
|
595
592
|
* [list](docs/sdks/models/README.md#list) - List Models
|
|
596
593
|
* [retrieve](docs/sdks/models/README.md#retrieve) - Retrieve Model
|
|
@@ -599,7 +596,7 @@ The documentation for the GCP SDK is available [here](packages/mistralai_gcp/REA
|
|
|
599
596
|
* [archive](docs/sdks/models/README.md#archive) - Archive Fine Tuned Model
|
|
600
597
|
* [unarchive](docs/sdks/models/README.md#unarchive) - Unarchive Fine Tuned Model
|
|
601
598
|
|
|
602
|
-
### [
|
|
599
|
+
### [Ocr](docs/sdks/ocr/README.md)
|
|
603
600
|
|
|
604
601
|
* [process](docs/sdks/ocr/README.md#process) - OCR
|
|
605
602
|
|
|
@@ -787,7 +784,7 @@ with Mistral(
|
|
|
787
784
|
|
|
788
785
|
|
|
789
786
|
**Inherit from [`MistralError`](./src/mistralai/models/mistralerror.py)**:
|
|
790
|
-
* [`HTTPValidationError`](./src/mistralai/models/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to
|
|
787
|
+
* [`HTTPValidationError`](./src/mistralai/models/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 52 of 74 methods.*
|
|
791
788
|
* [`ResponseValidationError`](./src/mistralai/models/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute.
|
|
792
789
|
|
|
793
790
|
</details>
|