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.
Files changed (270) hide show
  1. mistralai/_hooks/tracing.py +28 -3
  2. mistralai/_version.py +3 -3
  3. mistralai/accesses.py +22 -12
  4. mistralai/agents.py +88 -44
  5. mistralai/basesdk.py +6 -0
  6. mistralai/chat.py +96 -40
  7. mistralai/classifiers.py +48 -23
  8. mistralai/conversations.py +186 -64
  9. mistralai/documents.py +72 -26
  10. mistralai/embeddings.py +24 -9
  11. mistralai/extra/README.md +1 -1
  12. mistralai/extra/mcp/auth.py +10 -11
  13. mistralai/extra/mcp/base.py +17 -16
  14. mistralai/extra/mcp/sse.py +13 -15
  15. mistralai/extra/mcp/stdio.py +5 -6
  16. mistralai/extra/observability/otel.py +47 -68
  17. mistralai/extra/run/context.py +33 -43
  18. mistralai/extra/run/result.py +29 -30
  19. mistralai/extra/run/tools.py +8 -9
  20. mistralai/extra/struct_chat.py +15 -8
  21. mistralai/extra/utils/response_format.py +5 -3
  22. mistralai/files.py +58 -24
  23. mistralai/fim.py +20 -12
  24. mistralai/httpclient.py +0 -1
  25. mistralai/jobs.py +65 -26
  26. mistralai/libraries.py +20 -10
  27. mistralai/mistral_agents.py +438 -30
  28. mistralai/mistral_jobs.py +62 -17
  29. mistralai/models/__init__.py +46 -1
  30. mistralai/models/agent.py +1 -1
  31. mistralai/models/agentconversation.py +1 -1
  32. mistralai/models/agenthandoffdoneevent.py +1 -1
  33. mistralai/models/agenthandoffentry.py +3 -2
  34. mistralai/models/agenthandoffstartedevent.py +1 -1
  35. mistralai/models/agents_api_v1_agents_get_versionop.py +21 -0
  36. mistralai/models/agents_api_v1_agents_list_versionsop.py +33 -0
  37. mistralai/models/agents_api_v1_agents_listop.py +5 -1
  38. mistralai/models/agents_api_v1_conversations_listop.py +1 -1
  39. mistralai/models/agentscompletionrequest.py +2 -5
  40. mistralai/models/agentscompletionstreamrequest.py +2 -5
  41. mistralai/models/archiveftmodelout.py +1 -1
  42. mistralai/models/assistantmessage.py +1 -1
  43. mistralai/models/audiochunk.py +1 -1
  44. mistralai/models/audioencoding.py +18 -0
  45. mistralai/models/audioformat.py +17 -0
  46. mistralai/models/basemodelcard.py +1 -1
  47. mistralai/models/batchjobin.py +18 -9
  48. mistralai/models/batchjobout.py +6 -1
  49. mistralai/models/batchjobsout.py +1 -1
  50. mistralai/models/batchrequest.py +48 -0
  51. mistralai/models/chatcompletionchoice.py +10 -5
  52. mistralai/models/chatcompletionrequest.py +2 -5
  53. mistralai/models/chatcompletionstreamrequest.py +2 -5
  54. mistralai/models/classificationrequest.py +37 -3
  55. mistralai/models/classifierdetailedjobout.py +4 -2
  56. mistralai/models/classifierftmodelout.py +3 -2
  57. mistralai/models/classifierjobout.py +4 -2
  58. mistralai/models/codeinterpretertool.py +1 -1
  59. mistralai/models/completiondetailedjobout.py +5 -2
  60. mistralai/models/completionftmodelout.py +3 -2
  61. mistralai/models/completionjobout.py +5 -2
  62. mistralai/models/completionresponsestreamchoice.py +9 -8
  63. mistralai/models/conversationappendrequest.py +4 -1
  64. mistralai/models/conversationappendstreamrequest.py +4 -1
  65. mistralai/models/conversationhistory.py +2 -1
  66. mistralai/models/conversationmessages.py +1 -1
  67. mistralai/models/conversationrequest.py +5 -1
  68. mistralai/models/conversationresponse.py +2 -1
  69. mistralai/models/conversationrestartrequest.py +4 -1
  70. mistralai/models/conversationrestartstreamrequest.py +4 -1
  71. mistralai/models/conversationstreamrequest.py +5 -1
  72. mistralai/models/documentlibrarytool.py +1 -1
  73. mistralai/models/documenturlchunk.py +1 -1
  74. mistralai/models/embeddingdtype.py +7 -1
  75. mistralai/models/embeddingrequest.py +11 -3
  76. mistralai/models/encodingformat.py +4 -1
  77. mistralai/models/entitytype.py +8 -1
  78. mistralai/models/filepurpose.py +8 -1
  79. mistralai/models/files_api_routes_list_filesop.py +4 -11
  80. mistralai/models/files_api_routes_upload_fileop.py +2 -6
  81. mistralai/models/fileschema.py +3 -5
  82. mistralai/models/finetuneablemodeltype.py +4 -1
  83. mistralai/models/ftclassifierlossfunction.py +4 -1
  84. mistralai/models/ftmodelcard.py +1 -1
  85. mistralai/models/functioncallentry.py +3 -2
  86. mistralai/models/functioncallevent.py +1 -1
  87. mistralai/models/functionresultentry.py +3 -2
  88. mistralai/models/functiontool.py +1 -1
  89. mistralai/models/githubrepositoryin.py +1 -1
  90. mistralai/models/githubrepositoryout.py +1 -1
  91. mistralai/models/httpvalidationerror.py +4 -2
  92. mistralai/models/imagegenerationtool.py +1 -1
  93. mistralai/models/imageurlchunk.py +1 -1
  94. mistralai/models/jobs_api_routes_batch_get_batch_jobop.py +40 -3
  95. mistralai/models/jobsout.py +1 -1
  96. mistralai/models/legacyjobmetadataout.py +1 -1
  97. mistralai/models/messageinputentry.py +9 -3
  98. mistralai/models/messageoutputentry.py +6 -3
  99. mistralai/models/messageoutputevent.py +4 -2
  100. mistralai/models/mistralerror.py +11 -7
  101. mistralai/models/mistralpromptmode.py +1 -1
  102. mistralai/models/modelconversation.py +1 -1
  103. mistralai/models/no_response_error.py +5 -1
  104. mistralai/models/ocrrequest.py +11 -1
  105. mistralai/models/ocrtableobject.py +4 -1
  106. mistralai/models/referencechunk.py +1 -1
  107. mistralai/models/requestsource.py +5 -1
  108. mistralai/models/responsedoneevent.py +1 -1
  109. mistralai/models/responseerrorevent.py +1 -1
  110. mistralai/models/responseformats.py +5 -1
  111. mistralai/models/responsestartedevent.py +1 -1
  112. mistralai/models/responsevalidationerror.py +2 -0
  113. mistralai/models/retrievefileout.py +3 -5
  114. mistralai/models/sampletype.py +7 -1
  115. mistralai/models/sdkerror.py +2 -0
  116. mistralai/models/shareenum.py +7 -1
  117. mistralai/models/sharingdelete.py +2 -4
  118. mistralai/models/sharingin.py +3 -5
  119. mistralai/models/source.py +8 -1
  120. mistralai/models/systemmessage.py +1 -1
  121. mistralai/models/textchunk.py +1 -1
  122. mistralai/models/thinkchunk.py +1 -1
  123. mistralai/models/timestampgranularity.py +1 -1
  124. mistralai/models/tool.py +2 -6
  125. mistralai/models/toolcall.py +2 -6
  126. mistralai/models/toolchoice.py +2 -6
  127. mistralai/models/toolchoiceenum.py +6 -1
  128. mistralai/models/toolexecutiondeltaevent.py +2 -1
  129. mistralai/models/toolexecutiondoneevent.py +2 -1
  130. mistralai/models/toolexecutionentry.py +4 -2
  131. mistralai/models/toolexecutionstartedevent.py +2 -1
  132. mistralai/models/toolfilechunk.py +13 -5
  133. mistralai/models/toolmessage.py +1 -1
  134. mistralai/models/toolreferencechunk.py +15 -5
  135. mistralai/models/tooltypes.py +1 -1
  136. mistralai/models/transcriptionsegmentchunk.py +1 -1
  137. mistralai/models/transcriptionstreamdone.py +1 -1
  138. mistralai/models/transcriptionstreamlanguage.py +1 -1
  139. mistralai/models/transcriptionstreamsegmentdelta.py +1 -1
  140. mistralai/models/transcriptionstreamtextdelta.py +1 -1
  141. mistralai/models/unarchiveftmodelout.py +1 -1
  142. mistralai/models/uploadfileout.py +3 -5
  143. mistralai/models/usermessage.py +1 -1
  144. mistralai/models/wandbintegration.py +1 -1
  145. mistralai/models/wandbintegrationout.py +1 -1
  146. mistralai/models/websearchpremiumtool.py +1 -1
  147. mistralai/models/websearchtool.py +1 -1
  148. mistralai/models_.py +24 -12
  149. mistralai/ocr.py +38 -10
  150. mistralai/sdk.py +2 -2
  151. mistralai/transcriptions.py +28 -12
  152. mistralai/types/basemodel.py +41 -3
  153. mistralai/utils/__init__.py +0 -3
  154. mistralai/utils/annotations.py +32 -8
  155. mistralai/utils/enums.py +60 -0
  156. mistralai/utils/forms.py +21 -10
  157. mistralai/utils/queryparams.py +14 -2
  158. mistralai/utils/requestbodies.py +3 -3
  159. mistralai/utils/retries.py +69 -5
  160. mistralai/utils/serializers.py +0 -20
  161. mistralai/utils/unmarshal_json_response.py +15 -1
  162. {mistralai-1.10.0.dist-info → mistralai-1.11.1.dist-info}/METADATA +144 -159
  163. mistralai-1.11.1.dist-info/RECORD +495 -0
  164. {mistralai-1.10.0.dist-info → mistralai-1.11.1.dist-info}/WHEEL +1 -1
  165. mistralai_azure/_version.py +3 -3
  166. mistralai_azure/basesdk.py +21 -5
  167. mistralai_azure/chat.py +82 -109
  168. mistralai_azure/httpclient.py +0 -1
  169. mistralai_azure/models/__init__.py +66 -4
  170. mistralai_azure/models/assistantmessage.py +1 -1
  171. mistralai_azure/models/chatcompletionchoice.py +10 -7
  172. mistralai_azure/models/chatcompletionrequest.py +24 -10
  173. mistralai_azure/models/chatcompletionstreamrequest.py +24 -10
  174. mistralai_azure/models/completionresponsestreamchoice.py +11 -7
  175. mistralai_azure/models/documenturlchunk.py +1 -1
  176. mistralai_azure/models/httpvalidationerror.py +15 -8
  177. mistralai_azure/models/imageurlchunk.py +1 -1
  178. mistralai_azure/models/mistralazureerror.py +30 -0
  179. mistralai_azure/models/mistralpromptmode.py +1 -1
  180. mistralai_azure/models/no_response_error.py +17 -0
  181. mistralai_azure/models/ocrpageobject.py +32 -5
  182. mistralai_azure/models/ocrrequest.py +20 -1
  183. mistralai_azure/models/ocrtableobject.py +34 -0
  184. mistralai_azure/models/prediction.py +4 -0
  185. mistralai_azure/models/referencechunk.py +1 -1
  186. mistralai_azure/models/responseformat.py +4 -2
  187. mistralai_azure/models/responseformats.py +5 -2
  188. mistralai_azure/models/responsevalidationerror.py +27 -0
  189. mistralai_azure/models/sdkerror.py +32 -14
  190. mistralai_azure/models/systemmessage.py +8 -4
  191. mistralai_azure/models/systemmessagecontentchunks.py +21 -0
  192. mistralai_azure/models/textchunk.py +1 -1
  193. mistralai_azure/models/thinkchunk.py +35 -0
  194. mistralai_azure/models/tool.py +2 -6
  195. mistralai_azure/models/toolcall.py +2 -6
  196. mistralai_azure/models/toolchoice.py +2 -6
  197. mistralai_azure/models/toolchoiceenum.py +6 -1
  198. mistralai_azure/models/toolmessage.py +1 -1
  199. mistralai_azure/models/tooltypes.py +1 -1
  200. mistralai_azure/models/usermessage.py +1 -1
  201. mistralai_azure/ocr.py +39 -40
  202. mistralai_azure/types/basemodel.py +41 -3
  203. mistralai_azure/utils/__init__.py +18 -8
  204. mistralai_azure/utils/annotations.py +32 -8
  205. mistralai_azure/utils/enums.py +60 -0
  206. mistralai_azure/utils/eventstreaming.py +10 -0
  207. mistralai_azure/utils/forms.py +21 -10
  208. mistralai_azure/utils/queryparams.py +14 -2
  209. mistralai_azure/utils/requestbodies.py +3 -3
  210. mistralai_azure/utils/retries.py +69 -5
  211. mistralai_azure/utils/serializers.py +3 -22
  212. mistralai_azure/utils/unmarshal_json_response.py +38 -0
  213. mistralai_gcp/_hooks/types.py +7 -0
  214. mistralai_gcp/_version.py +4 -4
  215. mistralai_gcp/basesdk.py +33 -25
  216. mistralai_gcp/chat.py +98 -109
  217. mistralai_gcp/fim.py +62 -85
  218. mistralai_gcp/httpclient.py +6 -17
  219. mistralai_gcp/models/__init__.py +321 -116
  220. mistralai_gcp/models/assistantmessage.py +2 -2
  221. mistralai_gcp/models/chatcompletionchoice.py +10 -7
  222. mistralai_gcp/models/chatcompletionrequest.py +38 -7
  223. mistralai_gcp/models/chatcompletionresponse.py +6 -6
  224. mistralai_gcp/models/chatcompletionstreamrequest.py +38 -7
  225. mistralai_gcp/models/completionresponsestreamchoice.py +12 -8
  226. mistralai_gcp/models/deltamessage.py +1 -1
  227. mistralai_gcp/models/fimcompletionrequest.py +9 -10
  228. mistralai_gcp/models/fimcompletionresponse.py +6 -6
  229. mistralai_gcp/models/fimcompletionstreamrequest.py +9 -10
  230. mistralai_gcp/models/httpvalidationerror.py +15 -8
  231. mistralai_gcp/models/imageurl.py +1 -1
  232. mistralai_gcp/models/imageurlchunk.py +1 -1
  233. mistralai_gcp/models/jsonschema.py +1 -1
  234. mistralai_gcp/models/mistralgcperror.py +30 -0
  235. mistralai_gcp/models/mistralpromptmode.py +8 -0
  236. mistralai_gcp/models/no_response_error.py +17 -0
  237. mistralai_gcp/models/prediction.py +4 -0
  238. mistralai_gcp/models/referencechunk.py +1 -1
  239. mistralai_gcp/models/responseformat.py +5 -3
  240. mistralai_gcp/models/responseformats.py +5 -2
  241. mistralai_gcp/models/responsevalidationerror.py +27 -0
  242. mistralai_gcp/models/sdkerror.py +32 -14
  243. mistralai_gcp/models/systemmessage.py +8 -4
  244. mistralai_gcp/models/systemmessagecontentchunks.py +21 -0
  245. mistralai_gcp/models/textchunk.py +1 -1
  246. mistralai_gcp/models/thinkchunk.py +35 -0
  247. mistralai_gcp/models/tool.py +2 -6
  248. mistralai_gcp/models/toolcall.py +2 -6
  249. mistralai_gcp/models/toolchoice.py +2 -6
  250. mistralai_gcp/models/toolchoiceenum.py +6 -1
  251. mistralai_gcp/models/toolmessage.py +2 -2
  252. mistralai_gcp/models/tooltypes.py +1 -1
  253. mistralai_gcp/models/usageinfo.py +71 -8
  254. mistralai_gcp/models/usermessage.py +2 -2
  255. mistralai_gcp/sdk.py +12 -10
  256. mistralai_gcp/sdkconfiguration.py +0 -7
  257. mistralai_gcp/types/basemodel.py +41 -3
  258. mistralai_gcp/utils/__init__.py +141 -46
  259. mistralai_gcp/utils/annotations.py +32 -8
  260. mistralai_gcp/utils/datetimes.py +23 -0
  261. mistralai_gcp/utils/enums.py +125 -25
  262. mistralai_gcp/utils/eventstreaming.py +10 -0
  263. mistralai_gcp/utils/forms.py +62 -30
  264. mistralai_gcp/utils/queryparams.py +14 -2
  265. mistralai_gcp/utils/requestbodies.py +3 -3
  266. mistralai_gcp/utils/retries.py +69 -5
  267. mistralai_gcp/utils/serializers.py +33 -23
  268. mistralai_gcp/utils/unmarshal_json_response.py +38 -0
  269. mistralai-1.10.0.dist-info/RECORD +0 -475
  270. {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.10.0
3
+ Version: 1.11.1
4
4
  Summary: Python Client SDK for the Mistral AI API.
5
- License-File: LICENSE
5
+ Project-URL: Repository, https://github.com/mistralai/client-python.git
6
6
  Author: Mistral
7
- Requires-Python: >=3.9
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: Programming Language :: Python :: 3.9
10
- Classifier: Programming Language :: Python :: 3.10
11
- Classifier: Programming Language :: Python :: 3.11
12
- Classifier: Programming Language :: Python :: 3.12
13
- Classifier: Programming Language :: Python :: 3.13
14
- Classifier: Programming Language :: Python :: 3.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: authlib (>=1.5.2,<2.0) ; extra == "agents"
18
- Requires-Dist: eval-type-backport (>=0.2.0)
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](https://github.com/mistralai/client-python/blob/master/MIGRATION.md)
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](https://github.com/mistralai/client-python/blob/master/#mistral-python-client)
67
- * [Migration warning](https://github.com/mistralai/client-python/blob/master/#migration-warning)
68
- * [API Key Setup](https://github.com/mistralai/client-python/blob/master/#api-key-setup)
69
- * [SDK Installation](https://github.com/mistralai/client-python/blob/master/#sdk-installation)
70
- * [SDK Example Usage](https://github.com/mistralai/client-python/blob/master/#sdk-example-usage)
71
- * [Providers' SDKs Example Usage](https://github.com/mistralai/client-python/blob/master/#providers-sdks-example-usage)
72
- * [Available Resources and Operations](https://github.com/mistralai/client-python/blob/master/#available-resources-and-operations)
73
- * [Server-sent event streaming](https://github.com/mistralai/client-python/blob/master/#server-sent-event-streaming)
74
- * [File uploads](https://github.com/mistralai/client-python/blob/master/#file-uploads)
75
- * [Retries](https://github.com/mistralai/client-python/blob/master/#retries)
76
- * [Error Handling](https://github.com/mistralai/client-python/blob/master/#error-handling)
77
- * [Server Selection](https://github.com/mistralai/client-python/blob/master/#server-selection)
78
- * [Custom HTTP Client](https://github.com/mistralai/client-python/blob/master/#custom-http-client)
79
- * [Authentication](https://github.com/mistralai/client-python/blob/master/#authentication)
80
- * [Resource Management](https://github.com/mistralai/client-python/blob/master/#resource-management)
81
- * [Debugging](https://github.com/mistralai/client-python/blob/master/#debugging)
82
- * [IDE Support](https://github.com/mistralai/client-python/blob/master/#ide-support)
83
- * [Development](https://github.com/mistralai/client-python/blob/master/#development)
84
- * [Contributions](https://github.com/mistralai/client-python/blob/master/#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: Because of some of our dependencies, these features are only available for python version higher or equal to
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 `poetry run` or by entering the virtual environment using `poetry shell`.
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](https://github.com/mistralai/client-python/blob/master//examples/azure).
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](https://github.com/mistralai/client-python/blob/master/packages/mistralai_azure/README.md).
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](https://github.com/mistralai/client-python/blob/master/packages/mistralai_gcp/README.md).
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
- ### [agents](https://github.com/mistralai/client-python/blob/master/docs/sdks/agents/README.md)
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
- ### [beta](https://github.com/mistralai/client-python/blob/master/docs/sdks/beta/README.md)
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
- #### [beta.agents](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistralagents/README.md)
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
- * [create](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistralagents/README.md#create) - Create a agent that can be used within a conversation.
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
- #### [beta.conversations](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md)
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
- * [start](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#start) - Create a conversation and append entries to it.
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
- #### [beta.libraries](https://github.com/mistralai/client-python/blob/master/docs/sdks/libraries/README.md)
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
- * [list](https://github.com/mistralai/client-python/blob/master/docs/sdks/libraries/README.md#list) - List all libraries you have access to.
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
- #### [beta.libraries.accesses](https://github.com/mistralai/client-python/blob/master/docs/sdks/accesses/README.md)
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
- * [list](https://github.com/mistralai/client-python/blob/master/docs/sdks/accesses/README.md#list) - List all of the access to this library.
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
- #### [beta.libraries.documents](https://github.com/mistralai/client-python/blob/master/docs/sdks/documents/README.md)
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
- * [list](https://github.com/mistralai/client-python/blob/master/docs/sdks/documents/README.md#list) - List documents in a given library.
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
- ### [chat](https://github.com/mistralai/client-python/blob/master/docs/sdks/chat/README.md)
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
- * [complete](https://github.com/mistralai/client-python/blob/master/docs/sdks/chat/README.md#complete) - Chat Completion
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
- ### [classifiers](https://github.com/mistralai/client-python/blob/master/docs/sdks/classifiers/README.md)
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
- * [moderate](https://github.com/mistralai/client-python/blob/master/docs/sdks/classifiers/README.md#moderate) - Moderations
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
- ### [embeddings](https://github.com/mistralai/client-python/blob/master/docs/sdks/embeddings/README.md)
550
+ * [complete](docs/sdks/chat/README.md#complete) - Chat Completion
551
+ * [stream](docs/sdks/chat/README.md#stream) - Stream chat completion
572
552
 
573
- * [create](https://github.com/mistralai/client-python/blob/master/docs/sdks/embeddings/README.md#create) - Embeddings
553
+ ### [Classifiers](docs/sdks/classifiers/README.md)
574
554
 
575
- ### [files](https://github.com/mistralai/client-python/blob/master/docs/sdks/files/README.md)
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
- * [upload](https://github.com/mistralai/client-python/blob/master/docs/sdks/files/README.md#upload) - Upload File
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
- ### [fim](https://github.com/mistralai/client-python/blob/master/docs/sdks/fim/README.md)
562
+ * [create](docs/sdks/embeddings/README.md#create) - Embeddings
585
563
 
586
- * [complete](https://github.com/mistralai/client-python/blob/master/docs/sdks/fim/README.md#complete) - Fim Completion
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
- ### [fine_tuning](https://github.com/mistralai/client-python/blob/master/docs/sdks/finetuning/README.md)
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
- #### [fine_tuning.jobs](https://github.com/mistralai/client-python/blob/master/docs/sdks/jobs/README.md)
575
+ * [complete](docs/sdks/fim/README.md#complete) - Fim Completion
576
+ * [stream](docs/sdks/fim/README.md#stream) - Stream fim completion
593
577
 
594
- * [list](https://github.com/mistralai/client-python/blob/master/docs/sdks/jobs/README.md#list) - Get Fine Tuning Jobs
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
- ### [models](https://github.com/mistralai/client-python/blob/master/docs/sdks/models/README.md)
586
+ ### [Models](docs/sdks/models/README.md)
602
587
 
603
- * [list](https://github.com/mistralai/client-python/blob/master/docs/sdks/models/README.md#list) - List Models
604
- * [retrieve](https://github.com/mistralai/client-python/blob/master/docs/sdks/models/README.md#retrieve) - Retrieve Model
605
- * [delete](https://github.com/mistralai/client-python/blob/master/docs/sdks/models/README.md#delete) - Delete Model
606
- * [update](https://github.com/mistralai/client-python/blob/master/docs/sdks/models/README.md#update) - Update Fine Tuned Model
607
- * [archive](https://github.com/mistralai/client-python/blob/master/docs/sdks/models/README.md#archive) - Archive Fine Tuned Model
608
- * [unarchive](https://github.com/mistralai/client-python/blob/master/docs/sdks/models/README.md#unarchive) - Unarchive Fine Tuned Model
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
- ### [ocr](https://github.com/mistralai/client-python/blob/master/docs/sdks/ocr/README.md)
595
+ ### [Ocr](docs/sdks/ocr/README.md)
611
596
 
612
- * [process](https://github.com/mistralai/client-python/blob/master/docs/sdks/ocr/README.md#process) - OCR
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`](https://github.com/mistralai/client-python/blob/master/./src/mistralai/models/mistralerror.py) is the base class for all HTTP error responses. It has the following properties:
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](https://github.com/mistralai/client-python/blob/master/#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`](https://github.com/mistralai/client-python/blob/master/./src/mistralai/models/mistralerror.py): The base class for HTTP error responses.
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`](https://github.com/mistralai/client-python/blob/master/./src/mistralai/models/mistralerror.py)**:
798
- * [`HTTPValidationError`](https://github.com/mistralai/client-python/blob/master/./src/mistralai/models/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 48 of 70 methods.*
799
- * [`ResponseValidationError`](https://github.com/mistralai/client-python/blob/master/./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.
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](https://github.com/mistralai/client-python/blob/master/#available-resources-and-operations) to see if the error is applicable.
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] -->