mistralai 1.2.5__py3-none-any.whl → 1.3.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.
Files changed (39) hide show
  1. mistralai/_version.py +1 -1
  2. mistralai/agents.py +17 -5
  3. mistralai/basesdk.py +25 -9
  4. mistralai/chat.py +25 -13
  5. mistralai/classifiers.py +17 -5
  6. mistralai/embeddings.py +9 -3
  7. mistralai/files.py +49 -13
  8. mistralai/fim.py +17 -5
  9. mistralai/jobs.py +41 -11
  10. mistralai/mistral_jobs.py +33 -9
  11. mistralai/models/chatcompletionrequest.py +2 -2
  12. mistralai/models/chatcompletionstreamrequest.py +2 -2
  13. mistralai/models/files_api_routes_upload_fileop.py +2 -6
  14. mistralai/models_.py +49 -13
  15. mistralai/sdkconfiguration.py +3 -3
  16. mistralai/utils/forms.py +4 -10
  17. mistralai/utils/requestbodies.py +1 -1
  18. {mistralai-1.2.5.dist-info → mistralai-1.3.0.dist-info}/METADATA +126 -95
  19. {mistralai-1.2.5.dist-info → mistralai-1.3.0.dist-info}/RECORD +38 -39
  20. {mistralai-1.2.5.dist-info → mistralai-1.3.0.dist-info}/WHEEL +1 -1
  21. mistralai_azure/_version.py +1 -1
  22. mistralai_azure/basesdk.py +25 -9
  23. mistralai_azure/chat.py +25 -13
  24. mistralai_azure/models/chatcompletionrequest.py +2 -2
  25. mistralai_azure/models/chatcompletionstreamrequest.py +2 -2
  26. mistralai_azure/sdkconfiguration.py +3 -3
  27. mistralai_azure/utils/forms.py +4 -10
  28. mistralai_azure/utils/requestbodies.py +1 -1
  29. mistralai_gcp/_version.py +1 -1
  30. mistralai_gcp/basesdk.py +25 -9
  31. mistralai_gcp/chat.py +21 -9
  32. mistralai_gcp/fim.py +17 -5
  33. mistralai_gcp/models/chatcompletionrequest.py +1 -1
  34. mistralai_gcp/models/chatcompletionstreamrequest.py +1 -1
  35. mistralai_gcp/sdkconfiguration.py +3 -3
  36. mistralai_gcp/utils/forms.py +4 -10
  37. mistralai_gcp/utils/requestbodies.py +1 -1
  38. py.typed +0 -1
  39. {mistralai-1.2.5.dist-info → mistralai-1.3.0.dist-info}/LICENSE +0 -0
@@ -1,8 +1,7 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: mistralai
3
- Version: 1.2.5
3
+ Version: 1.3.0
4
4
  Summary: Python Client SDK for the Mistral AI API.
5
- Home-page: https://github.com/mistralai/client-python.git
6
5
  Author: Mistral
7
6
  Requires-Python: >=3.8,<4.0
8
7
  Classifier: Programming Language :: Python :: 3
@@ -13,14 +12,14 @@ Classifier: Programming Language :: Python :: 3.11
13
12
  Classifier: Programming Language :: Python :: 3.12
14
13
  Classifier: Programming Language :: Python :: 3.13
15
14
  Provides-Extra: gcp
16
- Requires-Dist: eval-type-backport (>=0.2.0,<0.3.0)
17
- Requires-Dist: google-auth (==2.27.0) ; extra == "gcp"
18
- Requires-Dist: httpx (>=0.27.0,<0.28.0)
19
- Requires-Dist: jsonpath-python (>=1.0.6,<2.0.0)
20
- Requires-Dist: pydantic (>=2.9.0,<3.0.0)
21
- Requires-Dist: python-dateutil (>=2.8.2,<3.0.0)
22
- Requires-Dist: requests (>=2.32.3,<3.0.0) ; extra == "gcp"
23
- Requires-Dist: typing-inspect (>=0.9.0,<0.10.0)
15
+ Requires-Dist: eval-type-backport (>=0.2.0)
16
+ Requires-Dist: google-auth (>=2.27.0) ; extra == "gcp"
17
+ Requires-Dist: httpx (>=0.27.0)
18
+ Requires-Dist: jsonpath-python (>=1.0.6)
19
+ Requires-Dist: pydantic (>=2.9.0)
20
+ Requires-Dist: python-dateutil (>=2.8.2)
21
+ Requires-Dist: requests (>=2.32.3) ; extra == "gcp"
22
+ Requires-Dist: typing-inspect (>=0.9.0)
24
23
  Project-URL: Repository, https://github.com/mistralai/client-python.git
25
24
  Description-Content-Type: text/markdown
26
25
 
@@ -111,17 +110,19 @@ import os
111
110
 
112
111
  with Mistral(
113
112
  api_key=os.getenv("MISTRAL_API_KEY", ""),
114
- ) as s:
115
- res = s.chat.complete(model="mistral-small-latest", messages=[
113
+ ) as mistral:
114
+
115
+ res = mistral.chat.complete(model="mistral-small-latest", messages=[
116
116
  {
117
117
  "content": "Who is the best French painter? Answer in one short sentence.",
118
118
  "role": "user",
119
119
  },
120
120
  ])
121
121
 
122
- if res is not None:
123
- # handle response
124
- pass
122
+ assert res is not None
123
+
124
+ # Handle response
125
+ print(res)
125
126
  ```
126
127
 
127
128
  </br>
@@ -136,17 +137,19 @@ import os
136
137
  async def main():
137
138
  async with Mistral(
138
139
  api_key=os.getenv("MISTRAL_API_KEY", ""),
139
- ) as s:
140
- res = await s.chat.complete_async(model="mistral-small-latest", messages=[
140
+ ) as mistral:
141
+
142
+ res = await mistral.chat.complete_async(model="mistral-small-latest", messages=[
141
143
  {
142
144
  "content": "Who is the best French painter? Answer in one short sentence.",
143
145
  "role": "user",
144
146
  },
145
147
  ])
146
148
 
147
- if res is not None:
148
- # handle response
149
- pass
149
+ assert res is not None
150
+
151
+ # Handle response
152
+ print(res)
150
153
 
151
154
  asyncio.run(main())
152
155
  ```
@@ -162,15 +165,17 @@ import os
162
165
 
163
166
  with Mistral(
164
167
  api_key=os.getenv("MISTRAL_API_KEY", ""),
165
- ) as s:
166
- res = s.files.upload(file={
168
+ ) as mistral:
169
+
170
+ res = mistral.files.upload(file={
167
171
  "file_name": "example.file",
168
172
  "content": open("example.file", "rb"),
169
173
  })
170
174
 
171
- if res is not None:
172
- # handle response
173
- pass
175
+ assert res is not None
176
+
177
+ # Handle response
178
+ print(res)
174
179
  ```
175
180
 
176
181
  </br>
@@ -185,15 +190,17 @@ import os
185
190
  async def main():
186
191
  async with Mistral(
187
192
  api_key=os.getenv("MISTRAL_API_KEY", ""),
188
- ) as s:
189
- res = await s.files.upload_async(file={
193
+ ) as mistral:
194
+
195
+ res = await mistral.files.upload_async(file={
190
196
  "file_name": "example.file",
191
197
  "content": open("example.file", "rb"),
192
198
  })
193
199
 
194
- if res is not None:
195
- # handle response
196
- pass
200
+ assert res is not None
201
+
202
+ # Handle response
203
+ print(res)
197
204
 
198
205
  asyncio.run(main())
199
206
  ```
@@ -209,17 +216,19 @@ import os
209
216
 
210
217
  with Mistral(
211
218
  api_key=os.getenv("MISTRAL_API_KEY", ""),
212
- ) as s:
213
- res = s.agents.complete(messages=[
219
+ ) as mistral:
220
+
221
+ res = mistral.agents.complete(messages=[
214
222
  {
215
223
  "content": "Who is the best French painter? Answer in one short sentence.",
216
224
  "role": "user",
217
225
  },
218
226
  ], agent_id="<value>")
219
227
 
220
- if res is not None:
221
- # handle response
222
- pass
228
+ assert res is not None
229
+
230
+ # Handle response
231
+ print(res)
223
232
  ```
224
233
 
225
234
  </br>
@@ -234,17 +243,19 @@ import os
234
243
  async def main():
235
244
  async with Mistral(
236
245
  api_key=os.getenv("MISTRAL_API_KEY", ""),
237
- ) as s:
238
- res = await s.agents.complete_async(messages=[
246
+ ) as mistral:
247
+
248
+ res = await mistral.agents.complete_async(messages=[
239
249
  {
240
250
  "content": "Who is the best French painter? Answer in one short sentence.",
241
251
  "role": "user",
242
252
  },
243
253
  ], agent_id="<value>")
244
254
 
245
- if res is not None:
246
- # handle response
247
- pass
255
+ assert res is not None
256
+
257
+ # Handle response
258
+ print(res)
248
259
 
249
260
  asyncio.run(main())
250
261
  ```
@@ -260,15 +271,17 @@ import os
260
271
 
261
272
  with Mistral(
262
273
  api_key=os.getenv("MISTRAL_API_KEY", ""),
263
- ) as s:
264
- res = s.embeddings.create(inputs=[
274
+ ) as mistral:
275
+
276
+ res = mistral.embeddings.create(inputs=[
265
277
  "Embed this sentence.",
266
278
  "As well as this one.",
267
279
  ], model="Wrangler")
268
280
 
269
- if res is not None:
270
- # handle response
271
- pass
281
+ assert res is not None
282
+
283
+ # Handle response
284
+ print(res)
272
285
  ```
273
286
 
274
287
  </br>
@@ -283,15 +296,17 @@ import os
283
296
  async def main():
284
297
  async with Mistral(
285
298
  api_key=os.getenv("MISTRAL_API_KEY", ""),
286
- ) as s:
287
- res = await s.embeddings.create_async(inputs=[
299
+ ) as mistral:
300
+
301
+ res = await mistral.embeddings.create_async(inputs=[
288
302
  "Embed this sentence.",
289
303
  "As well as this one.",
290
304
  ], model="Wrangler")
291
305
 
292
- if res is not None:
293
- # handle response
294
- pass
306
+ assert res is not None
307
+
308
+ # Handle response
309
+ print(res)
295
310
 
296
311
  asyncio.run(main())
297
312
  ```
@@ -483,19 +498,21 @@ import os
483
498
 
484
499
  with Mistral(
485
500
  api_key=os.getenv("MISTRAL_API_KEY", ""),
486
- ) as s:
487
- res = s.chat.stream(model="mistral-small-latest", messages=[
501
+ ) as mistral:
502
+
503
+ res = mistral.chat.stream(model="mistral-small-latest", messages=[
488
504
  {
489
505
  "content": "Who is the best French painter? Answer in one short sentence.",
490
506
  "role": "user",
491
507
  },
492
508
  ])
493
509
 
494
- if res is not None:
495
- with res as event_stream:
496
- for event in event_stream:
497
- # handle event
498
- print(event, flush=True)
510
+ assert res is not None
511
+
512
+ with res as event_stream:
513
+ for event in event_stream:
514
+ # handle event
515
+ print(event, flush=True)
499
516
 
500
517
  ```
501
518
 
@@ -520,15 +537,17 @@ import os
520
537
 
521
538
  with Mistral(
522
539
  api_key=os.getenv("MISTRAL_API_KEY", ""),
523
- ) as s:
524
- res = s.files.upload(file={
540
+ ) as mistral:
541
+
542
+ res = mistral.files.upload(file={
525
543
  "file_name": "example.file",
526
544
  "content": open("example.file", "rb"),
527
545
  })
528
546
 
529
- if res is not None:
530
- # handle response
531
- pass
547
+ assert res is not None
548
+
549
+ # Handle response
550
+ print(res)
532
551
 
533
552
  ```
534
553
  <!-- End File uploads [file-upload] -->
@@ -540,37 +559,41 @@ Some of the endpoints in this SDK support retries. If you use the SDK without an
540
559
 
541
560
  To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
542
561
  ```python
543
- from mistral.utils import BackoffStrategy, RetryConfig
544
562
  from mistralai import Mistral
563
+ from mistralai.utils import BackoffStrategy, RetryConfig
545
564
  import os
546
565
 
547
566
  with Mistral(
548
567
  api_key=os.getenv("MISTRAL_API_KEY", ""),
549
- ) as s:
550
- res = s.models.list(,
568
+ ) as mistral:
569
+
570
+ res = mistral.models.list(,
551
571
  RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
552
572
 
553
- if res is not None:
554
- # handle response
555
- pass
573
+ assert res is not None
574
+
575
+ # Handle response
576
+ print(res)
556
577
 
557
578
  ```
558
579
 
559
580
  If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK:
560
581
  ```python
561
- from mistral.utils import BackoffStrategy, RetryConfig
562
582
  from mistralai import Mistral
583
+ from mistralai.utils import BackoffStrategy, RetryConfig
563
584
  import os
564
585
 
565
586
  with Mistral(
566
587
  retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
567
588
  api_key=os.getenv("MISTRAL_API_KEY", ""),
568
- ) as s:
569
- res = s.models.list()
589
+ ) as mistral:
590
+
591
+ res = mistral.models.list()
570
592
 
571
- if res is not None:
572
- # handle response
573
- pass
593
+ assert res is not None
594
+
595
+ # Handle response
596
+ print(res)
574
597
 
575
598
  ```
576
599
  <!-- End Retries [retries] -->
@@ -604,14 +627,16 @@ import os
604
627
 
605
628
  with Mistral(
606
629
  api_key=os.getenv("MISTRAL_API_KEY", ""),
607
- ) as s:
630
+ ) as mistral:
608
631
  res = None
609
632
  try:
610
- res = s.models.list()
611
633
 
612
- if res is not None:
613
- # handle response
614
- pass
634
+ res = mistral.models.list()
635
+
636
+ assert res is not None
637
+
638
+ # Handle response
639
+ print(res)
615
640
 
616
641
  except models.HTTPValidationError as e:
617
642
  # handle e.data: models.HTTPValidationErrorData
@@ -642,12 +667,14 @@ import os
642
667
  with Mistral(
643
668
  server="eu",
644
669
  api_key=os.getenv("MISTRAL_API_KEY", ""),
645
- ) as s:
646
- res = s.models.list()
670
+ ) as mistral:
671
+
672
+ res = mistral.models.list()
647
673
 
648
- if res is not None:
649
- # handle response
650
- pass
674
+ assert res is not None
675
+
676
+ # Handle response
677
+ print(res)
651
678
 
652
679
  ```
653
680
 
@@ -661,12 +688,14 @@ import os
661
688
  with Mistral(
662
689
  server_url="https://api.mistral.ai",
663
690
  api_key=os.getenv("MISTRAL_API_KEY", ""),
664
- ) as s:
665
- res = s.models.list()
691
+ ) as mistral:
692
+
693
+ res = mistral.models.list()
666
694
 
667
- if res is not None:
668
- # handle response
669
- pass
695
+ assert res is not None
696
+
697
+ # Handle response
698
+ print(res)
670
699
 
671
700
  ```
672
701
  <!-- End Server Selection [server] -->
@@ -770,12 +799,14 @@ import os
770
799
 
771
800
  with Mistral(
772
801
  api_key=os.getenv("MISTRAL_API_KEY", ""),
773
- ) as s:
774
- res = s.models.list()
802
+ ) as mistral:
803
+
804
+ res = mistral.models.list()
775
805
 
776
- if res is not None:
777
- # handle response
778
- pass
806
+ assert res is not None
807
+
808
+ # Handle response
809
+ print(res)
779
810
 
780
811
  ```
781
812
  <!-- End Authentication [security] -->
@@ -4,16 +4,16 @@ mistralai_azure/_hooks/custom_user_agent.py,sha256=CnX-8LjyTyOgDcvurQPK2suWBqwQx
4
4
  mistralai_azure/_hooks/registration.py,sha256=5BN-U92pwP5kUaN7EOso2vWrwZlLvRcU5Coccibqp20,741
5
5
  mistralai_azure/_hooks/sdkhooks.py,sha256=urOhVMYX_n5KgMoNDNmGs4fsgUWoeSG6_GarhPxH-YU,2565
6
6
  mistralai_azure/_hooks/types.py,sha256=ealwk4q-4oIauxj5Nyx9xmu9vX0nm4vcDALDy4qydgE,2576
7
- mistralai_azure/_version.py,sha256=XUjO99pmQX1np8WHgz8F48bgOPxWExv6D_pZv0-mKks,319
8
- mistralai_azure/basesdk.py,sha256=ZtCvahXCyuWen9Jk7BC8BoeChQZCb04JAA6oG-0SOaE,11218
9
- mistralai_azure/chat.py,sha256=oXfpD7auiYPjeSsph-oDsaURnXOjO1WaILJB1fOB6Ng,31941
7
+ mistralai_azure/_version.py,sha256=ui-BNM2etffJhHb6ltHG0lnH2tREv1Ls9MiIs_2wPtI,319
8
+ mistralai_azure/basesdk.py,sha256=DYOnk4GhhaNa4PZeoHbm_IKwlwtf8_GBscmMLAaoiG4,11944
9
+ mistralai_azure/chat.py,sha256=NwvXO3wAOaazn3n6hqPrcfH6mIGYBpq_bqnuInISMl4,32666
10
10
  mistralai_azure/httpclient.py,sha256=WDbLpMzo7qmWki_ryOJcCAYNI1T4uyWKV08rRuCdNII,2688
11
11
  mistralai_azure/models/__init__.py,sha256=tUGnhgKbxZMd8R7DK09Zy0TRlcp5fg32LaHgwE6wtRs,5474
12
12
  mistralai_azure/models/assistantmessage.py,sha256=RfLzXdsZ0VIo-x5I10YveA5lRu0caYZ6ZYqqUvV8T5Y,2235
13
13
  mistralai_azure/models/chatcompletionchoice.py,sha256=-JE13p36mWnyc3zxnHLJp1Q43QVgj5QRurnZslXdJc0,935
14
- mistralai_azure/models/chatcompletionrequest.py,sha256=28venygprMoniioY9EWDWM3QE32seOg8QN4KTiPLdQ0,9569
14
+ mistralai_azure/models/chatcompletionrequest.py,sha256=H27Zk4cqqisV-gVkT9yeLOKw7i_tNBlfj1YNaBymNv0,9571
15
15
  mistralai_azure/models/chatcompletionresponse.py,sha256=sPmb4kih2DpE3r8Xem_HYj6o3E3i-6PyVROvm7Ysrfs,798
16
- mistralai_azure/models/chatcompletionstreamrequest.py,sha256=UB7SwnleDy5lnbTXsqisiEYBGF-gg1YJ6UfTLgKB5zE,8705
16
+ mistralai_azure/models/chatcompletionstreamrequest.py,sha256=BgXe4fTcsIZiDJD7M4WjxQB2dlRptc1r0l7uSse9diU,8707
17
17
  mistralai_azure/models/completionchunk.py,sha256=yoA0tYoyK5RChQPbEvYUi1BVmuyH-QT5IYwEYJNtsXM,877
18
18
  mistralai_azure/models/completionevent.py,sha256=8wkRAMMpDFfhFSm7OEmli80lsK98Tir7R6IxW-KxeuE,405
19
19
  mistralai_azure/models/completionresponsestreamchoice.py,sha256=c6BncIEgKnK4HUPCeIhLfVc3RgxXKNcxp2JrlObUu9E,1834
@@ -41,19 +41,19 @@ mistralai_azure/models/usermessage.py,sha256=U8b5KMT3b0j8AOLFjCMWjjCM3zBl54Vc-Rz
41
41
  mistralai_azure/models/validationerror.py,sha256=vghbUqW9H5AsbYmW5i0C56eHPFC054x8SJA-mJZPKak,532
42
42
  mistralai_azure/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
43
43
  mistralai_azure/sdk.py,sha256=ZVPE9lFzswEMlHw_kiG_j5vzoJ5BwEYlVLCYGmYDjpA,3936
44
- mistralai_azure/sdkconfiguration.py,sha256=zGJfK4Ouyw18LTVtAQ44j6pm8w4fhS_641HRFHCw1FE,1706
44
+ mistralai_azure/sdkconfiguration.py,sha256=HUS03mJdC7BZZ7nmqwUiF-ez6OpYZyZ-cauLNUOzfww,1706
45
45
  mistralai_azure/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
46
46
  mistralai_azure/types/basemodel.py,sha256=PexI39iKiOkIlobB8Ueo0yn8PLHp6_wb-WO-zelNDZY,1170
47
47
  mistralai_azure/utils/__init__.py,sha256=1x4KfQf2ULtO_aOk_M2RMCimoz8jgcW0RZd-f34KDAs,2365
48
48
  mistralai_azure/utils/annotations.py,sha256=aR7mZG34FzgRdew7WZPYEu9QGBerpuKxCF4sek5Z_5Y,1699
49
49
  mistralai_azure/utils/enums.py,sha256=VzjeslROrAr2luZOTJlvu-4UlxgTaGOKlRYtJJ7IfyY,1006
50
50
  mistralai_azure/utils/eventstreaming.py,sha256=LtcrfJYw4nP2Oe4Wl0-cEURLzRGYReRGWNFY5wYECIE,6186
51
- mistralai_azure/utils/forms.py,sha256=L-y62DiD0FXnq7WIyw8BAMbdr7sZDwhZ_3YsdviBbaA,6325
51
+ mistralai_azure/utils/forms.py,sha256=YSSijXrsM2nfrRHlPQejh1uRRKfoILomHL3d9xpJiy8,6058
52
52
  mistralai_azure/utils/headers.py,sha256=cPxWSmUILrefTGDzTH1Hdj7_Hlsj-EY6K5Tyc4iH4dk,3663
53
53
  mistralai_azure/utils/logger.py,sha256=9nUtlKHo3RFsIVyMw5jq3wEKZMVwHnZMSc6xLp-otC0,520
54
54
  mistralai_azure/utils/metadata.py,sha256=Per2KFXXOqOtoUWXrlIfjrSrBg199KrRW0nKQDgHIBU,3136
55
55
  mistralai_azure/utils/queryparams.py,sha256=MTK6inMS1_WwjmMJEJmAn67tSHHJyarpdGRlorRHEtI,5899
56
- mistralai_azure/utils/requestbodies.py,sha256=PXmttCHm1zWGmwbrTyXYXxbeULavRWqxfD54Jx2CdJE,2084
56
+ mistralai_azure/utils/requestbodies.py,sha256=ySjEyjcLi731LNUahWvLOrES2HihuA8VrOJx4eQ7Qzg,2101
57
57
  mistralai_azure/utils/retries.py,sha256=6yhfZifqIat9i76xF0lTR2jLj1IN9BNGyqqxATlEFPU,6348
58
58
  mistralai_azure/utils/security.py,sha256=ktep3HKwbFs-MLxUYTM8Jd4v-ZBum5_Z0u1PFIdYBX0,5516
59
59
  mistralai_azure/utils/serializers.py,sha256=BSJT7kBOkNBFyP7KREyMoe14JGbgijD1M6AXFMbdmco,4924
@@ -65,17 +65,17 @@ mistralai_gcp/_hooks/custom_user_agent.py,sha256=0m-1JzJxOT42rvRTEuCiFLqbOMriOls
65
65
  mistralai_gcp/_hooks/registration.py,sha256=5BN-U92pwP5kUaN7EOso2vWrwZlLvRcU5Coccibqp20,741
66
66
  mistralai_gcp/_hooks/sdkhooks.py,sha256=nr_ACx8Rn5xvTkmZP6_EI-f_0hw8wMyPqPHNvjAWAxI,2563
67
67
  mistralai_gcp/_hooks/types.py,sha256=DJD5-sKZfAj0tKgSU5w0YNuJE_C8PDa5n1V27T_7SmE,2574
68
- mistralai_gcp/_version.py,sha256=yKedfo-mdDZ2lh-brndG2TXcE4w37UWJhP4KIRqMnS0,317
69
- mistralai_gcp/basesdk.py,sha256=cJcOSsYxfNznSOMrDlh0z06_e8HXnlIFCfIYm0yOPlc,11212
70
- mistralai_gcp/chat.py,sha256=z17ADwmfkzfCu7XLXDeqdOXzlemEGPluWD3QWvGYpkE,31857
71
- mistralai_gcp/fim.py,sha256=nqFFDve7SJSF0pyXO2-JoEHDYBjQS5_Z12A5MkjkWqI,25379
68
+ mistralai_gcp/_version.py,sha256=7vh6Mzf2l8H7TUuxjCavDyOaT0x_ighKJadlem_FXTI,317
69
+ mistralai_gcp/basesdk.py,sha256=r7yAbWHu0e7qE7EBzNoASAY708v2KWjmOZCLgM9koEg,11938
70
+ mistralai_gcp/chat.py,sha256=j8y7_E7sLfK7rRDz2X9Ul-w_GNu2epAQC8uT7kuCqN4,32586
71
+ mistralai_gcp/fim.py,sha256=5TvHIZY-OZzg1GWoSyPXRlG5FVIvhbT3o48A2-eoPe8,26096
72
72
  mistralai_gcp/httpclient.py,sha256=WDbLpMzo7qmWki_ryOJcCAYNI1T4uyWKV08rRuCdNII,2688
73
73
  mistralai_gcp/models/__init__.py,sha256=FgLN8dDWM4XLCS1EWH--nk90Fnnrypsa2EEu5Yv84iI,6296
74
74
  mistralai_gcp/models/assistantmessage.py,sha256=dAdHmWc2sXzeDoP4jCLH5T4wqu7gRUzBlOVfAVmbO7Q,2233
75
75
  mistralai_gcp/models/chatcompletionchoice.py,sha256=1t3Sb_IICDH7gyyEMX-WuxHnSVV-PZTLfpUjkUVp3do,931
76
- mistralai_gcp/models/chatcompletionrequest.py,sha256=NKbYDJvnhMSf78-7-BoXY-NjAPa4aikGVAwQrDSvV0Q,9616
76
+ mistralai_gcp/models/chatcompletionrequest.py,sha256=vBAKgPqpwF09393yXHBKRulcVL7cS0VL3WnCDlLI0SE,9619
77
77
  mistralai_gcp/models/chatcompletionresponse.py,sha256=Ctvqs2ZjvWTycozqXn-fvucgqOn0dm4cOjUZ2BjD4BM,796
78
- mistralai_gcp/models/chatcompletionstreamrequest.py,sha256=Ste1UKJBSy8JXJ6rnEruHFqHt9B1H5UbMA-rOA6GP40,8752
78
+ mistralai_gcp/models/chatcompletionstreamrequest.py,sha256=6dVEiVFScJR8mbYFPKDgnPMLnU1QgCrg7hqASnlZQaY,8755
79
79
  mistralai_gcp/models/completionchunk.py,sha256=0DBDcrqVWrUskHA3hHYtuWk2E4JcJy_zc_LiGyLHBlA,875
80
80
  mistralai_gcp/models/completionevent.py,sha256=cP7Q5dN4Z46FQTlyCYeIwvqt7pgN-22jNPD2bi7Eals,403
81
81
  mistralai_gcp/models/completionresponsestreamchoice.py,sha256=MdZaPMSqFbIbenEAdPyYMFemsFSZdPglEEt5ssZ3x7E,1830
@@ -106,25 +106,24 @@ mistralai_gcp/models/usermessage.py,sha256=3OXMcPO3Tyje6wQuOfMVp35OD0EnfYZ2tkElV
106
106
  mistralai_gcp/models/validationerror.py,sha256=EVhyAndNY5aayJSNGv-W1XL7Wu9bS92JJe1yu9UmBSY,530
107
107
  mistralai_gcp/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
108
108
  mistralai_gcp/sdk.py,sha256=nioXPwRIiI0KJz8T14LwY4FR4pIHktdLr3u9qSL_y2M,6760
109
- mistralai_gcp/sdkconfiguration.py,sha256=hvw-5lXbfz3t5grKuLAZ60jta8IRwnP2Wxu9UUKrU08,1700
109
+ mistralai_gcp/sdkconfiguration.py,sha256=3EvSsy_Jk4G-Q9-1veLVFqbgVO-bkCtgi4St7aA-KlU,1700
110
110
  mistralai_gcp/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
111
111
  mistralai_gcp/types/basemodel.py,sha256=PexI39iKiOkIlobB8Ueo0yn8PLHp6_wb-WO-zelNDZY,1170
112
112
  mistralai_gcp/utils/__init__.py,sha256=1x4KfQf2ULtO_aOk_M2RMCimoz8jgcW0RZd-f34KDAs,2365
113
113
  mistralai_gcp/utils/annotations.py,sha256=aR7mZG34FzgRdew7WZPYEu9QGBerpuKxCF4sek5Z_5Y,1699
114
114
  mistralai_gcp/utils/enums.py,sha256=VzjeslROrAr2luZOTJlvu-4UlxgTaGOKlRYtJJ7IfyY,1006
115
115
  mistralai_gcp/utils/eventstreaming.py,sha256=LtcrfJYw4nP2Oe4Wl0-cEURLzRGYReRGWNFY5wYECIE,6186
116
- mistralai_gcp/utils/forms.py,sha256=L-y62DiD0FXnq7WIyw8BAMbdr7sZDwhZ_3YsdviBbaA,6325
116
+ mistralai_gcp/utils/forms.py,sha256=YSSijXrsM2nfrRHlPQejh1uRRKfoILomHL3d9xpJiy8,6058
117
117
  mistralai_gcp/utils/headers.py,sha256=cPxWSmUILrefTGDzTH1Hdj7_Hlsj-EY6K5Tyc4iH4dk,3663
118
118
  mistralai_gcp/utils/logger.py,sha256=9nUtlKHo3RFsIVyMw5jq3wEKZMVwHnZMSc6xLp-otC0,520
119
119
  mistralai_gcp/utils/metadata.py,sha256=Per2KFXXOqOtoUWXrlIfjrSrBg199KrRW0nKQDgHIBU,3136
120
120
  mistralai_gcp/utils/queryparams.py,sha256=MTK6inMS1_WwjmMJEJmAn67tSHHJyarpdGRlorRHEtI,5899
121
- mistralai_gcp/utils/requestbodies.py,sha256=PXmttCHm1zWGmwbrTyXYXxbeULavRWqxfD54Jx2CdJE,2084
121
+ mistralai_gcp/utils/requestbodies.py,sha256=ySjEyjcLi731LNUahWvLOrES2HihuA8VrOJx4eQ7Qzg,2101
122
122
  mistralai_gcp/utils/retries.py,sha256=6yhfZifqIat9i76xF0lTR2jLj1IN9BNGyqqxATlEFPU,6348
123
123
  mistralai_gcp/utils/security.py,sha256=ktep3HKwbFs-MLxUYTM8Jd4v-ZBum5_Z0u1PFIdYBX0,5516
124
124
  mistralai_gcp/utils/serializers.py,sha256=BSJT7kBOkNBFyP7KREyMoe14JGbgijD1M6AXFMbdmco,4924
125
125
  mistralai_gcp/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
126
126
  mistralai_gcp/utils/values.py,sha256=_89YXPTI_BU6SXJBzFR4pIzTCBPQW9tsOTN1jeBBIDs,3428
127
- py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
128
127
  mistralai/__init__.py,sha256=ybmMeI8Pa2HEQCdADbpyIdm3JWu8AU61HxmDupOlTws,220
129
128
  mistralai/_hooks/__init__.py,sha256=9_7W5jAYw8rcO8Kfc-Ty-lB82BHfksAJJpVFb_UeU1c,146
130
129
  mistralai/_hooks/custom_user_agent.py,sha256=cHfp43RcsNvHusq8WVxWrCS3w-pmzJ8uNuvaMZKdtJ8,661
@@ -132,21 +131,21 @@ mistralai/_hooks/deprecation_warning.py,sha256=eyEOf7-o9uqqNWJnufD2RXp3dYrGV4in9
132
131
  mistralai/_hooks/registration.py,sha256=ML0W-XbE4WYdJ4eGks_XxF2aLCJTaIWjQATFGzFwvyU,861
133
132
  mistralai/_hooks/sdkhooks.py,sha256=s-orhdvnV89TmI3QiPC2LWQtYeM9RrsG1CTll-fYZmQ,2559
134
133
  mistralai/_hooks/types.py,sha256=vUkTVk_TSaK10aEj368KYWvnd4T5EsawixMcTro_UHc,2570
135
- mistralai/_version.py,sha256=Z6Ku1k5tFtQjKqQ54yWSf9xDJ3oDR8RSlCJYM5O5AeM,313
136
- mistralai/agents.py,sha256=sAt7cSO2VJGmcUy-EA3Bz9rFB5EYb4tArAO8vLZoXBs,28779
134
+ mistralai/_version.py,sha256=Yz7XlzG73mkVpgvZmhSXKKB1Idqv_O9EAF4QVSg_NIw,313
135
+ mistralai/agents.py,sha256=fR0i6638GqTptSr2rNCQG6WKH4_AiiPUA16tzqiRQBA,29496
137
136
  mistralai/async_client.py,sha256=KUdYxIIqoD6L7vB0EGwUR6lQ0NK5iCTHjnLVR9CVcJY,355
138
- mistralai/basesdk.py,sha256=MQIeNInArcIcDYgSy67EDf77ykys9JwjTlnboqdpEJ8,11273
137
+ mistralai/basesdk.py,sha256=da0sFeLR-ztU5-fuGJ4TMqUnnqSzXbPAjpNgKI52tBk,11999
139
138
  mistralai/batch.py,sha256=YN4D0Duwrap9Ysmp_lRpADYp1Znay7THE_z8ERGvDds,501
140
- mistralai/chat.py,sha256=sNZIDHGqaVeBesVCnAvGhh5PYN1i4n1ejtyZw-Yd0Ks,32954
141
- mistralai/classifiers.py,sha256=pHLWNynj1iiWvuRTKs5lcUNphX9Ko1eQ2Yi6wcnxu2Q,15101
139
+ mistralai/chat.py,sha256=gaTrfuLoJ7sH9Ku6SxCiZyswQE6XlGmdHAU4qJ2mvr0,33679
140
+ mistralai/classifiers.py,sha256=E2gQl8R4p-aVpvMzTInQ0MwEZn91Jj59Nub6rk6Xz1E,15818
142
141
  mistralai/client.py,sha256=hrPg-LciKMKiascF0WbRRmqQyCv1lb2yDh6j-aaKVNo,509
143
- mistralai/embeddings.py,sha256=S-_VG_djZ1oZOd5fQj4pYu0Y4INlgatl10dfMg5cmZw,7839
144
- mistralai/files.py,sha256=5Cb8zIvu5aQ7PTWBMNdXeU93FQ6Cyadj5BsyOcDEIyQ,39518
145
- mistralai/fim.py,sha256=R1tJV1ycDmkhvTkR_pxybYz0u8g5LcKMWlB1euCE5tA,25716
142
+ mistralai/embeddings.py,sha256=SBP-AeaiN2CMcznRkSli_F-YGABJXCe3MP7FDvNGRrs,8202
143
+ mistralai/files.py,sha256=TLvxzY4uKNOaMpQieBNb7HDIwzZ0yP8HHgkdCruIzjs,41651
144
+ mistralai/fim.py,sha256=55J_vlD0_mlcEW-a57vRU4oYMT-KgVNQ1BSSHDiB_Tg,26433
146
145
  mistralai/fine_tuning.py,sha256=UENQqfE054VEsAYxdruV-TBLFIFfO-joXNznH08GUvE,477
147
146
  mistralai/httpclient.py,sha256=WDbLpMzo7qmWki_ryOJcCAYNI1T4uyWKV08rRuCdNII,2688
148
- mistralai/jobs.py,sha256=Ne0JBqO9c1jZINpVZN-VuvCeJyiN4fTQPSnb7b-NRVM,39496
149
- mistralai/mistral_jobs.py,sha256=M3N-A7dYNY_Zobo1xhZtq3EK0j1I8Ny7hnoYmlajeMM,26949
147
+ mistralai/jobs.py,sha256=ftNZ6nzQZPQoEECUrma4jLSdkV4GwA9Q63sFZSI6bnY,41275
148
+ mistralai/mistral_jobs.py,sha256=UAjO2qL1zdfrTQ0WYXVsKtr9cqg3Lf6hgtc-aiL-Zno,28374
150
149
  mistralai/models/__init__.py,sha256=r-GIWDriQyAFaWvuazQhJPB6ZsCegcBVjoAcZyVu1ho,21712
151
150
  mistralai/models/agentscompletionrequest.py,sha256=iYCRAR6IQJR1WdIt6MjOkLlIdQUB8vCHf-utbGzU3oI,7618
152
151
  mistralai/models/agentscompletionstreamrequest.py,sha256=QLbh0bGxH-J_1A9isXJkwsx4IzeMWYZxw6Jrl0Kpfdk,7063
@@ -161,9 +160,9 @@ mistralai/models/batchjobsout.py,sha256=Tq6bcb4_-fcW8C9AOnfJN8_sTy1NQhDn82qFOKdF
161
160
  mistralai/models/batchjobstatus.py,sha256=WlrIl5vWQGfLmgQA91_9CnCMKhWN6Lli458fT-4Asj4,294
162
161
  mistralai/models/chatclassificationrequest.py,sha256=WYthWiE7euFSeJYJRQJMXmxbWzGDl8kpF4yyLO9ZJaE,3225
163
162
  mistralai/models/chatcompletionchoice.py,sha256=6iIFLZj2KYx0HFfzS3-E3sNXG6mPEAlDyXxIA5iZI_U,849
164
- mistralai/models/chatcompletionrequest.py,sha256=EGBBbr1TeP2NZasm5FV6XeoCayFiHdq3YYVRF4-5-Q8,9585
163
+ mistralai/models/chatcompletionrequest.py,sha256=E93EOWOm0uOjWqAoD9d0MAllzhwlFc23YD3bnzoXOA0,9587
165
164
  mistralai/models/chatcompletionresponse.py,sha256=sLE-_Bx9W5rH2-HE2fBWPVbJbmBWx_jSY2mJ3KBEn6w,792
166
- mistralai/models/chatcompletionstreamrequest.py,sha256=8VaeQ5h5rKGcmB5xZVeasoEouz92s4I7Fqcik81rsL8,9273
165
+ mistralai/models/chatcompletionstreamrequest.py,sha256=YSdqSpIDj5YcPxvQG7o7Beu36aPj4_-d4-edN9rIp6o,9275
167
166
  mistralai/models/checkpointout.py,sha256=A2kXS8-VT_1lbg3brifVjZD6tXdsET8vLqBm2a-yXgA,1109
168
167
  mistralai/models/classificationobject.py,sha256=JqaKo3AQD4t5X12ZnHjJ6K3Y6LXUn94uGdLJSoGr8vY,665
169
168
  mistralai/models/classificationrequest.py,sha256=UFbjwNFtLZmylX3DqQSH3FoOvvD1UGBapK6f9b9LGYE,1903
@@ -187,7 +186,7 @@ mistralai/models/files_api_routes_download_fileop.py,sha256=y3sLFZ-j4eUuxCyIP0L-
187
186
  mistralai/models/files_api_routes_get_signed_urlop.py,sha256=e_XczBgInaylmHJ9m5wJQ78hfCp2PrrTrT8bxGGi8BI,879
188
187
  mistralai/models/files_api_routes_list_filesop.py,sha256=ztzOPSCg7VfmRDxwxnquhTpLPRbI-wJAvkASOsv2g8w,3130
189
188
  mistralai/models/files_api_routes_retrieve_fileop.py,sha256=8DjSbYqUqFoPq-qcNXyVADeBVSsoCfHFlkRfmwYk-ns,504
190
- mistralai/models/files_api_routes_upload_fileop.py,sha256=w0KC9_GxbAXdXRlws7v9xezWepcBZVI-4gRzXXSG72w,2266
189
+ mistralai/models/files_api_routes_upload_fileop.py,sha256=gIGH5xcPryWYkj1FmNv_0-9He-QB_rRf1a5nUYBNDTU,2213
191
190
  mistralai/models/fileschema.py,sha256=cgHHp6H9HdIZqiFc-7BQwF5L6nzXz8aF6F7evEm-Hj4,2529
192
191
  mistralai/models/filesignedurl.py,sha256=VwvuhzhJulAB99Qxz6zr-2F1aINosAfaSxU0IhytDSU,289
193
192
  mistralai/models/fimcompletionrequest.py,sha256=DidQBt_s7o-VkfGNZpN6MUi19Qs_WXVCvA7ek45Hcnc,6606
@@ -252,29 +251,29 @@ mistralai/models/usermessage.py,sha256=kjS5HudMsaRNfeUhFFBCyY8l-umlHvGk8wvTIq6-q
252
251
  mistralai/models/validationerror.py,sha256=DouDBJmBhbW4KPsF5rZEyBdnB_adC-l32kuHC0bvO2I,526
253
252
  mistralai/models/wandbintegration.py,sha256=BkLD3r08ToZkMAhPXdnC7bfOGr3banKqt1wVKMGehUQ,2406
254
253
  mistralai/models/wandbintegrationout.py,sha256=C0HpS8jJGnACs7eWnuIq0qJEroIUAbjkvzfSSkSKS7Q,2274
255
- mistralai/models_.py,sha256=Kj5U6ODBgKiKs93Miaq11dlV3MDvaz--nI8ucvZVark,39797
254
+ mistralai/models_.py,sha256=kRnakzM3wQH8o99PZbMLXm7prVp2maguKJZab6HWzdM,41930
256
255
  mistralai/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
257
256
  mistralai/sdk.py,sha256=lLJOfh9im-TDBsXX9_qM-JPGXjQOOSBDGOrmlJWaZBY,5444
258
- mistralai/sdkconfiguration.py,sha256=YtOuVTpYMb4eMzCntsEYP18rpx44-YP1TmAIXdkg9xE,1688
257
+ mistralai/sdkconfiguration.py,sha256=hQtkOwXSkb5dyb8uFKcN95q7vawz_2BKkI60bS0whAo,1688
259
258
  mistralai/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
260
259
  mistralai/types/basemodel.py,sha256=PexI39iKiOkIlobB8Ueo0yn8PLHp6_wb-WO-zelNDZY,1170
261
260
  mistralai/utils/__init__.py,sha256=8npwwHS-7zjVrbkzBGO-Uk4GkjC240PCleMbgPK1Axs,2418
262
261
  mistralai/utils/annotations.py,sha256=aR7mZG34FzgRdew7WZPYEu9QGBerpuKxCF4sek5Z_5Y,1699
263
262
  mistralai/utils/enums.py,sha256=VzjeslROrAr2luZOTJlvu-4UlxgTaGOKlRYtJJ7IfyY,1006
264
263
  mistralai/utils/eventstreaming.py,sha256=LtcrfJYw4nP2Oe4Wl0-cEURLzRGYReRGWNFY5wYECIE,6186
265
- mistralai/utils/forms.py,sha256=L-y62DiD0FXnq7WIyw8BAMbdr7sZDwhZ_3YsdviBbaA,6325
264
+ mistralai/utils/forms.py,sha256=YSSijXrsM2nfrRHlPQejh1uRRKfoILomHL3d9xpJiy8,6058
266
265
  mistralai/utils/headers.py,sha256=cPxWSmUILrefTGDzTH1Hdj7_Hlsj-EY6K5Tyc4iH4dk,3663
267
266
  mistralai/utils/logger.py,sha256=TOF0Mqsua4GlsDhmrZz9hgMRvwd9zK7ytuqly3Vevxo,675
268
267
  mistralai/utils/metadata.py,sha256=Per2KFXXOqOtoUWXrlIfjrSrBg199KrRW0nKQDgHIBU,3136
269
268
  mistralai/utils/queryparams.py,sha256=MTK6inMS1_WwjmMJEJmAn67tSHHJyarpdGRlorRHEtI,5899
270
- mistralai/utils/requestbodies.py,sha256=PXmttCHm1zWGmwbrTyXYXxbeULavRWqxfD54Jx2CdJE,2084
269
+ mistralai/utils/requestbodies.py,sha256=ySjEyjcLi731LNUahWvLOrES2HihuA8VrOJx4eQ7Qzg,2101
271
270
  mistralai/utils/retries.py,sha256=6yhfZifqIat9i76xF0lTR2jLj1IN9BNGyqqxATlEFPU,6348
272
271
  mistralai/utils/security.py,sha256=vWlpkikOnGN_HRRhJ7Pb8ywVAjiM3d3ey3oTWtM6jTU,6008
273
272
  mistralai/utils/serializers.py,sha256=BSJT7kBOkNBFyP7KREyMoe14JGbgijD1M6AXFMbdmco,4924
274
273
  mistralai/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
275
274
  mistralai/utils/values.py,sha256=_89YXPTI_BU6SXJBzFR4pIzTCBPQW9tsOTN1jeBBIDs,3428
276
275
  mistralai/version.py,sha256=iosXhlXclBwBqlADFKEilxAC2wWKbtuBKi87AmPi7s8,196
277
- mistralai-1.2.5.dist-info/LICENSE,sha256=rUtQ_9GD0OyLPlb-2uWVdfE87hzudMRmsW-tS-0DK-0,11340
278
- mistralai-1.2.5.dist-info/METADATA,sha256=z9bWozmQu9DYvlDWTb3sblBhYUkvSxpd2HSnoqJB-Ko,27984
279
- mistralai-1.2.5.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
280
- mistralai-1.2.5.dist-info/RECORD,,
276
+ mistralai-1.3.0.dist-info/LICENSE,sha256=rUtQ_9GD0OyLPlb-2uWVdfE87hzudMRmsW-tS-0DK-0,11340
277
+ mistralai-1.3.0.dist-info/METADATA,sha256=8GPKZv0naWM4_YctEQpneXD7gLHKWipNfCo3lmXj9Q4,28105
278
+ mistralai-1.3.0.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
279
+ mistralai-1.3.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.1
2
+ Generator: poetry-core 2.0.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -3,7 +3,7 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "mistralai_azure"
6
- __version__: str = "1.2.3"
6
+ __version__: str = "1.2.6"
7
7
 
8
8
  try:
9
9
  if __package__ is not None: