mistralai 1.10.0__py3-none-any.whl → 1.11.1__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/tracing.py +28 -3
- mistralai/_version.py +3 -3
- mistralai/accesses.py +22 -12
- mistralai/agents.py +88 -44
- mistralai/basesdk.py +6 -0
- mistralai/chat.py +96 -40
- mistralai/classifiers.py +48 -23
- mistralai/conversations.py +186 -64
- mistralai/documents.py +72 -26
- mistralai/embeddings.py +24 -9
- mistralai/extra/README.md +1 -1
- mistralai/extra/mcp/auth.py +10 -11
- mistralai/extra/mcp/base.py +17 -16
- mistralai/extra/mcp/sse.py +13 -15
- mistralai/extra/mcp/stdio.py +5 -6
- mistralai/extra/observability/otel.py +47 -68
- mistralai/extra/run/context.py +33 -43
- mistralai/extra/run/result.py +29 -30
- mistralai/extra/run/tools.py +8 -9
- mistralai/extra/struct_chat.py +15 -8
- mistralai/extra/utils/response_format.py +5 -3
- mistralai/files.py +58 -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 +438 -30
- mistralai/mistral_jobs.py +62 -17
- mistralai/models/__init__.py +46 -1
- mistralai/models/agent.py +1 -1
- mistralai/models/agentconversation.py +1 -1
- mistralai/models/agenthandoffdoneevent.py +1 -1
- mistralai/models/agenthandoffentry.py +3 -2
- mistralai/models/agenthandoffstartedevent.py +1 -1
- mistralai/models/agents_api_v1_agents_get_versionop.py +21 -0
- mistralai/models/agents_api_v1_agents_list_versionsop.py +33 -0
- mistralai/models/agents_api_v1_agents_listop.py +5 -1
- mistralai/models/agents_api_v1_conversations_listop.py +1 -1
- 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 +18 -0
- mistralai/models/audioformat.py +17 -0
- mistralai/models/basemodelcard.py +1 -1
- mistralai/models/batchjobin.py +18 -9
- mistralai/models/batchjobout.py +6 -1
- mistralai/models/batchjobsout.py +1 -1
- mistralai/models/batchrequest.py +48 -0
- mistralai/models/chatcompletionchoice.py +10 -5
- mistralai/models/chatcompletionrequest.py +2 -5
- mistralai/models/chatcompletionstreamrequest.py +2 -5
- mistralai/models/classificationrequest.py +37 -3
- 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 +5 -1
- mistralai/models/conversationresponse.py +2 -1
- mistralai/models/conversationrestartrequest.py +4 -1
- mistralai/models/conversationrestartstreamrequest.py +4 -1
- mistralai/models/conversationstreamrequest.py +5 -1
- mistralai/models/documentlibrarytool.py +1 -1
- mistralai/models/documenturlchunk.py +1 -1
- mistralai/models/embeddingdtype.py +7 -1
- mistralai/models/embeddingrequest.py +11 -3
- 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 +4 -11
- 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/jobs_api_routes_batch_get_batch_jobop.py +40 -3
- 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 +1 -1
- 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/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 +1 -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 +13 -5
- mistralai/models/toolmessage.py +1 -1
- mistralai/models/toolreferencechunk.py +15 -5
- mistralai/models/tooltypes.py +1 -1
- mistralai/models/transcriptionsegmentchunk.py +1 -1
- mistralai/models/transcriptionstreamdone.py +1 -1
- mistralai/models/transcriptionstreamlanguage.py +1 -1
- mistralai/models/transcriptionstreamsegmentdelta.py +1 -1
- 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 +28 -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.0.dist-info → mistralai-1.11.1.dist-info}/METADATA +144 -159
- mistralai-1.11.1.dist-info/RECORD +495 -0
- {mistralai-1.10.0.dist-info → mistralai-1.11.1.dist-info}/WHEEL +1 -1
- mistralai_azure/_version.py +3 -3
- mistralai_azure/basesdk.py +21 -5
- mistralai_azure/chat.py +82 -109
- mistralai_azure/httpclient.py +0 -1
- mistralai_azure/models/__init__.py +66 -4
- mistralai_azure/models/assistantmessage.py +1 -1
- mistralai_azure/models/chatcompletionchoice.py +10 -7
- mistralai_azure/models/chatcompletionrequest.py +24 -10
- mistralai_azure/models/chatcompletionstreamrequest.py +24 -10
- mistralai_azure/models/completionresponsestreamchoice.py +11 -7
- mistralai_azure/models/documenturlchunk.py +1 -1
- mistralai_azure/models/httpvalidationerror.py +15 -8
- mistralai_azure/models/imageurlchunk.py +1 -1
- mistralai_azure/models/mistralazureerror.py +30 -0
- mistralai_azure/models/mistralpromptmode.py +1 -1
- mistralai_azure/models/no_response_error.py +17 -0
- mistralai_azure/models/ocrpageobject.py +32 -5
- mistralai_azure/models/ocrrequest.py +20 -1
- mistralai_azure/models/ocrtableobject.py +34 -0
- mistralai_azure/models/prediction.py +4 -0
- mistralai_azure/models/referencechunk.py +1 -1
- mistralai_azure/models/responseformat.py +4 -2
- mistralai_azure/models/responseformats.py +5 -2
- mistralai_azure/models/responsevalidationerror.py +27 -0
- mistralai_azure/models/sdkerror.py +32 -14
- mistralai_azure/models/systemmessage.py +8 -4
- mistralai_azure/models/systemmessagecontentchunks.py +21 -0
- mistralai_azure/models/textchunk.py +1 -1
- mistralai_azure/models/thinkchunk.py +35 -0
- 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 +39 -40
- mistralai_azure/types/basemodel.py +41 -3
- mistralai_azure/utils/__init__.py +18 -8
- mistralai_azure/utils/annotations.py +32 -8
- mistralai_azure/utils/enums.py +60 -0
- mistralai_azure/utils/eventstreaming.py +10 -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 +3 -22
- mistralai_azure/utils/unmarshal_json_response.py +38 -0
- mistralai_gcp/_hooks/types.py +7 -0
- mistralai_gcp/_version.py +4 -4
- mistralai_gcp/basesdk.py +33 -25
- mistralai_gcp/chat.py +98 -109
- mistralai_gcp/fim.py +62 -85
- mistralai_gcp/httpclient.py +6 -17
- mistralai_gcp/models/__init__.py +321 -116
- mistralai_gcp/models/assistantmessage.py +2 -2
- mistralai_gcp/models/chatcompletionchoice.py +10 -7
- mistralai_gcp/models/chatcompletionrequest.py +38 -7
- mistralai_gcp/models/chatcompletionresponse.py +6 -6
- mistralai_gcp/models/chatcompletionstreamrequest.py +38 -7
- mistralai_gcp/models/completionresponsestreamchoice.py +12 -8
- mistralai_gcp/models/deltamessage.py +1 -1
- mistralai_gcp/models/fimcompletionrequest.py +9 -10
- mistralai_gcp/models/fimcompletionresponse.py +6 -6
- mistralai_gcp/models/fimcompletionstreamrequest.py +9 -10
- mistralai_gcp/models/httpvalidationerror.py +15 -8
- mistralai_gcp/models/imageurl.py +1 -1
- mistralai_gcp/models/imageurlchunk.py +1 -1
- mistralai_gcp/models/jsonschema.py +1 -1
- mistralai_gcp/models/mistralgcperror.py +30 -0
- mistralai_gcp/models/mistralpromptmode.py +8 -0
- mistralai_gcp/models/no_response_error.py +17 -0
- mistralai_gcp/models/prediction.py +4 -0
- mistralai_gcp/models/referencechunk.py +1 -1
- mistralai_gcp/models/responseformat.py +5 -3
- mistralai_gcp/models/responseformats.py +5 -2
- mistralai_gcp/models/responsevalidationerror.py +27 -0
- mistralai_gcp/models/sdkerror.py +32 -14
- mistralai_gcp/models/systemmessage.py +8 -4
- mistralai_gcp/models/systemmessagecontentchunks.py +21 -0
- mistralai_gcp/models/textchunk.py +1 -1
- mistralai_gcp/models/thinkchunk.py +35 -0
- 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 +2 -2
- mistralai_gcp/models/tooltypes.py +1 -1
- mistralai_gcp/models/usageinfo.py +71 -8
- mistralai_gcp/models/usermessage.py +2 -2
- mistralai_gcp/sdk.py +12 -10
- mistralai_gcp/sdkconfiguration.py +0 -7
- mistralai_gcp/types/basemodel.py +41 -3
- mistralai_gcp/utils/__init__.py +141 -46
- mistralai_gcp/utils/annotations.py +32 -8
- mistralai_gcp/utils/datetimes.py +23 -0
- mistralai_gcp/utils/enums.py +125 -25
- mistralai_gcp/utils/eventstreaming.py +10 -0
- mistralai_gcp/utils/forms.py +62 -30
- 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 +33 -23
- mistralai_gcp/utils/unmarshal_json_response.py +38 -0
- mistralai-1.10.0.dist-info/RECORD +0 -475
- {mistralai-1.10.0.dist-info → mistralai-1.11.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,43 +1,36 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mistralai
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.11.1
|
|
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
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Requires-Python: >=3.10
|
|
9
|
+
Requires-Dist: eval-type-backport>=0.2.0
|
|
10
|
+
Requires-Dist: httpx>=0.28.1
|
|
11
|
+
Requires-Dist: invoke<3.0.0,>=2.2.0
|
|
12
|
+
Requires-Dist: opentelemetry-api<2.0.0,>=1.33.1
|
|
13
|
+
Requires-Dist: opentelemetry-exporter-otlp-proto-http<2.0.0,>=1.37.0
|
|
14
|
+
Requires-Dist: opentelemetry-sdk<2.0.0,>=1.33.1
|
|
15
|
+
Requires-Dist: opentelemetry-semantic-conventions<0.60,>=0.59b0
|
|
16
|
+
Requires-Dist: pydantic>=2.10.3
|
|
17
|
+
Requires-Dist: python-dateutil>=2.8.2
|
|
18
|
+
Requires-Dist: pyyaml<7.0.0,>=6.0.2
|
|
19
|
+
Requires-Dist: typing-inspection>=0.4.0
|
|
15
20
|
Provides-Extra: agents
|
|
21
|
+
Requires-Dist: authlib<2.0,>=1.5.2; extra == 'agents'
|
|
22
|
+
Requires-Dist: griffe<2.0,>=1.7.3; extra == 'agents'
|
|
23
|
+
Requires-Dist: mcp<2.0,>=1.0; extra == 'agents'
|
|
16
24
|
Provides-Extra: gcp
|
|
17
|
-
Requires-Dist:
|
|
18
|
-
Requires-Dist:
|
|
19
|
-
Requires-Dist: google-auth (>=2.27.0) ; extra == "gcp"
|
|
20
|
-
Requires-Dist: griffe (>=1.7.3,<2.0) ; extra == "agents"
|
|
21
|
-
Requires-Dist: httpx (>=0.28.1)
|
|
22
|
-
Requires-Dist: invoke (>=2.2.0,<3.0.0)
|
|
23
|
-
Requires-Dist: mcp (>=1.0,<2.0) ; (python_version >= "3.10") and (extra == "agents")
|
|
24
|
-
Requires-Dist: opentelemetry-api (>=1.33.1,<2.0.0)
|
|
25
|
-
Requires-Dist: opentelemetry-exporter-otlp-proto-http (>=1.37.0,<2.0.0)
|
|
26
|
-
Requires-Dist: opentelemetry-sdk (>=1.33.1,<2.0.0)
|
|
27
|
-
Requires-Dist: opentelemetry-semantic-conventions (>=0.59b0,<0.60)
|
|
28
|
-
Requires-Dist: pydantic (>=2.10.3)
|
|
29
|
-
Requires-Dist: python-dateutil (>=2.8.2)
|
|
30
|
-
Requires-Dist: pyyaml (>=6.0.2,<7.0.0)
|
|
31
|
-
Requires-Dist: requests (>=2.32.3) ; extra == "gcp"
|
|
32
|
-
Requires-Dist: typing-inspection (>=0.4.0)
|
|
33
|
-
Project-URL: Repository, https://github.com/mistralai/client-python.git
|
|
25
|
+
Requires-Dist: google-auth>=2.27.0; extra == 'gcp'
|
|
26
|
+
Requires-Dist: requests>=2.32.3; extra == 'gcp'
|
|
34
27
|
Description-Content-Type: text/markdown
|
|
35
28
|
|
|
36
29
|
# Mistral Python Client
|
|
37
30
|
|
|
38
31
|
## Migration warning
|
|
39
32
|
|
|
40
|
-
This documentation is for Mistral AI SDK v1. You can find more details on how to migrate from v0 to v1 [here](
|
|
33
|
+
This documentation is for Mistral AI SDK v1. You can find more details on how to migrate from v0 to v1 [here](MIGRATION.md)
|
|
41
34
|
|
|
42
35
|
## API Key Setup
|
|
43
36
|
|
|
@@ -63,25 +56,25 @@ Mistral AI API: Our Chat Completion and Embeddings APIs specification. Create yo
|
|
|
63
56
|
<!-- Start Table of Contents [toc] -->
|
|
64
57
|
## Table of Contents
|
|
65
58
|
<!-- $toc-max-depth=2 -->
|
|
66
|
-
* [Mistral Python Client](
|
|
67
|
-
* [Migration warning](
|
|
68
|
-
* [API Key Setup](
|
|
69
|
-
* [SDK Installation](
|
|
70
|
-
* [SDK Example Usage](
|
|
71
|
-
* [Providers' SDKs Example Usage](
|
|
72
|
-
* [Available Resources and Operations](
|
|
73
|
-
* [Server-sent event streaming](
|
|
74
|
-
* [File uploads](
|
|
75
|
-
* [Retries](
|
|
76
|
-
* [Error Handling](
|
|
77
|
-
* [Server Selection](
|
|
78
|
-
* [Custom HTTP Client](
|
|
79
|
-
* [Authentication](
|
|
80
|
-
* [Resource Management](
|
|
81
|
-
* [Debugging](
|
|
82
|
-
* [IDE Support](
|
|
83
|
-
* [Development](
|
|
84
|
-
* [Contributions](
|
|
59
|
+
* [Mistral Python Client](#mistral-python-client)
|
|
60
|
+
* [Migration warning](#migration-warning)
|
|
61
|
+
* [API Key Setup](#api-key-setup)
|
|
62
|
+
* [SDK Installation](#sdk-installation)
|
|
63
|
+
* [SDK Example Usage](#sdk-example-usage)
|
|
64
|
+
* [Providers' SDKs Example Usage](#providers-sdks-example-usage)
|
|
65
|
+
* [Available Resources and Operations](#available-resources-and-operations)
|
|
66
|
+
* [Server-sent event streaming](#server-sent-event-streaming)
|
|
67
|
+
* [File uploads](#file-uploads)
|
|
68
|
+
* [Retries](#retries)
|
|
69
|
+
* [Error Handling](#error-handling)
|
|
70
|
+
* [Server Selection](#server-selection)
|
|
71
|
+
* [Custom HTTP Client](#custom-http-client)
|
|
72
|
+
* [Authentication](#authentication)
|
|
73
|
+
* [Resource Management](#resource-management)
|
|
74
|
+
* [Debugging](#debugging)
|
|
75
|
+
* [IDE Support](#ide-support)
|
|
76
|
+
* [Development](#development)
|
|
77
|
+
* [Contributions](#contributions)
|
|
85
78
|
|
|
86
79
|
<!-- End Table of Contents [toc] -->
|
|
87
80
|
|
|
@@ -160,8 +153,7 @@ installing the package:
|
|
|
160
153
|
pip install "mistralai[agents]"
|
|
161
154
|
```
|
|
162
155
|
|
|
163
|
-
> Note:
|
|
164
|
-
> 3.10.
|
|
156
|
+
> Note: These features require Python 3.10+ (the SDK minimum).
|
|
165
157
|
|
|
166
158
|
<!-- Start SDK Example Usage [usage] -->
|
|
167
159
|
## SDK Example Usage
|
|
@@ -196,6 +188,7 @@ with Mistral(
|
|
|
196
188
|
</br>
|
|
197
189
|
|
|
198
190
|
The same SDK client can also be used to make asynchronous requests by importing asyncio.
|
|
191
|
+
|
|
199
192
|
```python
|
|
200
193
|
# Asynchronous Example
|
|
201
194
|
import asyncio
|
|
@@ -249,6 +242,7 @@ with Mistral(
|
|
|
249
242
|
</br>
|
|
250
243
|
|
|
251
244
|
The same SDK client can also be used to make asynchronous requests by importing asyncio.
|
|
245
|
+
|
|
252
246
|
```python
|
|
253
247
|
# Asynchronous Example
|
|
254
248
|
import asyncio
|
|
@@ -302,6 +296,7 @@ with Mistral(
|
|
|
302
296
|
</br>
|
|
303
297
|
|
|
304
298
|
The same SDK client can also be used to make asynchronous requests by importing asyncio.
|
|
299
|
+
|
|
305
300
|
```python
|
|
306
301
|
# Asynchronous Example
|
|
307
302
|
import asyncio
|
|
@@ -355,6 +350,7 @@ with Mistral(
|
|
|
355
350
|
</br>
|
|
356
351
|
|
|
357
352
|
The same SDK client can also be used to make asynchronous requests by importing asyncio.
|
|
353
|
+
|
|
358
354
|
```python
|
|
359
355
|
# Asynchronous Example
|
|
360
356
|
import asyncio
|
|
@@ -382,7 +378,7 @@ asyncio.run(main())
|
|
|
382
378
|
|
|
383
379
|
### More examples
|
|
384
380
|
|
|
385
|
-
You can run the examples in the `examples/` directory using `
|
|
381
|
+
You can run the examples in the `examples/` directory using `uv run`.
|
|
386
382
|
|
|
387
383
|
|
|
388
384
|
## Providers' SDKs Example Usage
|
|
@@ -394,7 +390,7 @@ You can run the examples in the `examples/` directory using `poetry run` or by e
|
|
|
394
390
|
Before you begin, ensure you have `AZUREAI_ENDPOINT` and an `AZURE_API_KEY`. To obtain these, you will need to deploy Mistral on Azure AI.
|
|
395
391
|
See [instructions for deploying Mistral on Azure AI here](https://docs.mistral.ai/deployment/cloud/azure/).
|
|
396
392
|
|
|
397
|
-
Here's a basic example to get you started. You can also run [the example in the `examples` directory](
|
|
393
|
+
Here's a basic example to get you started. You can also run [the example in the `examples` directory](/examples/azure).
|
|
398
394
|
|
|
399
395
|
```python
|
|
400
396
|
import asyncio
|
|
@@ -422,7 +418,7 @@ async def main() -> None:
|
|
|
422
418
|
|
|
423
419
|
asyncio.run(main())
|
|
424
420
|
```
|
|
425
|
-
The documentation for the Azure SDK is available [here](
|
|
421
|
+
The documentation for the Azure SDK is available [here](packages/mistralai_azure/README.md).
|
|
426
422
|
|
|
427
423
|
### Google Cloud
|
|
428
424
|
|
|
@@ -471,7 +467,7 @@ async def main() -> None:
|
|
|
471
467
|
asyncio.run(main())
|
|
472
468
|
```
|
|
473
469
|
|
|
474
|
-
The documentation for the GCP SDK is available [here](
|
|
470
|
+
The documentation for the GCP SDK is available [here](packages/mistralai_gcp/README.md).
|
|
475
471
|
|
|
476
472
|
|
|
477
473
|
<!-- Start Available Resources and Operations [operations] -->
|
|
@@ -480,136 +476,125 @@ The documentation for the GCP SDK is available [here](https://github.com/mistral
|
|
|
480
476
|
<details open>
|
|
481
477
|
<summary>Available methods</summary>
|
|
482
478
|
|
|
483
|
-
### [
|
|
484
|
-
|
|
485
|
-
* [complete](https://github.com/mistralai/client-python/blob/master/docs/sdks/agents/README.md#complete) - Agents Completion
|
|
486
|
-
* [stream](https://github.com/mistralai/client-python/blob/master/docs/sdks/agents/README.md#stream) - Stream Agents completion
|
|
487
|
-
|
|
488
|
-
### [audio](https://github.com/mistralai/client-python/blob/master/docs/sdks/audio/README.md)
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
#### [audio.transcriptions](https://github.com/mistralai/client-python/blob/master/docs/sdks/transcriptions/README.md)
|
|
492
|
-
|
|
493
|
-
* [complete](https://github.com/mistralai/client-python/blob/master/docs/sdks/transcriptions/README.md#complete) - Create Transcription
|
|
494
|
-
* [stream](https://github.com/mistralai/client-python/blob/master/docs/sdks/transcriptions/README.md#stream) - Create Streaming Transcription (SSE)
|
|
495
|
-
|
|
496
|
-
### [batch](https://github.com/mistralai/client-python/blob/master/docs/sdks/batch/README.md)
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
#### [batch.jobs](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistraljobs/README.md)
|
|
500
|
-
|
|
501
|
-
* [list](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistraljobs/README.md#list) - Get Batch Jobs
|
|
502
|
-
* [create](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistraljobs/README.md#create) - Create Batch Job
|
|
503
|
-
* [get](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistraljobs/README.md#get) - Get Batch Job
|
|
504
|
-
* [cancel](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistraljobs/README.md#cancel) - Cancel Batch Job
|
|
479
|
+
### [Agents](docs/sdks/agents/README.md)
|
|
505
480
|
|
|
506
|
-
|
|
481
|
+
* [complete](docs/sdks/agents/README.md#complete) - Agents Completion
|
|
482
|
+
* [stream](docs/sdks/agents/README.md#stream) - Stream Agents completion
|
|
507
483
|
|
|
484
|
+
### [Audio.Transcriptions](docs/sdks/transcriptions/README.md)
|
|
508
485
|
|
|
509
|
-
|
|
486
|
+
* [complete](docs/sdks/transcriptions/README.md#complete) - Create Transcription
|
|
487
|
+
* [stream](docs/sdks/transcriptions/README.md#stream) - Create Streaming Transcription (SSE)
|
|
510
488
|
|
|
511
|
-
|
|
512
|
-
* [list](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistralagents/README.md#list) - List agent entities.
|
|
513
|
-
* [get](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistralagents/README.md#get) - Retrieve an agent entity.
|
|
514
|
-
* [update](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistralagents/README.md#update) - Update an agent entity.
|
|
515
|
-
* [delete](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistralagents/README.md#delete) - Delete an agent entity.
|
|
516
|
-
* [update_version](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistralagents/README.md#update_version) - Update an agent version.
|
|
489
|
+
### [Batch.Jobs](docs/sdks/mistraljobs/README.md)
|
|
517
490
|
|
|
518
|
-
|
|
491
|
+
* [list](docs/sdks/mistraljobs/README.md#list) - Get Batch Jobs
|
|
492
|
+
* [create](docs/sdks/mistraljobs/README.md#create) - Create Batch Job
|
|
493
|
+
* [get](docs/sdks/mistraljobs/README.md#get) - Get Batch Job
|
|
494
|
+
* [cancel](docs/sdks/mistraljobs/README.md#cancel) - Cancel Batch Job
|
|
519
495
|
|
|
520
|
-
|
|
521
|
-
* [list](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#list) - List all created conversations.
|
|
522
|
-
* [get](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#get) - Retrieve a conversation information.
|
|
523
|
-
* [delete](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#delete) - Delete a conversation.
|
|
524
|
-
* [append](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#append) - Append new entries to an existing conversation.
|
|
525
|
-
* [get_history](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#get_history) - Retrieve all entries in a conversation.
|
|
526
|
-
* [get_messages](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#get_messages) - Retrieve all messages in a conversation.
|
|
527
|
-
* [restart](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#restart) - Restart a conversation starting from a given entry.
|
|
528
|
-
* [start_stream](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#start_stream) - Create a conversation and append entries to it.
|
|
529
|
-
* [append_stream](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#append_stream) - Append new entries to an existing conversation.
|
|
530
|
-
* [restart_stream](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#restart_stream) - Restart a conversation starting from a given entry.
|
|
496
|
+
### [Beta.Agents](docs/sdks/mistralagents/README.md)
|
|
531
497
|
|
|
532
|
-
|
|
498
|
+
* [create](docs/sdks/mistralagents/README.md#create) - Create a agent that can be used within a conversation.
|
|
499
|
+
* [list](docs/sdks/mistralagents/README.md#list) - List agent entities.
|
|
500
|
+
* [get](docs/sdks/mistralagents/README.md#get) - Retrieve an agent entity.
|
|
501
|
+
* [update](docs/sdks/mistralagents/README.md#update) - Update an agent entity.
|
|
502
|
+
* [delete](docs/sdks/mistralagents/README.md#delete) - Delete an agent entity.
|
|
503
|
+
* [update_version](docs/sdks/mistralagents/README.md#update_version) - Update an agent version.
|
|
504
|
+
* [list_versions](docs/sdks/mistralagents/README.md#list_versions) - List all versions of an agent.
|
|
505
|
+
* [get_version](docs/sdks/mistralagents/README.md#get_version) - Retrieve a specific version of an agent.
|
|
533
506
|
|
|
534
|
-
|
|
535
|
-
* [create](https://github.com/mistralai/client-python/blob/master/docs/sdks/libraries/README.md#create) - Create a new Library.
|
|
536
|
-
* [get](https://github.com/mistralai/client-python/blob/master/docs/sdks/libraries/README.md#get) - Detailed information about a specific Library.
|
|
537
|
-
* [delete](https://github.com/mistralai/client-python/blob/master/docs/sdks/libraries/README.md#delete) - Delete a library and all of it's document.
|
|
538
|
-
* [update](https://github.com/mistralai/client-python/blob/master/docs/sdks/libraries/README.md#update) - Update a library.
|
|
507
|
+
### [Beta.Conversations](docs/sdks/conversations/README.md)
|
|
539
508
|
|
|
540
|
-
|
|
509
|
+
* [start](docs/sdks/conversations/README.md#start) - Create a conversation and append entries to it.
|
|
510
|
+
* [list](docs/sdks/conversations/README.md#list) - List all created conversations.
|
|
511
|
+
* [get](docs/sdks/conversations/README.md#get) - Retrieve a conversation information.
|
|
512
|
+
* [delete](docs/sdks/conversations/README.md#delete) - Delete a conversation.
|
|
513
|
+
* [append](docs/sdks/conversations/README.md#append) - Append new entries to an existing conversation.
|
|
514
|
+
* [get_history](docs/sdks/conversations/README.md#get_history) - Retrieve all entries in a conversation.
|
|
515
|
+
* [get_messages](docs/sdks/conversations/README.md#get_messages) - Retrieve all messages in a conversation.
|
|
516
|
+
* [restart](docs/sdks/conversations/README.md#restart) - Restart a conversation starting from a given entry.
|
|
517
|
+
* [start_stream](docs/sdks/conversations/README.md#start_stream) - Create a conversation and append entries to it.
|
|
518
|
+
* [append_stream](docs/sdks/conversations/README.md#append_stream) - Append new entries to an existing conversation.
|
|
519
|
+
* [restart_stream](docs/sdks/conversations/README.md#restart_stream) - Restart a conversation starting from a given entry.
|
|
541
520
|
|
|
542
|
-
|
|
543
|
-
* [update_or_create](https://github.com/mistralai/client-python/blob/master/docs/sdks/accesses/README.md#update_or_create) - Create or update an access level.
|
|
544
|
-
* [delete](https://github.com/mistralai/client-python/blob/master/docs/sdks/accesses/README.md#delete) - Delete an access level.
|
|
521
|
+
### [Beta.Libraries](docs/sdks/libraries/README.md)
|
|
545
522
|
|
|
546
|
-
|
|
523
|
+
* [list](docs/sdks/libraries/README.md#list) - List all libraries you have access to.
|
|
524
|
+
* [create](docs/sdks/libraries/README.md#create) - Create a new Library.
|
|
525
|
+
* [get](docs/sdks/libraries/README.md#get) - Detailed information about a specific Library.
|
|
526
|
+
* [delete](docs/sdks/libraries/README.md#delete) - Delete a library and all of it's document.
|
|
527
|
+
* [update](docs/sdks/libraries/README.md#update) - Update a library.
|
|
547
528
|
|
|
548
|
-
|
|
549
|
-
* [upload](https://github.com/mistralai/client-python/blob/master/docs/sdks/documents/README.md#upload) - Upload a new document.
|
|
550
|
-
* [get](https://github.com/mistralai/client-python/blob/master/docs/sdks/documents/README.md#get) - Retrieve the metadata of a specific document.
|
|
551
|
-
* [update](https://github.com/mistralai/client-python/blob/master/docs/sdks/documents/README.md#update) - Update the metadata of a specific document.
|
|
552
|
-
* [delete](https://github.com/mistralai/client-python/blob/master/docs/sdks/documents/README.md#delete) - Delete a document.
|
|
553
|
-
* [text_content](https://github.com/mistralai/client-python/blob/master/docs/sdks/documents/README.md#text_content) - Retrieve the text content of a specific document.
|
|
554
|
-
* [status](https://github.com/mistralai/client-python/blob/master/docs/sdks/documents/README.md#status) - Retrieve the processing status of a specific document.
|
|
555
|
-
* [get_signed_url](https://github.com/mistralai/client-python/blob/master/docs/sdks/documents/README.md#get_signed_url) - Retrieve the signed URL of a specific document.
|
|
556
|
-
* [extracted_text_signed_url](https://github.com/mistralai/client-python/blob/master/docs/sdks/documents/README.md#extracted_text_signed_url) - Retrieve the signed URL of text extracted from a given document.
|
|
557
|
-
* [reprocess](https://github.com/mistralai/client-python/blob/master/docs/sdks/documents/README.md#reprocess) - Reprocess a document.
|
|
529
|
+
#### [Beta.Libraries.Accesses](docs/sdks/accesses/README.md)
|
|
558
530
|
|
|
559
|
-
|
|
531
|
+
* [list](docs/sdks/accesses/README.md#list) - List all of the access to this library.
|
|
532
|
+
* [update_or_create](docs/sdks/accesses/README.md#update_or_create) - Create or update an access level.
|
|
533
|
+
* [delete](docs/sdks/accesses/README.md#delete) - Delete an access level.
|
|
560
534
|
|
|
561
|
-
|
|
562
|
-
* [stream](https://github.com/mistralai/client-python/blob/master/docs/sdks/chat/README.md#stream) - Stream chat completion
|
|
535
|
+
#### [Beta.Libraries.Documents](docs/sdks/documents/README.md)
|
|
563
536
|
|
|
564
|
-
|
|
537
|
+
* [list](docs/sdks/documents/README.md#list) - List documents in a given library.
|
|
538
|
+
* [upload](docs/sdks/documents/README.md#upload) - Upload a new document.
|
|
539
|
+
* [get](docs/sdks/documents/README.md#get) - Retrieve the metadata of a specific document.
|
|
540
|
+
* [update](docs/sdks/documents/README.md#update) - Update the metadata of a specific document.
|
|
541
|
+
* [delete](docs/sdks/documents/README.md#delete) - Delete a document.
|
|
542
|
+
* [text_content](docs/sdks/documents/README.md#text_content) - Retrieve the text content of a specific document.
|
|
543
|
+
* [status](docs/sdks/documents/README.md#status) - Retrieve the processing status of a specific document.
|
|
544
|
+
* [get_signed_url](docs/sdks/documents/README.md#get_signed_url) - Retrieve the signed URL of a specific document.
|
|
545
|
+
* [extracted_text_signed_url](docs/sdks/documents/README.md#extracted_text_signed_url) - Retrieve the signed URL of text extracted from a given document.
|
|
546
|
+
* [reprocess](docs/sdks/documents/README.md#reprocess) - Reprocess a document.
|
|
565
547
|
|
|
566
|
-
|
|
567
|
-
* [moderate_chat](https://github.com/mistralai/client-python/blob/master/docs/sdks/classifiers/README.md#moderate_chat) - Chat Moderations
|
|
568
|
-
* [classify](https://github.com/mistralai/client-python/blob/master/docs/sdks/classifiers/README.md#classify) - Classifications
|
|
569
|
-
* [classify_chat](https://github.com/mistralai/client-python/blob/master/docs/sdks/classifiers/README.md#classify_chat) - Chat Classifications
|
|
548
|
+
### [Chat](docs/sdks/chat/README.md)
|
|
570
549
|
|
|
571
|
-
|
|
550
|
+
* [complete](docs/sdks/chat/README.md#complete) - Chat Completion
|
|
551
|
+
* [stream](docs/sdks/chat/README.md#stream) - Stream chat completion
|
|
572
552
|
|
|
573
|
-
|
|
553
|
+
### [Classifiers](docs/sdks/classifiers/README.md)
|
|
574
554
|
|
|
575
|
-
|
|
555
|
+
* [moderate](docs/sdks/classifiers/README.md#moderate) - Moderations
|
|
556
|
+
* [moderate_chat](docs/sdks/classifiers/README.md#moderate_chat) - Chat Moderations
|
|
557
|
+
* [classify](docs/sdks/classifiers/README.md#classify) - Classifications
|
|
558
|
+
* [classify_chat](docs/sdks/classifiers/README.md#classify_chat) - Chat Classifications
|
|
576
559
|
|
|
577
|
-
|
|
578
|
-
* [list](https://github.com/mistralai/client-python/blob/master/docs/sdks/files/README.md#list) - List Files
|
|
579
|
-
* [retrieve](https://github.com/mistralai/client-python/blob/master/docs/sdks/files/README.md#retrieve) - Retrieve File
|
|
580
|
-
* [delete](https://github.com/mistralai/client-python/blob/master/docs/sdks/files/README.md#delete) - Delete File
|
|
581
|
-
* [download](https://github.com/mistralai/client-python/blob/master/docs/sdks/files/README.md#download) - Download File
|
|
582
|
-
* [get_signed_url](https://github.com/mistralai/client-python/blob/master/docs/sdks/files/README.md#get_signed_url) - Get Signed Url
|
|
560
|
+
### [Embeddings](docs/sdks/embeddings/README.md)
|
|
583
561
|
|
|
584
|
-
|
|
562
|
+
* [create](docs/sdks/embeddings/README.md#create) - Embeddings
|
|
585
563
|
|
|
586
|
-
|
|
587
|
-
* [stream](https://github.com/mistralai/client-python/blob/master/docs/sdks/fim/README.md#stream) - Stream fim completion
|
|
564
|
+
### [Files](docs/sdks/files/README.md)
|
|
588
565
|
|
|
589
|
-
|
|
566
|
+
* [upload](docs/sdks/files/README.md#upload) - Upload File
|
|
567
|
+
* [list](docs/sdks/files/README.md#list) - List Files
|
|
568
|
+
* [retrieve](docs/sdks/files/README.md#retrieve) - Retrieve File
|
|
569
|
+
* [delete](docs/sdks/files/README.md#delete) - Delete File
|
|
570
|
+
* [download](docs/sdks/files/README.md#download) - Download File
|
|
571
|
+
* [get_signed_url](docs/sdks/files/README.md#get_signed_url) - Get Signed Url
|
|
590
572
|
|
|
573
|
+
### [Fim](docs/sdks/fim/README.md)
|
|
591
574
|
|
|
592
|
-
|
|
575
|
+
* [complete](docs/sdks/fim/README.md#complete) - Fim Completion
|
|
576
|
+
* [stream](docs/sdks/fim/README.md#stream) - Stream fim completion
|
|
593
577
|
|
|
594
|
-
|
|
595
|
-
* [create](https://github.com/mistralai/client-python/blob/master/docs/sdks/jobs/README.md#create) - Create Fine Tuning Job
|
|
596
|
-
* [get](https://github.com/mistralai/client-python/blob/master/docs/sdks/jobs/README.md#get) - Get Fine Tuning Job
|
|
597
|
-
* [cancel](https://github.com/mistralai/client-python/blob/master/docs/sdks/jobs/README.md#cancel) - Cancel Fine Tuning Job
|
|
598
|
-
* [start](https://github.com/mistralai/client-python/blob/master/docs/sdks/jobs/README.md#start) - Start Fine Tuning Job
|
|
578
|
+
### [FineTuning.Jobs](docs/sdks/jobs/README.md)
|
|
599
579
|
|
|
580
|
+
* [list](docs/sdks/jobs/README.md#list) - Get Fine Tuning Jobs
|
|
581
|
+
* [create](docs/sdks/jobs/README.md#create) - Create Fine Tuning Job
|
|
582
|
+
* [get](docs/sdks/jobs/README.md#get) - Get Fine Tuning Job
|
|
583
|
+
* [cancel](docs/sdks/jobs/README.md#cancel) - Cancel Fine Tuning Job
|
|
584
|
+
* [start](docs/sdks/jobs/README.md#start) - Start Fine Tuning Job
|
|
600
585
|
|
|
601
|
-
### [
|
|
586
|
+
### [Models](docs/sdks/models/README.md)
|
|
602
587
|
|
|
603
|
-
* [list](
|
|
604
|
-
* [retrieve](
|
|
605
|
-
* [delete](
|
|
606
|
-
* [update](
|
|
607
|
-
* [archive](
|
|
608
|
-
* [unarchive](
|
|
588
|
+
* [list](docs/sdks/models/README.md#list) - List Models
|
|
589
|
+
* [retrieve](docs/sdks/models/README.md#retrieve) - Retrieve Model
|
|
590
|
+
* [delete](docs/sdks/models/README.md#delete) - Delete Model
|
|
591
|
+
* [update](docs/sdks/models/README.md#update) - Update Fine Tuned Model
|
|
592
|
+
* [archive](docs/sdks/models/README.md#archive) - Archive Fine Tuned Model
|
|
593
|
+
* [unarchive](docs/sdks/models/README.md#unarchive) - Unarchive Fine Tuned Model
|
|
609
594
|
|
|
610
|
-
### [
|
|
595
|
+
### [Ocr](docs/sdks/ocr/README.md)
|
|
611
596
|
|
|
612
|
-
* [process](
|
|
597
|
+
* [process](docs/sdks/ocr/README.md#process) - OCR
|
|
613
598
|
|
|
614
599
|
</details>
|
|
615
600
|
<!-- End Available Resources and Operations [operations] -->
|
|
@@ -737,7 +722,7 @@ with Mistral(
|
|
|
737
722
|
<!-- Start Error Handling [errors] -->
|
|
738
723
|
## Error Handling
|
|
739
724
|
|
|
740
|
-
[`MistralError`](
|
|
725
|
+
[`MistralError`](./src/mistralai/models/mistralerror.py) is the base class for all HTTP error responses. It has the following properties:
|
|
741
726
|
|
|
742
727
|
| Property | Type | Description |
|
|
743
728
|
| ------------------ | ---------------- | --------------------------------------------------------------------------------------- |
|
|
@@ -746,7 +731,7 @@ with Mistral(
|
|
|
746
731
|
| `err.headers` | `httpx.Headers` | HTTP response headers |
|
|
747
732
|
| `err.body` | `str` | HTTP body. Can be empty string if no body is returned. |
|
|
748
733
|
| `err.raw_response` | `httpx.Response` | Raw HTTP response |
|
|
749
|
-
| `err.data` | | Optional. Some errors may contain structured data. [See Error Classes](
|
|
734
|
+
| `err.data` | | Optional. Some errors may contain structured data. [See Error Classes](#error-classes). |
|
|
750
735
|
|
|
751
736
|
### Example
|
|
752
737
|
```python
|
|
@@ -782,7 +767,7 @@ with Mistral(
|
|
|
782
767
|
|
|
783
768
|
### Error Classes
|
|
784
769
|
**Primary error:**
|
|
785
|
-
* [`MistralError`](
|
|
770
|
+
* [`MistralError`](./src/mistralai/models/mistralerror.py): The base class for HTTP error responses.
|
|
786
771
|
|
|
787
772
|
<details><summary>Less common errors (6)</summary>
|
|
788
773
|
|
|
@@ -794,13 +779,13 @@ with Mistral(
|
|
|
794
779
|
* [`httpx.TimeoutException`](https://www.python-httpx.org/exceptions/#httpx.TimeoutException): HTTP request timed out.
|
|
795
780
|
|
|
796
781
|
|
|
797
|
-
**Inherit from [`MistralError`](
|
|
798
|
-
* [`HTTPValidationError`](
|
|
799
|
-
* [`ResponseValidationError`](
|
|
782
|
+
**Inherit from [`MistralError`](./src/mistralai/models/mistralerror.py)**:
|
|
783
|
+
* [`HTTPValidationError`](./src/mistralai/models/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 50 of 72 methods.*
|
|
784
|
+
* [`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.
|
|
800
785
|
|
|
801
786
|
</details>
|
|
802
787
|
|
|
803
|
-
\* Check [the method documentation](
|
|
788
|
+
\* Check [the method documentation](#available-resources-and-operations) to see if the error is applicable.
|
|
804
789
|
<!-- End Error Handling [errors] -->
|
|
805
790
|
|
|
806
791
|
<!-- Start Server Selection [server] -->
|