mistralai 0.4.2__py3-none-any.whl → 0.5.5a50__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/__init__.py +5 -0
- mistralai/_hooks/__init__.py +5 -0
- mistralai/_hooks/custom_user_agent.py +16 -0
- mistralai/_hooks/deprecation_warning.py +26 -0
- mistralai/_hooks/registration.py +17 -0
- mistralai/_hooks/sdkhooks.py +57 -0
- mistralai/_hooks/types.py +76 -0
- mistralai/async_client.py +5 -413
- mistralai/basesdk.py +216 -0
- mistralai/chat.py +475 -0
- mistralai/client.py +5 -414
- mistralai/embeddings.py +182 -0
- mistralai/files.py +600 -84
- mistralai/fim.py +439 -0
- mistralai/fine_tuning.py +855 -0
- mistralai/httpclient.py +78 -0
- mistralai/models/__init__.py +80 -0
- mistralai/models/archiveftmodelout.py +19 -0
- mistralai/models/assistantmessage.py +58 -0
- mistralai/models/chatcompletionchoice.py +33 -0
- mistralai/models/chatcompletionrequest.py +114 -0
- mistralai/models/chatcompletionresponse.py +27 -0
- mistralai/models/chatcompletionstreamrequest.py +112 -0
- mistralai/models/checkpointout.py +25 -0
- mistralai/models/completionchunk.py +27 -0
- mistralai/models/completionevent.py +15 -0
- mistralai/models/completionresponsestreamchoice.py +53 -0
- mistralai/models/contentchunk.py +17 -0
- mistralai/models/delete_model_v1_models_model_id_deleteop.py +16 -0
- mistralai/models/deletefileout.py +24 -0
- mistralai/models/deletemodelout.py +25 -0
- mistralai/models/deltamessage.py +52 -0
- mistralai/models/detailedjobout.py +96 -0
- mistralai/models/embeddingrequest.py +66 -0
- mistralai/models/embeddingresponse.py +24 -0
- mistralai/models/embeddingresponsedata.py +19 -0
- mistralai/models/eventout.py +55 -0
- mistralai/models/files_api_routes_delete_fileop.py +16 -0
- mistralai/models/files_api_routes_retrieve_fileop.py +16 -0
- mistralai/models/files_api_routes_upload_fileop.py +51 -0
- mistralai/models/fileschema.py +76 -0
- mistralai/models/fimcompletionrequest.py +99 -0
- mistralai/models/fimcompletionresponse.py +27 -0
- mistralai/models/fimcompletionstreamrequest.py +97 -0
- mistralai/models/finetuneablemodel.py +8 -0
- mistralai/models/ftmodelcapabilitiesout.py +21 -0
- mistralai/models/ftmodelout.py +70 -0
- mistralai/models/function.py +19 -0
- mistralai/models/functioncall.py +16 -0
- mistralai/models/githubrepositoryin.py +57 -0
- mistralai/models/githubrepositoryout.py +57 -0
- mistralai/models/httpvalidationerror.py +23 -0
- mistralai/models/jobin.py +78 -0
- mistralai/models/jobmetadataout.py +59 -0
- mistralai/models/jobout.py +112 -0
- mistralai/models/jobs_api_routes_fine_tuning_archive_fine_tuned_modelop.py +16 -0
- mistralai/models/jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop.py +18 -0
- mistralai/models/jobs_api_routes_fine_tuning_create_fine_tuning_jobop.py +73 -0
- mistralai/models/jobs_api_routes_fine_tuning_get_fine_tuning_jobop.py +18 -0
- mistralai/models/jobs_api_routes_fine_tuning_get_fine_tuning_jobsop.py +86 -0
- mistralai/models/jobs_api_routes_fine_tuning_start_fine_tuning_jobop.py +16 -0
- mistralai/models/jobs_api_routes_fine_tuning_unarchive_fine_tuned_modelop.py +16 -0
- mistralai/models/jobs_api_routes_fine_tuning_update_fine_tuned_modelop.py +19 -0
- mistralai/models/jobsout.py +20 -0
- mistralai/models/legacyjobmetadataout.py +85 -0
- mistralai/models/listfilesout.py +17 -0
- mistralai/models/metricout.py +55 -0
- mistralai/models/modelcapabilities.py +21 -0
- mistralai/models/modelcard.py +71 -0
- mistralai/models/modellist.py +18 -0
- mistralai/models/responseformat.py +18 -0
- mistralai/models/retrieve_model_v1_models_model_id_getop.py +16 -0
- mistralai/models/retrievefileout.py +76 -0
- mistralai/models/sampletype.py +7 -0
- mistralai/models/sdkerror.py +22 -0
- mistralai/models/security.py +16 -0
- mistralai/models/source.py +7 -0
- mistralai/models/systemmessage.py +26 -0
- mistralai/models/textchunk.py +17 -0
- mistralai/models/tool.py +18 -0
- mistralai/models/toolcall.py +20 -0
- mistralai/models/toolmessage.py +55 -0
- mistralai/models/trainingfile.py +17 -0
- mistralai/models/trainingparameters.py +53 -0
- mistralai/models/trainingparametersin.py +61 -0
- mistralai/models/unarchiveftmodelout.py +19 -0
- mistralai/models/updateftmodelin.py +49 -0
- mistralai/models/uploadfileout.py +76 -0
- mistralai/models/usageinfo.py +18 -0
- mistralai/models/usermessage.py +26 -0
- mistralai/models/validationerror.py +24 -0
- mistralai/models/wandbintegration.py +61 -0
- mistralai/models/wandbintegrationout.py +57 -0
- mistralai/models_.py +928 -0
- mistralai/py.typed +1 -0
- mistralai/sdk.py +111 -0
- mistralai/sdkconfiguration.py +53 -0
- mistralai/types/__init__.py +21 -0
- mistralai/types/basemodel.py +35 -0
- mistralai/utils/__init__.py +82 -0
- mistralai/utils/annotations.py +19 -0
- mistralai/utils/enums.py +34 -0
- mistralai/utils/eventstreaming.py +179 -0
- mistralai/utils/forms.py +207 -0
- mistralai/utils/headers.py +136 -0
- mistralai/utils/metadata.py +118 -0
- mistralai/utils/queryparams.py +203 -0
- mistralai/utils/requestbodies.py +66 -0
- mistralai/utils/retries.py +216 -0
- mistralai/utils/security.py +182 -0
- mistralai/utils/serializers.py +181 -0
- mistralai/utils/url.py +150 -0
- mistralai/utils/values.py +128 -0
- {mistralai-0.4.2.dist-info → mistralai-0.5.5a50.dist-info}/LICENSE +1 -1
- mistralai-0.5.5a50.dist-info/METADATA +626 -0
- mistralai-0.5.5a50.dist-info/RECORD +228 -0
- mistralai_azure/__init__.py +5 -0
- mistralai_azure/_hooks/__init__.py +5 -0
- mistralai_azure/_hooks/custom_user_agent.py +16 -0
- mistralai_azure/_hooks/registration.py +15 -0
- mistralai_azure/_hooks/sdkhooks.py +57 -0
- mistralai_azure/_hooks/types.py +76 -0
- mistralai_azure/basesdk.py +215 -0
- mistralai_azure/chat.py +475 -0
- mistralai_azure/httpclient.py +78 -0
- mistralai_azure/models/__init__.py +28 -0
- mistralai_azure/models/assistantmessage.py +58 -0
- mistralai_azure/models/chatcompletionchoice.py +33 -0
- mistralai_azure/models/chatcompletionrequest.py +114 -0
- mistralai_azure/models/chatcompletionresponse.py +27 -0
- mistralai_azure/models/chatcompletionstreamrequest.py +112 -0
- mistralai_azure/models/completionchunk.py +27 -0
- mistralai_azure/models/completionevent.py +15 -0
- mistralai_azure/models/completionresponsestreamchoice.py +53 -0
- mistralai_azure/models/contentchunk.py +17 -0
- mistralai_azure/models/deltamessage.py +52 -0
- mistralai_azure/models/function.py +19 -0
- mistralai_azure/models/functioncall.py +16 -0
- mistralai_azure/models/httpvalidationerror.py +23 -0
- mistralai_azure/models/responseformat.py +18 -0
- mistralai_azure/models/sdkerror.py +22 -0
- mistralai_azure/models/security.py +16 -0
- mistralai_azure/models/systemmessage.py +26 -0
- mistralai_azure/models/textchunk.py +17 -0
- mistralai_azure/models/tool.py +18 -0
- mistralai_azure/models/toolcall.py +20 -0
- mistralai_azure/models/toolmessage.py +55 -0
- mistralai_azure/models/usageinfo.py +18 -0
- mistralai_azure/models/usermessage.py +26 -0
- mistralai_azure/models/validationerror.py +24 -0
- mistralai_azure/py.typed +1 -0
- mistralai_azure/sdk.py +102 -0
- mistralai_azure/sdkconfiguration.py +53 -0
- mistralai_azure/types/__init__.py +21 -0
- mistralai_azure/types/basemodel.py +35 -0
- mistralai_azure/utils/__init__.py +80 -0
- mistralai_azure/utils/annotations.py +19 -0
- mistralai_azure/utils/enums.py +34 -0
- mistralai_azure/utils/eventstreaming.py +179 -0
- mistralai_azure/utils/forms.py +207 -0
- mistralai_azure/utils/headers.py +136 -0
- mistralai_azure/utils/metadata.py +118 -0
- mistralai_azure/utils/queryparams.py +203 -0
- mistralai_azure/utils/requestbodies.py +66 -0
- mistralai_azure/utils/retries.py +216 -0
- mistralai_azure/utils/security.py +168 -0
- mistralai_azure/utils/serializers.py +181 -0
- mistralai_azure/utils/url.py +150 -0
- mistralai_azure/utils/values.py +128 -0
- mistralai_gcp/__init__.py +5 -0
- mistralai_gcp/_hooks/__init__.py +5 -0
- mistralai_gcp/_hooks/custom_user_agent.py +16 -0
- mistralai_gcp/_hooks/registration.py +15 -0
- mistralai_gcp/_hooks/sdkhooks.py +57 -0
- mistralai_gcp/_hooks/types.py +76 -0
- mistralai_gcp/basesdk.py +215 -0
- mistralai_gcp/chat.py +463 -0
- mistralai_gcp/fim.py +439 -0
- mistralai_gcp/httpclient.py +78 -0
- mistralai_gcp/models/__init__.py +31 -0
- mistralai_gcp/models/assistantmessage.py +58 -0
- mistralai_gcp/models/chatcompletionchoice.py +33 -0
- mistralai_gcp/models/chatcompletionrequest.py +110 -0
- mistralai_gcp/models/chatcompletionresponse.py +27 -0
- mistralai_gcp/models/chatcompletionstreamrequest.py +108 -0
- mistralai_gcp/models/completionchunk.py +27 -0
- mistralai_gcp/models/completionevent.py +15 -0
- mistralai_gcp/models/completionresponsestreamchoice.py +53 -0
- mistralai_gcp/models/contentchunk.py +17 -0
- mistralai_gcp/models/deltamessage.py +52 -0
- mistralai_gcp/models/fimcompletionrequest.py +99 -0
- mistralai_gcp/models/fimcompletionresponse.py +27 -0
- mistralai_gcp/models/fimcompletionstreamrequest.py +97 -0
- mistralai_gcp/models/function.py +19 -0
- mistralai_gcp/models/functioncall.py +16 -0
- mistralai_gcp/models/httpvalidationerror.py +23 -0
- mistralai_gcp/models/responseformat.py +18 -0
- mistralai_gcp/models/sdkerror.py +22 -0
- mistralai_gcp/models/security.py +16 -0
- mistralai_gcp/models/systemmessage.py +26 -0
- mistralai_gcp/models/textchunk.py +17 -0
- mistralai_gcp/models/tool.py +18 -0
- mistralai_gcp/models/toolcall.py +20 -0
- mistralai_gcp/models/toolmessage.py +55 -0
- mistralai_gcp/models/usageinfo.py +18 -0
- mistralai_gcp/models/usermessage.py +26 -0
- mistralai_gcp/models/validationerror.py +24 -0
- mistralai_gcp/py.typed +1 -0
- mistralai_gcp/sdk.py +165 -0
- mistralai_gcp/sdkconfiguration.py +53 -0
- mistralai_gcp/types/__init__.py +21 -0
- mistralai_gcp/types/basemodel.py +35 -0
- mistralai_gcp/utils/__init__.py +80 -0
- mistralai_gcp/utils/annotations.py +19 -0
- mistralai_gcp/utils/enums.py +34 -0
- mistralai_gcp/utils/eventstreaming.py +179 -0
- mistralai_gcp/utils/forms.py +207 -0
- mistralai_gcp/utils/headers.py +136 -0
- mistralai_gcp/utils/metadata.py +118 -0
- mistralai_gcp/utils/queryparams.py +203 -0
- mistralai_gcp/utils/requestbodies.py +66 -0
- mistralai_gcp/utils/retries.py +216 -0
- mistralai_gcp/utils/security.py +168 -0
- mistralai_gcp/utils/serializers.py +181 -0
- mistralai_gcp/utils/url.py +150 -0
- mistralai_gcp/utils/values.py +128 -0
- py.typed +1 -0
- mistralai/client_base.py +0 -211
- mistralai/constants.py +0 -5
- mistralai/exceptions.py +0 -54
- mistralai/jobs.py +0 -172
- mistralai/models/chat_completion.py +0 -93
- mistralai/models/common.py +0 -9
- mistralai/models/embeddings.py +0 -19
- mistralai/models/files.py +0 -23
- mistralai/models/jobs.py +0 -100
- mistralai/models/models.py +0 -39
- mistralai-0.4.2.dist-info/METADATA +0 -82
- mistralai-0.4.2.dist-info/RECORD +0 -20
- {mistralai-0.4.2.dist-info → mistralai-0.5.5a50.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
mistralai_azure/__init__.py,sha256=GiuvHuZHfHOt3Gy9V7IFS9rncGA536cO4qI9WhouYfY,146
|
|
2
|
+
mistralai_azure/_hooks/__init__.py,sha256=9_7W5jAYw8rcO8Kfc-Ty-lB82BHfksAJJpVFb_UeU1c,146
|
|
3
|
+
mistralai_azure/_hooks/custom_user_agent.py,sha256=1VAY7_oknRQGL8QNO0uCRHg6r7XYlssOMTj3gzyIVyk,538
|
|
4
|
+
mistralai_azure/_hooks/registration.py,sha256=5BN-U92pwP5kUaN7EOso2vWrwZlLvRcU5Coccibqp20,741
|
|
5
|
+
mistralai_azure/_hooks/sdkhooks.py,sha256=tHpz-Hco6up3lnQRDRq8OsMd5FEFjYY9MG4oefXKtdc,2460
|
|
6
|
+
mistralai_azure/_hooks/types.py,sha256=mJZS5ItPpWpgWwcNOx4oLQwLelqxEw_zP5yw10FeQAw,2410
|
|
7
|
+
mistralai_azure/basesdk.py,sha256=w_M0b4DonlcivNazNaqUrcU0HTu3OaJr-b00w0edpK0,7323
|
|
8
|
+
mistralai_azure/chat.py,sha256=Zc4JTtXZqH74z-IYfsjbNWos4cOERINV8Ky8epuqFTs,25974
|
|
9
|
+
mistralai_azure/httpclient.py,sha256=S_ItzEchFX-znIdHD6i5-a91H0Dn5QxpT0KhucdHBbI,2595
|
|
10
|
+
mistralai_azure/models/__init__.py,sha256=hW-g98XfDAi9VSYk5hhqSbDTIUu4ABQqrioKOX4umz4,3768
|
|
11
|
+
mistralai_azure/models/assistantmessage.py,sha256=n3qL5BeZHIFxxTDsrxq8Iin5osZyvRC58tLUk8FQUmM,2272
|
|
12
|
+
mistralai_azure/models/chatcompletionchoice.py,sha256=UU2_1nUJXWFWbsm6danoy96jP0zQpeFjTv1yboxWN38,1401
|
|
13
|
+
mistralai_azure/models/chatcompletionrequest.py,sha256=GF_7zNDDOv1iWiaafImPnQxUd2XU7Qwp4L_I6CVVTGw,7102
|
|
14
|
+
mistralai_azure/models/chatcompletionresponse.py,sha256=x4C878hm7VmzR7AY7cHqXCOdmAvH34E82E3OuxujT6k,802
|
|
15
|
+
mistralai_azure/models/chatcompletionstreamrequest.py,sha256=W49kUQmVtR6cHoxtXsYQ64xuPfKF-Q4uldN8yWhLTTU,6214
|
|
16
|
+
mistralai_azure/models/completionchunk.py,sha256=vE4iSLdX2DpDqYCSJctRgIKdau_inSJu6o7DC0exs4Q,868
|
|
17
|
+
mistralai_azure/models/completionevent.py,sha256=LKbNJfEXbtl-e68h8H0YC3dtLbBWV_6rsOCTMbQHkYg,403
|
|
18
|
+
mistralai_azure/models/completionresponsestreamchoice.py,sha256=rqAALmeMtvDA4bQw1YVZdlLTzh27RsI5VRKEFWdUN4w,1584
|
|
19
|
+
mistralai_azure/models/contentchunk.py,sha256=vFt7cRYpGkzxsiSpj1MY3letwp2w8GLLu8Q8dNfewMQ,462
|
|
20
|
+
mistralai_azure/models/deltamessage.py,sha256=QkBJZYkB6y_l2WBm-bHRGuvT_9MzulZWSfjCbR0pzMc,1626
|
|
21
|
+
mistralai_azure/models/function.py,sha256=RclkdSPCi-Vl5TRlYatxnxsjUzMRLDRxnE5Vzs_KEGs,480
|
|
22
|
+
mistralai_azure/models/functioncall.py,sha256=Gx33Vy9MQoIAzkHM5Hfcxkencf_oOa7mvaU3ByJ_bOQ,331
|
|
23
|
+
mistralai_azure/models/httpvalidationerror.py,sha256=TnO09c69xuDDZZF--rr5pwmDYKs3XUjQdQwlTz2KDW4,653
|
|
24
|
+
mistralai_azure/models/responseformat.py,sha256=NK6c75wQKwFS1nvzWgVCRpge6Fk5bMLVJZBNE-8x6F0,766
|
|
25
|
+
mistralai_azure/models/sdkerror.py,sha256=kd75e3JYF2TXNgRZopcV-oGdBWoBZqRcvrwqn2fsFYs,528
|
|
26
|
+
mistralai_azure/models/security.py,sha256=hq1l5hcumpksUyXKzxhKKFCUq5nxfAG8X-6fTLDUGrA,530
|
|
27
|
+
mistralai_azure/models/systemmessage.py,sha256=WfyIp2Syi-L_gZZE-zD9_LNEZaNX8IOIThOR9HJFNaM,648
|
|
28
|
+
mistralai_azure/models/textchunk.py,sha256=RQ6S1m-jy1jYfwyZ1ClfvdLNrdgf8gf145HfinlCgGI,456
|
|
29
|
+
mistralai_azure/models/tool.py,sha256=hVbHJ44yAIgrFPfboZ8Ck2zZGWZ_X4SM7FerFjZywnk,527
|
|
30
|
+
mistralai_azure/models/toolcall.py,sha256=QPxFufDzlYi_5Mqp-mtzjxKivDb2Su6YBFH9mfttCOc,624
|
|
31
|
+
mistralai_azure/models/toolmessage.py,sha256=xhomRoi-SE63TQpdBqsC_S5Z2f44UihcAYx29EgIGDc,1685
|
|
32
|
+
mistralai_azure/models/usageinfo.py,sha256=CZyJp70P0L1c6joHOk939ASLfTTYw8UOloaRax2NcKs,403
|
|
33
|
+
mistralai_azure/models/usermessage.py,sha256=GVot756b_WjWysVub4uD5XR-3UIRMbor80lkXiUFjoI,702
|
|
34
|
+
mistralai_azure/models/validationerror.py,sha256=g5T766Un3VeL4LuxtMww6y3S-bvqfsSva_EcPbKgLuw,442
|
|
35
|
+
mistralai_azure/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
|
36
|
+
mistralai_azure/sdk.py,sha256=3YTFKnRN5yca7RYbc-s_FOuzxr4bTakkDfGm5xG1BsY,3758
|
|
37
|
+
mistralai_azure/sdkconfiguration.py,sha256=75lnLM3SdRlwhGiuuVb6pw6TuL03KpOMdsdeYdmcBJQ,1696
|
|
38
|
+
mistralai_azure/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
|
39
|
+
mistralai_azure/types/basemodel.py,sha256=QoM3vxefEuZ0x2J-XERAakxs4sUcBCIjmP6-rs6ssmo,993
|
|
40
|
+
mistralai_azure/utils/__init__.py,sha256=aMLOQlnQyBYwogN4z27pmpcn9_HJK1F6c6uBZm_pqGw,2019
|
|
41
|
+
mistralai_azure/utils/annotations.py,sha256=475O8UTbQNQiawh8ZoJi_NDPKqhgW7vzy046ffMU8jI,655
|
|
42
|
+
mistralai_azure/utils/enums.py,sha256=VzjeslROrAr2luZOTJlvu-4UlxgTaGOKlRYtJJ7IfyY,1006
|
|
43
|
+
mistralai_azure/utils/eventstreaming.py,sha256=Wtk6mMiANDsb_pqfkb0W3CUyIGGz7oqHDWeBNeNMS_Y,4882
|
|
44
|
+
mistralai_azure/utils/forms.py,sha256=JVg7suFdwOZ1T2oE_HD3kDs_BSbA3vegcNy52WdVl9I,6246
|
|
45
|
+
mistralai_azure/utils/headers.py,sha256=-p4ps3CqUV9jhM3T_VWvWDaIi1z58fqttOJA5xEddSY,3627
|
|
46
|
+
mistralai_azure/utils/metadata.py,sha256=Per2KFXXOqOtoUWXrlIfjrSrBg199KrRW0nKQDgHIBU,3136
|
|
47
|
+
mistralai_azure/utils/queryparams.py,sha256=vlVjKtLvtgtojqFNsaTfewDCriBfMurYKpHSHnyrt8o,5856
|
|
48
|
+
mistralai_azure/utils/requestbodies.py,sha256=PXmttCHm1zWGmwbrTyXYXxbeULavRWqxfD54Jx2CdJE,2084
|
|
49
|
+
mistralai_azure/utils/retries.py,sha256=-HK2SaiAZBzQLA9L7iO0yzFcbLsk8qoCd9pa6x4yhig,6358
|
|
50
|
+
mistralai_azure/utils/security.py,sha256=t9x-rRwWYsS15lGcnGu1sQhos3MTyKwI1ewGuzu8aEc,5326
|
|
51
|
+
mistralai_azure/utils/serializers.py,sha256=YRBVvAQ9Ywl2N2DanYlEKc2tKys2xcsiUY_lfG0lG10,4132
|
|
52
|
+
mistralai_azure/utils/url.py,sha256=Bvu71MYt9NJFYOmPcWVylrdUf3QtytbjqllNkWTCRHE,5195
|
|
53
|
+
mistralai_azure/utils/values.py,sha256=KauGimRv4_lfIfijquDLWd1v4HbqnQiG8Rn61Stdxbg,3294
|
|
54
|
+
mistralai_gcp/__init__.py,sha256=GiuvHuZHfHOt3Gy9V7IFS9rncGA536cO4qI9WhouYfY,146
|
|
55
|
+
mistralai_gcp/_hooks/__init__.py,sha256=9_7W5jAYw8rcO8Kfc-Ty-lB82BHfksAJJpVFb_UeU1c,146
|
|
56
|
+
mistralai_gcp/_hooks/custom_user_agent.py,sha256=1VAY7_oknRQGL8QNO0uCRHg6r7XYlssOMTj3gzyIVyk,538
|
|
57
|
+
mistralai_gcp/_hooks/registration.py,sha256=5BN-U92pwP5kUaN7EOso2vWrwZlLvRcU5Coccibqp20,741
|
|
58
|
+
mistralai_gcp/_hooks/sdkhooks.py,sha256=ep2bHxkj-EOe79ZpDji0CRtat1f1Rpra6DUUv9AOz38,2458
|
|
59
|
+
mistralai_gcp/_hooks/types.py,sha256=dZ0vmT5UJE4A_nNOTJFT4I8u3MYJl1cuE8gSeETJhOk,2408
|
|
60
|
+
mistralai_gcp/basesdk.py,sha256=WIqePE3QtQOf75rWRPtP3J5aboms4bB7ByqM1HsZzjE,7315
|
|
61
|
+
mistralai_gcp/chat.py,sha256=t95sHhPuor1s39JJZjrCTFIuU45DXFk6c-p6903ckVA,25834
|
|
62
|
+
mistralai_gcp/fim.py,sha256=NTAwZZReqZMJwdTpBIDdDRiit-wtiJGotBJc6QxBzh4,23688
|
|
63
|
+
mistralai_gcp/httpclient.py,sha256=S_ItzEchFX-znIdHD6i5-a91H0Dn5QxpT0KhucdHBbI,2595
|
|
64
|
+
mistralai_gcp/models/__init__.py,sha256=y5TPMXYVvDynZLbChzJWQ0Z949DLmf568TlHzTo6wUQ,4508
|
|
65
|
+
mistralai_gcp/models/assistantmessage.py,sha256=OCEXruQ2JBZt3zCDl7ZWerXx1JFx4Et5IknKOnV2mdQ,2270
|
|
66
|
+
mistralai_gcp/models/chatcompletionchoice.py,sha256=aiJoeJ2TrebmlNSWMz2aZYPQJ9VSCwuVYXTm8_Nffjc,1397
|
|
67
|
+
mistralai_gcp/models/chatcompletionrequest.py,sha256=NoQy0kL9gWcIfa4ZHjfkCSjYQeQtcIThiC7TzY6ZA_M,7158
|
|
68
|
+
mistralai_gcp/models/chatcompletionresponse.py,sha256=lljI1r6VwGsPvCI0zR85UtACyRY9PwQT0TznLXNgSP8,800
|
|
69
|
+
mistralai_gcp/models/chatcompletionstreamrequest.py,sha256=1Vpn-shWYkEj0J9rNCHxs5lgt7PxP0Zg2xVfuo45A3c,6270
|
|
70
|
+
mistralai_gcp/models/completionchunk.py,sha256=6l_sWiZR20mf2hAYD410xk2PnTkNM2uI_eGoxEY4QKQ,866
|
|
71
|
+
mistralai_gcp/models/completionevent.py,sha256=lfH9lU5AZSUFdJhYtZIfsxD93SuyBRiqvoygTmQ-8eU,401
|
|
72
|
+
mistralai_gcp/models/completionresponsestreamchoice.py,sha256=84otjseBrt0WhEQojZaoznjTDw-n9vv6-QAjd7af4fs,1582
|
|
73
|
+
mistralai_gcp/models/contentchunk.py,sha256=ZnGbO7Bh8-FVKw4I-MLFBcs-xEUtLIj7a03Y0zoBTr8,460
|
|
74
|
+
mistralai_gcp/models/deltamessage.py,sha256=Hze-3sy-HwgHyE48WU16fX4GzSoa9JrZpCFZDk8gQwI,1624
|
|
75
|
+
mistralai_gcp/models/fimcompletionrequest.py,sha256=eEwMPG6K7fPt8v3Az_xjIKwAi5G9xKkD1cIJODevz10,6026
|
|
76
|
+
mistralai_gcp/models/fimcompletionresponse.py,sha256=UH6etES-gDOFQog9_VZ78HSCDVIOnpS2yagRR-tWzw0,798
|
|
77
|
+
mistralai_gcp/models/fimcompletionstreamrequest.py,sha256=ky4m3h7NqJsn_EjuyS3slDjvlpY01_U5f8RiDVEk-8A,5393
|
|
78
|
+
mistralai_gcp/models/function.py,sha256=J4thGl0Mpr017thKTPSFZzZhN4kh6KuBy_vXeZN-y_4,478
|
|
79
|
+
mistralai_gcp/models/functioncall.py,sha256=rp-mPDD4Odo2QmsPwAYWGPgmpBzu1pX7kKE7p0VO18g,329
|
|
80
|
+
mistralai_gcp/models/httpvalidationerror.py,sha256=Bp8RPeba1BYF10q32yxtUaoIgsfpyMKEZbeZ7ZMdUmQ,649
|
|
81
|
+
mistralai_gcp/models/responseformat.py,sha256=VmlgNxK1GanCgkGaehmEkKPD9cahnuFGo8SEFarUtio,764
|
|
82
|
+
mistralai_gcp/models/sdkerror.py,sha256=kd75e3JYF2TXNgRZopcV-oGdBWoBZqRcvrwqn2fsFYs,528
|
|
83
|
+
mistralai_gcp/models/security.py,sha256=nkq31t3ybeZdQmyM3mKke4kk2n5V68Lfn3MQZtwwtWc,526
|
|
84
|
+
mistralai_gcp/models/systemmessage.py,sha256=_l6Pm3_xrUYdcmMPwLQQeMIj-G1tUWaP6fNgLKzkbV4,646
|
|
85
|
+
mistralai_gcp/models/textchunk.py,sha256=by-at5dVgV_yjo85T9lOT1p8NbcRT6Uc9RJ9_YCiBK4,454
|
|
86
|
+
mistralai_gcp/models/tool.py,sha256=AkI2VYbM4FI0xUVGFm_1i-Dz32SmAD1M99AU146kSC8,525
|
|
87
|
+
mistralai_gcp/models/toolcall.py,sha256=dvqzukuRJ0WKndCe03so2REYx6ftKhXwUZ_C2yd5k7U,622
|
|
88
|
+
mistralai_gcp/models/toolmessage.py,sha256=4bWzp9eq_kRSI5cRDjL6UfPxwz0cGxmI32sSiDxjuoU,1683
|
|
89
|
+
mistralai_gcp/models/usageinfo.py,sha256=kTFYFhieGnuNlqrOHUDW2fURMYHTqf9W641BM1JwNro,401
|
|
90
|
+
mistralai_gcp/models/usermessage.py,sha256=r7ggF_g7YWTzodflGe_MFq9wFgAuOigGCBZlICJurRA,700
|
|
91
|
+
mistralai_gcp/models/validationerror.py,sha256=6aUfQTDiUrtbNHDIauk4Z6WGNk3qrdVInqnpZ_C41-g,440
|
|
92
|
+
mistralai_gcp/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
|
93
|
+
mistralai_gcp/sdk.py,sha256=1yEfjw36Fa30brslBteskXcWRD9boTS4qBhRlWZKSaM,5999
|
|
94
|
+
mistralai_gcp/sdkconfiguration.py,sha256=xp_dqO1NNRaW8NMxLxC--pfzfv4drY4wch1UQcGT79M,1690
|
|
95
|
+
mistralai_gcp/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
|
96
|
+
mistralai_gcp/types/basemodel.py,sha256=QoM3vxefEuZ0x2J-XERAakxs4sUcBCIjmP6-rs6ssmo,993
|
|
97
|
+
mistralai_gcp/utils/__init__.py,sha256=aMLOQlnQyBYwogN4z27pmpcn9_HJK1F6c6uBZm_pqGw,2019
|
|
98
|
+
mistralai_gcp/utils/annotations.py,sha256=475O8UTbQNQiawh8ZoJi_NDPKqhgW7vzy046ffMU8jI,655
|
|
99
|
+
mistralai_gcp/utils/enums.py,sha256=VzjeslROrAr2luZOTJlvu-4UlxgTaGOKlRYtJJ7IfyY,1006
|
|
100
|
+
mistralai_gcp/utils/eventstreaming.py,sha256=Wtk6mMiANDsb_pqfkb0W3CUyIGGz7oqHDWeBNeNMS_Y,4882
|
|
101
|
+
mistralai_gcp/utils/forms.py,sha256=JVg7suFdwOZ1T2oE_HD3kDs_BSbA3vegcNy52WdVl9I,6246
|
|
102
|
+
mistralai_gcp/utils/headers.py,sha256=-p4ps3CqUV9jhM3T_VWvWDaIi1z58fqttOJA5xEddSY,3627
|
|
103
|
+
mistralai_gcp/utils/metadata.py,sha256=Per2KFXXOqOtoUWXrlIfjrSrBg199KrRW0nKQDgHIBU,3136
|
|
104
|
+
mistralai_gcp/utils/queryparams.py,sha256=vlVjKtLvtgtojqFNsaTfewDCriBfMurYKpHSHnyrt8o,5856
|
|
105
|
+
mistralai_gcp/utils/requestbodies.py,sha256=PXmttCHm1zWGmwbrTyXYXxbeULavRWqxfD54Jx2CdJE,2084
|
|
106
|
+
mistralai_gcp/utils/retries.py,sha256=-HK2SaiAZBzQLA9L7iO0yzFcbLsk8qoCd9pa6x4yhig,6358
|
|
107
|
+
mistralai_gcp/utils/security.py,sha256=t9x-rRwWYsS15lGcnGu1sQhos3MTyKwI1ewGuzu8aEc,5326
|
|
108
|
+
mistralai_gcp/utils/serializers.py,sha256=YRBVvAQ9Ywl2N2DanYlEKc2tKys2xcsiUY_lfG0lG10,4132
|
|
109
|
+
mistralai_gcp/utils/url.py,sha256=Bvu71MYt9NJFYOmPcWVylrdUf3QtytbjqllNkWTCRHE,5195
|
|
110
|
+
mistralai_gcp/utils/values.py,sha256=KauGimRv4_lfIfijquDLWd1v4HbqnQiG8Rn61Stdxbg,3294
|
|
111
|
+
py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
|
112
|
+
mistralai/__init__.py,sha256=GiuvHuZHfHOt3Gy9V7IFS9rncGA536cO4qI9WhouYfY,146
|
|
113
|
+
mistralai/_hooks/__init__.py,sha256=9_7W5jAYw8rcO8Kfc-Ty-lB82BHfksAJJpVFb_UeU1c,146
|
|
114
|
+
mistralai/_hooks/custom_user_agent.py,sha256=Q_bKWa4cqUr7nOybJLIqdR63K3jVzdeXh101nyngFaA,543
|
|
115
|
+
mistralai/_hooks/deprecation_warning.py,sha256=eyEOf7-o9uqqNWJnufD2RXp3dYrGV4in9q76yLC1zog,921
|
|
116
|
+
mistralai/_hooks/registration.py,sha256=ML0W-XbE4WYdJ4eGks_XxF2aLCJTaIWjQATFGzFwvyU,861
|
|
117
|
+
mistralai/_hooks/sdkhooks.py,sha256=WCbPewN31708amCF7rTVqmQcpnxQpuG2Xdb38qXCq6A,2454
|
|
118
|
+
mistralai/_hooks/types.py,sha256=eDaXqYBqW_D_3Tn424cNCE1frBeh139JLso0hYrQka8,2404
|
|
119
|
+
mistralai/async_client.py,sha256=KUdYxIIqoD6L7vB0EGwUR6lQ0NK5iCTHjnLVR9CVcJY,355
|
|
120
|
+
mistralai/basesdk.py,sha256=Rovvszha1yV0TozUYCXI3D6-IwXDcaMCpa-6Zb4K7mw,7372
|
|
121
|
+
mistralai/chat.py,sha256=wNSKqf1T1PL3HNUSu6KvZeacJajRhJOjYlk5d_OTeO4,26604
|
|
122
|
+
mistralai/client.py,sha256=uoWRTTESyAivY6nrDlTrVU5vrn-fzUb0d-1zQSE0YQQ,419
|
|
123
|
+
mistralai/embeddings.py,sha256=29WH1dnN70YYMndUxVllFGSe7Nuv96dLcfKDW6M66a8,7252
|
|
124
|
+
mistralai/files.py,sha256=QAI20_oFBo71SoNemgJ0d8OWCO7Ln-annEtyP6vW8Qs,23910
|
|
125
|
+
mistralai/fim.py,sha256=5fX_tpcauU_YRC-VQh_jrb-7YpgW9VBRhJYUURb8fb4,23686
|
|
126
|
+
mistralai/fine_tuning.py,sha256=D2h6sP2W7jkVknM7oPxHs3rFTKv2ZrzHUWLmWfzQRkQ,38039
|
|
127
|
+
mistralai/httpclient.py,sha256=S_ItzEchFX-znIdHD6i5-a91H0Dn5QxpT0KhucdHBbI,2595
|
|
128
|
+
mistralai/models/__init__.py,sha256=9Glh9UqhRATuj98Y9nw2uhuDTUoBu_NBnk6D9jo_GUY,12385
|
|
129
|
+
mistralai/models/archiveftmodelout.py,sha256=dhbOq_9mdXHcleNUZUpmHCNqo6fDbpzQWrWWh3bJQ_Y,548
|
|
130
|
+
mistralai/models/assistantmessage.py,sha256=0aEcle9FCbtUEhLjasspYOIWGwiWTzANSuKHKPf8m8c,2266
|
|
131
|
+
mistralai/models/chatcompletionchoice.py,sha256=XqIpB6T9juZ_XKKcReVrkEexp37ENfw5By6MVZLFvDg,1329
|
|
132
|
+
mistralai/models/chatcompletionrequest.py,sha256=9gh2mPab3R5pqsvr9KZcTDs5yE0RJa2oDYEAcc7OGT0,7151
|
|
133
|
+
mistralai/models/chatcompletionresponse.py,sha256=qRgYtu_lGzn-0D2Q3lWHX3Y0qCZs-3S9m5XRvOE8bfg,796
|
|
134
|
+
mistralai/models/chatcompletionstreamrequest.py,sha256=NQD2V8_VAM4IO7FTVf10XiLg12cvaEI4_Toa4NRYiEU,6791
|
|
135
|
+
mistralai/models/checkpointout.py,sha256=gWrM4kwQ4ttyxFPbWHeGyG4bfiFRs17JTJluBPKdnRc,1105
|
|
136
|
+
mistralai/models/completionchunk.py,sha256=js9omyCN6anHGecrEpJTfZwEzFstmbhjOdgIgPDSmJQ,862
|
|
137
|
+
mistralai/models/completionevent.py,sha256=GSDcIK9lrME3bvo8fSCSIDhlx5V1xqUPGsrBoB_eDf8,397
|
|
138
|
+
mistralai/models/completionresponsestreamchoice.py,sha256=SAcGFb1JdGtSDpaDCrH6MNDbed8HtoWTPg2h7Nt2NTo,1668
|
|
139
|
+
mistralai/models/contentchunk.py,sha256=VHVp8t2Wcc1kuN3bBs-xMZIR6WCpGgDFNc_6KKU3lVI,456
|
|
140
|
+
mistralai/models/delete_model_v1_models_model_id_deleteop.py,sha256=PFrMjT8tU866R9VHPwZN4e0mOAwcmi-wEyQzDpcQ1RE,531
|
|
141
|
+
mistralai/models/deletefileout.py,sha256=OnzP03JES5Gyguh9S9di5VevDdDTbdTY1L0gTv9RdMQ,583
|
|
142
|
+
mistralai/models/deletemodelout.py,sha256=9aRBZFP_IOX_v0gTP00qkrZjuMveZWnRKFp80Wx3bHk,700
|
|
143
|
+
mistralai/models/deltamessage.py,sha256=g__7XdUVIngnLLwOg0KSBGH8So13e1AcxEYnKrsOTWk,1620
|
|
144
|
+
mistralai/models/detailedjobout.py,sha256=7WFpOWls-v9Q45F3KlebuKWRkrPCERsdrKOJTkwlFCY,4160
|
|
145
|
+
mistralai/models/embeddingrequest.py,sha256=4t7555eiN7p6VMeqHNHciRBfMXmMZCEvIx4AHc3WbEg,1930
|
|
146
|
+
mistralai/models/embeddingresponse.py,sha256=3ny1ziseq-pYFkPV1IzsrEFH-tIojDYbs6oh99MjFi4,639
|
|
147
|
+
mistralai/models/embeddingresponsedata.py,sha256=M7cCJNf6jOXW4doA4ArMz9BI-ygmoiFdT7ttGx8mwNk,541
|
|
148
|
+
mistralai/models/eventout.py,sha256=oygWxMXNo2W0FA0Ok1oDsu7gBllBkBB1JXMks8aBLS8,1651
|
|
149
|
+
mistralai/models/files_api_routes_delete_fileop.py,sha256=eNXQdg248zA06BGiVEyq_8roxen71jM0pNQlwxjBswc,513
|
|
150
|
+
mistralai/models/files_api_routes_retrieve_fileop.py,sha256=rXDIMC-zRHkZb86cn9pfTEpdwAjpvuFhUeYNFRBidcU,517
|
|
151
|
+
mistralai/models/files_api_routes_upload_fileop.py,sha256=69eWtpOJlt4n7I5M7VqELfgjGGUpRwmIhpLQ20r78t0,2004
|
|
152
|
+
mistralai/models/fileschema.py,sha256=I2I_SrCXltpb0gHQyZjz2oldraNDt-CtLm9WSFphlhs,2427
|
|
153
|
+
mistralai/models/fimcompletionrequest.py,sha256=SrFYfjLHzA5d0eJ8ZQCPdDGlD-ettWtKmWarfx2Pz78,6022
|
|
154
|
+
mistralai/models/fimcompletionresponse.py,sha256=WniZPWtPKptxmboqThX84-SL4wfTpxT0UQJbjGWSi8Q,794
|
|
155
|
+
mistralai/models/fimcompletionstreamrequest.py,sha256=nlTlP5S311s7yZKNw8ERHHYd73m39ixVC64tYkicWeo,5389
|
|
156
|
+
mistralai/models/finetuneablemodel.py,sha256=EN9zh1KqgSrhVcJ0dcSMh3mBUHVdLojvMCrophjjTaM,316
|
|
157
|
+
mistralai/models/ftmodelcapabilitiesout.py,sha256=d6fgSickqwb5_fre7hRdqWmfTJ6nZdNMpGzIjkkamkU,654
|
|
158
|
+
mistralai/models/ftmodelout.py,sha256=RZ05s-8d56zYcWi_VMWXSEr5CA1zUCp_W5CUS7PEd7A,2219
|
|
159
|
+
mistralai/models/function.py,sha256=RRA1DgD3HG00gR8Moe-POFAH9ccu3wqqy31_1voQ4JU,474
|
|
160
|
+
mistralai/models/functioncall.py,sha256=o4Q90m_E9oLgqWsYBl2rcM3DirkBeLJBxwMdLxhse60,325
|
|
161
|
+
mistralai/models/githubrepositoryin.py,sha256=Ge9GALCeH1JFjlJ4zAypjZUFDZBfMpG4RHpJ5wAQnL4,1695
|
|
162
|
+
mistralai/models/githubrepositoryout.py,sha256=Ho0qM8wTTLsRy7Si3d_JCFqqh51KQBdHEMvUAusPR98,1705
|
|
163
|
+
mistralai/models/httpvalidationerror.py,sha256=nAISHQ23SeSjME9VQghKNvtlU68BG9Yj94RimmLnauU,641
|
|
164
|
+
mistralai/models/jobin.py,sha256=nKsV_1HkR0R41f0v_9E_2w5mQ-6XnKZdGKrZDwyn7l8,4191
|
|
165
|
+
mistralai/models/jobmetadataout.py,sha256=30WdnamoQw0nS5CkMS9Zs00xCPthSWzT5JT8v7u0pfE,2254
|
|
166
|
+
mistralai/models/jobout.py,sha256=mwcenXsSRtm1C2k9AZPkOe9soGhALopTI7EOMW-WUaM,5505
|
|
167
|
+
mistralai/models/jobs_api_routes_fine_tuning_archive_fine_tuned_modelop.py,sha256=KD7XSipbNJX1H7-S8zzSfzM8HnIamnI39kMBgj4BD0c,555
|
|
168
|
+
mistralai/models/jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop.py,sha256=_RrA1AI50Cp8f204cP5l7EIspn7UfFGUf2woWrGP4K0,627
|
|
169
|
+
mistralai/models/jobs_api_routes_fine_tuning_create_fine_tuning_jobop.py,sha256=pvgoIYVs0V_87WqAJpJc8KnMd1VhsE4uanUEwPVsbjk,2822
|
|
170
|
+
mistralai/models/jobs_api_routes_fine_tuning_get_fine_tuning_jobop.py,sha256=TcfYkUuX3XycsuncG_u5PeOHcufkiVgzm_vdHBB4AiY,623
|
|
171
|
+
mistralai/models/jobs_api_routes_fine_tuning_get_fine_tuning_jobsop.py,sha256=OYlqR0l2K3cCHnSH4O1FOVGDhftcfOnKBHJTyZoyNdY,5050
|
|
172
|
+
mistralai/models/jobs_api_routes_fine_tuning_start_fine_tuning_jobop.py,sha256=S53w_mTDWYJiWMlPfkqkbJboB4Of30LuT8b8yj99baY,545
|
|
173
|
+
mistralai/models/jobs_api_routes_fine_tuning_unarchive_fine_tuned_modelop.py,sha256=-z2I2Y2x8rMAjSB9jXrgDNbWB7XuK-IXoVWkNZOPiFY,559
|
|
174
|
+
mistralai/models/jobs_api_routes_fine_tuning_update_fine_tuned_modelop.py,sha256=ZyqwWulPdhnAmPc59WoIGAlBf7M--f4c8gMDdXURn4w,812
|
|
175
|
+
mistralai/models/jobsout.py,sha256=zyn3XGHMFVZzHcSV05yHEzgN0LKgqxcOA1tnKnFDHJ4,600
|
|
176
|
+
mistralai/models/legacyjobmetadataout.py,sha256=1KCUmQ3EyuHqTcbgzrZaf4Z7s8MO-T-1PSxLUKNeB5c,4194
|
|
177
|
+
mistralai/models/listfilesout.py,sha256=ynGUG0oi9boSfHVBFqlkOSkDz2QVf974hG444yF-aOY,416
|
|
178
|
+
mistralai/models/metricout.py,sha256=RbE-heKvVDTvMFwf5TFlXtHB3IJjoLsWaAa56rmebCg,2078
|
|
179
|
+
mistralai/models/modelcapabilities.py,sha256=bGPtxjm4vnUP0BrMbMgGKAaAkMcJs1jmflPXjNQyVVs,643
|
|
180
|
+
mistralai/models/modelcard.py,sha256=x5udkz16tOwvae3ltsYBo31vKkEIjDw9ac_xDnY0D4g,2455
|
|
181
|
+
mistralai/models/modellist.py,sha256=wdUWOzSQU2C0aL2fKoXez62ZFICdtHz_ViTGtT0gjjU,519
|
|
182
|
+
mistralai/models/responseformat.py,sha256=QwA36MujDZQ_5y3jEaxZk_xA-TGnLBdBLSFRj6T-3Ww,760
|
|
183
|
+
mistralai/models/retrieve_model_v1_models_model_id_getop.py,sha256=gFrg0yl-7x01nAB6FPH42eTp95vWk5pZpkuJEtETlhQ,529
|
|
184
|
+
mistralai/models/retrievefileout.py,sha256=RKIiH1omH6VEiqD1mfa9c3mwJZiwCmMrfSA0McOwzZo,2437
|
|
185
|
+
mistralai/models/sampletype.py,sha256=AHVeruPkMqLwaXTQVMiqrWxCv29ErNAOQenNxRaYFfc,182
|
|
186
|
+
mistralai/models/sdkerror.py,sha256=kd75e3JYF2TXNgRZopcV-oGdBWoBZqRcvrwqn2fsFYs,528
|
|
187
|
+
mistralai/models/security.py,sha256=bMhUZmEnIOI5eK0FzR5F1_TU_KtqwG1-f9xfxGpJCg8,518
|
|
188
|
+
mistralai/models/source.py,sha256=i__XC0fCs5hAyp3uHzGK-gY6jcC8lE431V8-YpzCNso,178
|
|
189
|
+
mistralai/models/systemmessage.py,sha256=Z10qPlBRMuQNpiMgnHM_7imoB6dRrdgzBVxyXPXLrrg,642
|
|
190
|
+
mistralai/models/textchunk.py,sha256=PTQeBlqG9w4PudvceZnN4oLyYfBfdiiz9cKciaq9PI8,450
|
|
191
|
+
mistralai/models/tool.py,sha256=fUhUhOmNyBZLqS-fAojzURQI1AGNGdOVKj8GRfMBCJk,521
|
|
192
|
+
mistralai/models/toolcall.py,sha256=PXvOVpo9uS0CWXpjg51rn14zDf9NVGQUqwV7DnednzA,618
|
|
193
|
+
mistralai/models/toolmessage.py,sha256=sTypDj3vFjA9GCrR37AUNVRnl3yojOnGYFTEqaCXlHk,1679
|
|
194
|
+
mistralai/models/trainingfile.py,sha256=fqH-7Z5Ynrd0JNY9MEG1mcjxgi82snM4dMVW23Y8KBg,408
|
|
195
|
+
mistralai/models/trainingparameters.py,sha256=vBijMDBR6zXQCpNmtQutG7_Li0MOV1-S7hkJ_NBZHFI,1759
|
|
196
|
+
mistralai/models/trainingparametersin.py,sha256=Oceg7jmwmSCw-w1s-Or0rrTCDZdpASnJItST8qYeiV0,2767
|
|
197
|
+
mistralai/models/unarchiveftmodelout.py,sha256=-bZbuevf3q8mzKrrU8eFb1axUBmXRimhnyvAMSSezLs,553
|
|
198
|
+
mistralai/models/updateftmodelin.py,sha256=jgDp8yce-glRuavyzraEiyM8kL4hotijTqro9-PxzAw,1503
|
|
199
|
+
mistralai/models/uploadfileout.py,sha256=Tdj5rjcun9tEh-ZCNmz2u2q3NnR4p841f8IhW4XIoqI,2433
|
|
200
|
+
mistralai/models/usageinfo.py,sha256=HaINgSEQgJzJuSc31qXfktjOPuwycLOXu0PyusbKsOw,397
|
|
201
|
+
mistralai/models/usermessage.py,sha256=7XXjdTVZEsQAjiQEz3N_v_mZR6qR1ccoa8ioHXWrpl4,696
|
|
202
|
+
mistralai/models/validationerror.py,sha256=1SexE7tabEHLhFJkZsakbyXRizVnXXt23Yd2GGtX1oM,436
|
|
203
|
+
mistralai/models/wandbintegration.py,sha256=PCiY5nsmgLg9o5n-iZhTVFbtUx69Y9qhDY3NfM_dHu0,2154
|
|
204
|
+
mistralai/models/wandbintegrationout.py,sha256=AUddq70HUTJVdWl90okbaDis4L2zjTpVIk4AlrItAaQ,2014
|
|
205
|
+
mistralai/models_.py,sha256=AeHpXtrAy84JureM_Lfzci6oMZN4krT3ThFJSqQXWXA,36480
|
|
206
|
+
mistralai/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
|
207
|
+
mistralai/sdk.py,sha256=3ThlAmKsx-IV7Wl-GQ1KXB-Xwh3U8T8s7moE_zCF6A8,4326
|
|
208
|
+
mistralai/sdkconfiguration.py,sha256=9WFYSj2vAOY4eQ1z1RdBvPNZ3Y-E7nSjOx5R76OoSbw,1666
|
|
209
|
+
mistralai/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
|
210
|
+
mistralai/types/basemodel.py,sha256=QoM3vxefEuZ0x2J-XERAakxs4sUcBCIjmP6-rs6ssmo,993
|
|
211
|
+
mistralai/utils/__init__.py,sha256=IbgjxIFuR637hA2Deveyz-3T2NnBFCmronIXPih3kKk,2072
|
|
212
|
+
mistralai/utils/annotations.py,sha256=475O8UTbQNQiawh8ZoJi_NDPKqhgW7vzy046ffMU8jI,655
|
|
213
|
+
mistralai/utils/enums.py,sha256=VzjeslROrAr2luZOTJlvu-4UlxgTaGOKlRYtJJ7IfyY,1006
|
|
214
|
+
mistralai/utils/eventstreaming.py,sha256=Wtk6mMiANDsb_pqfkb0W3CUyIGGz7oqHDWeBNeNMS_Y,4882
|
|
215
|
+
mistralai/utils/forms.py,sha256=JVg7suFdwOZ1T2oE_HD3kDs_BSbA3vegcNy52WdVl9I,6246
|
|
216
|
+
mistralai/utils/headers.py,sha256=-p4ps3CqUV9jhM3T_VWvWDaIi1z58fqttOJA5xEddSY,3627
|
|
217
|
+
mistralai/utils/metadata.py,sha256=Per2KFXXOqOtoUWXrlIfjrSrBg199KrRW0nKQDgHIBU,3136
|
|
218
|
+
mistralai/utils/queryparams.py,sha256=vlVjKtLvtgtojqFNsaTfewDCriBfMurYKpHSHnyrt8o,5856
|
|
219
|
+
mistralai/utils/requestbodies.py,sha256=PXmttCHm1zWGmwbrTyXYXxbeULavRWqxfD54Jx2CdJE,2084
|
|
220
|
+
mistralai/utils/retries.py,sha256=-HK2SaiAZBzQLA9L7iO0yzFcbLsk8qoCd9pa6x4yhig,6358
|
|
221
|
+
mistralai/utils/security.py,sha256=hDSGaqL9eQxBPcjYreGBGCuSCDVEbl8s6PEOJhu8s7k,5747
|
|
222
|
+
mistralai/utils/serializers.py,sha256=YRBVvAQ9Ywl2N2DanYlEKc2tKys2xcsiUY_lfG0lG10,4132
|
|
223
|
+
mistralai/utils/url.py,sha256=Bvu71MYt9NJFYOmPcWVylrdUf3QtytbjqllNkWTCRHE,5195
|
|
224
|
+
mistralai/utils/values.py,sha256=KauGimRv4_lfIfijquDLWd1v4HbqnQiG8Rn61Stdxbg,3294
|
|
225
|
+
mistralai-0.5.5a50.dist-info/LICENSE,sha256=rUtQ_9GD0OyLPlb-2uWVdfE87hzudMRmsW-tS-0DK-0,11340
|
|
226
|
+
mistralai-0.5.5a50.dist-info/METADATA,sha256=kEm1dSsdlbfrGlEvIfOiSgOCRD1jNSiGdUPqJxJrV2c,17768
|
|
227
|
+
mistralai-0.5.5a50.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
228
|
+
mistralai-0.5.5a50.dist-info/RECORD,,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# THIS FILE IS THE EXACT COPY OF THE ORIGINAL FILE FROM src/mistralai/_hooks/custom_user_agent.py
|
|
2
|
+
from typing import Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from .types import BeforeRequestContext, BeforeRequestHook
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class CustomUserAgentHook(BeforeRequestHook):
|
|
10
|
+
def before_request(
|
|
11
|
+
self, hook_ctx: BeforeRequestContext, request: httpx.Request
|
|
12
|
+
) -> Union[httpx.Request, Exception]:
|
|
13
|
+
request.headers["user-agent"] = (
|
|
14
|
+
"mistral-client-python/" + request.headers["user-agent"].split(" ")[1]
|
|
15
|
+
)
|
|
16
|
+
return request
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from .custom_user_agent import CustomUserAgentHook
|
|
2
|
+
from .types import Hooks
|
|
3
|
+
|
|
4
|
+
# This file is only ever generated once on the first generation and then is free to be modified.
|
|
5
|
+
# Any hooks you wish to add should be registered in the init_hooks function. Feel free to define them
|
|
6
|
+
# in this file or in separate files in the hooks folder.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def init_hooks(hooks: Hooks):
|
|
10
|
+
# pylint: disable=unused-argument
|
|
11
|
+
"""Add hooks by calling hooks.register{sdk_init/before_request/after_success/after_error}Hook
|
|
12
|
+
with an instance of a hook that implements that specific Hook interface
|
|
13
|
+
Hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance
|
|
14
|
+
"""
|
|
15
|
+
hooks.register_before_request_hook(CustomUserAgentHook())
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
import httpx
|
|
4
|
+
from .types import SDKInitHook, BeforeRequestContext, BeforeRequestHook, AfterSuccessContext, AfterSuccessHook, AfterErrorContext, AfterErrorHook, Hooks
|
|
5
|
+
from .registration import init_hooks
|
|
6
|
+
from typing import List, Optional, Tuple
|
|
7
|
+
from mistralai_azure.httpclient import HttpClient
|
|
8
|
+
|
|
9
|
+
class SDKHooks(Hooks):
|
|
10
|
+
def __init__(self) -> None:
|
|
11
|
+
self.sdk_init_hooks: List[SDKInitHook] = []
|
|
12
|
+
self.before_request_hooks: List[BeforeRequestHook] = []
|
|
13
|
+
self.after_success_hooks: List[AfterSuccessHook] = []
|
|
14
|
+
self.after_error_hooks: List[AfterErrorHook] = []
|
|
15
|
+
init_hooks(self)
|
|
16
|
+
|
|
17
|
+
def register_sdk_init_hook(self, hook: SDKInitHook) -> None:
|
|
18
|
+
self.sdk_init_hooks.append(hook)
|
|
19
|
+
|
|
20
|
+
def register_before_request_hook(self, hook: BeforeRequestHook) -> None:
|
|
21
|
+
self.before_request_hooks.append(hook)
|
|
22
|
+
|
|
23
|
+
def register_after_success_hook(self, hook: AfterSuccessHook) -> None:
|
|
24
|
+
self.after_success_hooks.append(hook)
|
|
25
|
+
|
|
26
|
+
def register_after_error_hook(self, hook: AfterErrorHook) -> None:
|
|
27
|
+
self.after_error_hooks.append(hook)
|
|
28
|
+
|
|
29
|
+
def sdk_init(self, base_url: str, client: HttpClient) -> Tuple[str, HttpClient]:
|
|
30
|
+
for hook in self.sdk_init_hooks:
|
|
31
|
+
base_url, client = hook.sdk_init(base_url, client)
|
|
32
|
+
return base_url, client
|
|
33
|
+
|
|
34
|
+
def before_request(self, hook_ctx: BeforeRequestContext, request: httpx.Request) -> httpx.Request:
|
|
35
|
+
for hook in self.before_request_hooks:
|
|
36
|
+
out = hook.before_request(hook_ctx, request)
|
|
37
|
+
if isinstance(out, Exception):
|
|
38
|
+
raise out
|
|
39
|
+
request = out
|
|
40
|
+
|
|
41
|
+
return request
|
|
42
|
+
|
|
43
|
+
def after_success(self, hook_ctx: AfterSuccessContext, response: httpx.Response) -> httpx.Response:
|
|
44
|
+
for hook in self.after_success_hooks:
|
|
45
|
+
out = hook.after_success(hook_ctx, response)
|
|
46
|
+
if isinstance(out, Exception):
|
|
47
|
+
raise out
|
|
48
|
+
response = out
|
|
49
|
+
return response
|
|
50
|
+
|
|
51
|
+
def after_error(self, hook_ctx: AfterErrorContext, response: Optional[httpx.Response], error: Optional[Exception]) -> Tuple[Optional[httpx.Response], Optional[Exception]]:
|
|
52
|
+
for hook in self.after_error_hooks:
|
|
53
|
+
result = hook.after_error(hook_ctx, response, error)
|
|
54
|
+
if isinstance(result, Exception):
|
|
55
|
+
raise result
|
|
56
|
+
response, error = result
|
|
57
|
+
return response, error
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
from abc import ABC, abstractmethod
|
|
5
|
+
import httpx
|
|
6
|
+
from mistralai_azure.httpclient import HttpClient
|
|
7
|
+
from typing import Any, Callable, List, Optional, Tuple, Union
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class HookContext:
|
|
11
|
+
operation_id: str
|
|
12
|
+
oauth2_scopes: Optional[List[str]] = None
|
|
13
|
+
security_source: Optional[Union[Any, Callable[[], Any]]] = None
|
|
14
|
+
|
|
15
|
+
def __init__(self, operation_id: str, oauth2_scopes: Optional[List[str]], security_source: Optional[Union[Any, Callable[[], Any]]]):
|
|
16
|
+
self.operation_id = operation_id
|
|
17
|
+
self.oauth2_scopes = oauth2_scopes
|
|
18
|
+
self.security_source = security_source
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class BeforeRequestContext(HookContext):
|
|
22
|
+
def __init__(self, hook_ctx: HookContext):
|
|
23
|
+
super().__init__(hook_ctx.operation_id, hook_ctx.oauth2_scopes, hook_ctx.security_source)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class AfterSuccessContext(HookContext):
|
|
27
|
+
def __init__(self, hook_ctx: HookContext):
|
|
28
|
+
super().__init__(hook_ctx.operation_id, hook_ctx.oauth2_scopes, hook_ctx.security_source)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class AfterErrorContext(HookContext):
|
|
33
|
+
def __init__(self, hook_ctx: HookContext):
|
|
34
|
+
super().__init__(hook_ctx.operation_id, hook_ctx.oauth2_scopes, hook_ctx.security_source)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class SDKInitHook(ABC):
|
|
38
|
+
@abstractmethod
|
|
39
|
+
def sdk_init(self, base_url: str, client: HttpClient) -> Tuple[str, HttpClient]:
|
|
40
|
+
pass
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class BeforeRequestHook(ABC):
|
|
44
|
+
@abstractmethod
|
|
45
|
+
def before_request(self, hook_ctx: BeforeRequestContext, request: httpx.Request) -> Union[httpx.Request, Exception]:
|
|
46
|
+
pass
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class AfterSuccessHook(ABC):
|
|
50
|
+
@abstractmethod
|
|
51
|
+
def after_success(self, hook_ctx: AfterSuccessContext, response: httpx.Response) -> Union[httpx.Response, Exception]:
|
|
52
|
+
pass
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class AfterErrorHook(ABC):
|
|
56
|
+
@abstractmethod
|
|
57
|
+
def after_error(self, hook_ctx: AfterErrorContext, response: Optional[httpx.Response], error: Optional[Exception]) -> Union[Tuple[Optional[httpx.Response], Optional[Exception]], Exception]:
|
|
58
|
+
pass
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
class Hooks(ABC):
|
|
62
|
+
@abstractmethod
|
|
63
|
+
def register_sdk_init_hook(self, hook: SDKInitHook):
|
|
64
|
+
pass
|
|
65
|
+
|
|
66
|
+
@abstractmethod
|
|
67
|
+
def register_before_request_hook(self, hook: BeforeRequestHook):
|
|
68
|
+
pass
|
|
69
|
+
|
|
70
|
+
@abstractmethod
|
|
71
|
+
def register_after_success_hook(self, hook: AfterSuccessHook):
|
|
72
|
+
pass
|
|
73
|
+
|
|
74
|
+
@abstractmethod
|
|
75
|
+
def register_after_error_hook(self, hook: AfterErrorHook):
|
|
76
|
+
pass
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from .sdkconfiguration import SDKConfiguration
|
|
4
|
+
import httpx
|
|
5
|
+
from mistralai_azure import models
|
|
6
|
+
from mistralai_azure._hooks import AfterErrorContext, AfterSuccessContext, BeforeRequestContext
|
|
7
|
+
import mistralai_azure.utils as utils
|
|
8
|
+
from mistralai_azure.utils import RetryConfig, SerializedRequestBody
|
|
9
|
+
from typing import Callable, List, Optional, Tuple
|
|
10
|
+
|
|
11
|
+
class BaseSDK:
|
|
12
|
+
sdk_configuration: SDKConfiguration
|
|
13
|
+
|
|
14
|
+
def __init__(self, sdk_config: SDKConfiguration) -> None:
|
|
15
|
+
self.sdk_configuration = sdk_config
|
|
16
|
+
|
|
17
|
+
def get_url(self, base_url, url_variables):
|
|
18
|
+
sdk_url, sdk_variables = self.sdk_configuration.get_server_details()
|
|
19
|
+
|
|
20
|
+
if base_url is None:
|
|
21
|
+
base_url = sdk_url
|
|
22
|
+
|
|
23
|
+
if url_variables is None:
|
|
24
|
+
url_variables = sdk_variables
|
|
25
|
+
|
|
26
|
+
return utils.template_url(base_url, url_variables)
|
|
27
|
+
|
|
28
|
+
def build_request(
|
|
29
|
+
self,
|
|
30
|
+
method,
|
|
31
|
+
path,
|
|
32
|
+
base_url,
|
|
33
|
+
url_variables,
|
|
34
|
+
request,
|
|
35
|
+
request_body_required,
|
|
36
|
+
request_has_path_params,
|
|
37
|
+
request_has_query_params,
|
|
38
|
+
user_agent_header,
|
|
39
|
+
accept_header_value,
|
|
40
|
+
_globals=None,
|
|
41
|
+
security=None,
|
|
42
|
+
timeout_ms: Optional[int] = None,
|
|
43
|
+
get_serialized_body: Optional[
|
|
44
|
+
Callable[[], Optional[SerializedRequestBody]]
|
|
45
|
+
] = None,
|
|
46
|
+
url_override: Optional[str] = None,
|
|
47
|
+
) -> httpx.Request:
|
|
48
|
+
client = self.sdk_configuration.client
|
|
49
|
+
|
|
50
|
+
query_params = {}
|
|
51
|
+
|
|
52
|
+
url = url_override
|
|
53
|
+
if url is None:
|
|
54
|
+
url = utils.generate_url(
|
|
55
|
+
self.get_url(base_url, url_variables),
|
|
56
|
+
path,
|
|
57
|
+
request if request_has_path_params else None,
|
|
58
|
+
_globals if request_has_path_params else None,
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
query_params = utils.get_query_params(
|
|
62
|
+
request if request_has_query_params else None,
|
|
63
|
+
_globals if request_has_query_params else None,
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
headers = utils.get_headers(request, _globals)
|
|
67
|
+
headers["Accept"] = accept_header_value
|
|
68
|
+
headers[user_agent_header] = self.sdk_configuration.user_agent
|
|
69
|
+
|
|
70
|
+
if security is not None:
|
|
71
|
+
if callable(security):
|
|
72
|
+
security = security()
|
|
73
|
+
|
|
74
|
+
if security is not None:
|
|
75
|
+
security_headers, security_query_params = utils.get_security(security)
|
|
76
|
+
headers = {**headers, **security_headers}
|
|
77
|
+
query_params = {**query_params, **security_query_params}
|
|
78
|
+
|
|
79
|
+
serialized_request_body = SerializedRequestBody("application/octet-stream")
|
|
80
|
+
if get_serialized_body is not None:
|
|
81
|
+
rb = get_serialized_body()
|
|
82
|
+
if request_body_required and rb is None:
|
|
83
|
+
raise ValueError("request body is required")
|
|
84
|
+
|
|
85
|
+
if rb is not None:
|
|
86
|
+
serialized_request_body = rb
|
|
87
|
+
|
|
88
|
+
if (
|
|
89
|
+
serialized_request_body.media_type is not None
|
|
90
|
+
and serialized_request_body.media_type
|
|
91
|
+
not in (
|
|
92
|
+
"multipart/form-data",
|
|
93
|
+
"multipart/mixed",
|
|
94
|
+
)
|
|
95
|
+
):
|
|
96
|
+
headers["content-type"] = serialized_request_body.media_type
|
|
97
|
+
|
|
98
|
+
timeout = timeout_ms / 1000 if timeout_ms is not None else None
|
|
99
|
+
|
|
100
|
+
return client.build_request(
|
|
101
|
+
method,
|
|
102
|
+
url,
|
|
103
|
+
params=query_params,
|
|
104
|
+
content=serialized_request_body.content,
|
|
105
|
+
data=serialized_request_body.data,
|
|
106
|
+
files=serialized_request_body.files,
|
|
107
|
+
headers=headers,
|
|
108
|
+
timeout=timeout,
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
def do_request(
|
|
112
|
+
self,
|
|
113
|
+
hook_ctx,
|
|
114
|
+
request,
|
|
115
|
+
error_status_codes,
|
|
116
|
+
stream=False,
|
|
117
|
+
retry_config: Optional[Tuple[RetryConfig, List[str]]] = None,
|
|
118
|
+
) -> httpx.Response:
|
|
119
|
+
client = self.sdk_configuration.client
|
|
120
|
+
|
|
121
|
+
def do():
|
|
122
|
+
http_res = None
|
|
123
|
+
try:
|
|
124
|
+
req = self.sdk_configuration.get_hooks().before_request(
|
|
125
|
+
BeforeRequestContext(hook_ctx), request
|
|
126
|
+
)
|
|
127
|
+
http_res = client.send(req, stream=stream)
|
|
128
|
+
except Exception as e:
|
|
129
|
+
_, e = self.sdk_configuration.get_hooks().after_error(
|
|
130
|
+
AfterErrorContext(hook_ctx), None, e
|
|
131
|
+
)
|
|
132
|
+
if e is not None:
|
|
133
|
+
raise e
|
|
134
|
+
|
|
135
|
+
if http_res is None:
|
|
136
|
+
raise models.SDKError("No response received")
|
|
137
|
+
|
|
138
|
+
if utils.match_status_codes(error_status_codes, http_res.status_code):
|
|
139
|
+
result, err = self.sdk_configuration.get_hooks().after_error(
|
|
140
|
+
AfterErrorContext(hook_ctx), http_res, None
|
|
141
|
+
)
|
|
142
|
+
if err is not None:
|
|
143
|
+
raise err
|
|
144
|
+
if result is not None:
|
|
145
|
+
http_res = result
|
|
146
|
+
else:
|
|
147
|
+
raise models.SDKError("Unexpected error occurred")
|
|
148
|
+
|
|
149
|
+
return http_res
|
|
150
|
+
|
|
151
|
+
if retry_config is not None:
|
|
152
|
+
http_res = utils.retry(do, utils.Retries(retry_config[0], retry_config[1]))
|
|
153
|
+
else:
|
|
154
|
+
http_res = do()
|
|
155
|
+
|
|
156
|
+
if not utils.match_status_codes(error_status_codes, http_res.status_code):
|
|
157
|
+
http_res = self.sdk_configuration.get_hooks().after_success(
|
|
158
|
+
AfterSuccessContext(hook_ctx), http_res
|
|
159
|
+
)
|
|
160
|
+
|
|
161
|
+
return http_res
|
|
162
|
+
|
|
163
|
+
async def do_request_async(
|
|
164
|
+
self,
|
|
165
|
+
hook_ctx,
|
|
166
|
+
request,
|
|
167
|
+
error_status_codes,
|
|
168
|
+
stream=False,
|
|
169
|
+
retry_config: Optional[Tuple[RetryConfig, List[str]]] = None,
|
|
170
|
+
) -> httpx.Response:
|
|
171
|
+
client = self.sdk_configuration.async_client
|
|
172
|
+
|
|
173
|
+
async def do():
|
|
174
|
+
http_res = None
|
|
175
|
+
try:
|
|
176
|
+
req = self.sdk_configuration.get_hooks().before_request(
|
|
177
|
+
BeforeRequestContext(hook_ctx), request
|
|
178
|
+
)
|
|
179
|
+
http_res = await client.send(req, stream=stream)
|
|
180
|
+
except Exception as e:
|
|
181
|
+
_, e = self.sdk_configuration.get_hooks().after_error(
|
|
182
|
+
AfterErrorContext(hook_ctx), None, e
|
|
183
|
+
)
|
|
184
|
+
if e is not None:
|
|
185
|
+
raise e
|
|
186
|
+
|
|
187
|
+
if http_res is None:
|
|
188
|
+
raise models.SDKError("No response received")
|
|
189
|
+
|
|
190
|
+
if utils.match_status_codes(error_status_codes, http_res.status_code):
|
|
191
|
+
result, err = self.sdk_configuration.get_hooks().after_error(
|
|
192
|
+
AfterErrorContext(hook_ctx), http_res, None
|
|
193
|
+
)
|
|
194
|
+
if err is not None:
|
|
195
|
+
raise err
|
|
196
|
+
if result is not None:
|
|
197
|
+
http_res = result
|
|
198
|
+
else:
|
|
199
|
+
raise models.SDKError("Unexpected error occurred")
|
|
200
|
+
|
|
201
|
+
return http_res
|
|
202
|
+
|
|
203
|
+
if retry_config is not None:
|
|
204
|
+
http_res = await utils.retry_async(
|
|
205
|
+
do, utils.Retries(retry_config[0], retry_config[1])
|
|
206
|
+
)
|
|
207
|
+
else:
|
|
208
|
+
http_res = await do()
|
|
209
|
+
|
|
210
|
+
if not utils.match_status_codes(error_status_codes, http_res.status_code):
|
|
211
|
+
http_res = self.sdk_configuration.get_hooks().after_success(
|
|
212
|
+
AfterSuccessContext(hook_ctx), http_res
|
|
213
|
+
)
|
|
214
|
+
|
|
215
|
+
return http_res
|