mistralai 1.0.1__py3-none-any.whl → 1.0.3__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/agents.py +31 -31
- mistralai/chat.py +4 -4
- mistralai/jobs.py +8 -8
- mistralai/models/__init__.py +20 -20
- mistralai/models/agentscompletionstreamrequest.py +33 -31
- mistralai/models/archiveftmodelout.py +4 -2
- mistralai/models/chatcompletionchoice.py +3 -4
- mistralai/models/chatcompletionrequest.py +2 -2
- mistralai/models/chatcompletionstreamrequest.py +2 -2
- mistralai/models/deltamessage.py +3 -3
- mistralai/models/detailedjobout.py +19 -5
- mistralai/models/files_api_routes_upload_fileop.py +7 -4
- mistralai/models/fileschema.py +8 -3
- mistralai/models/ftmodelout.py +4 -2
- mistralai/models/githubrepositoryin.py +4 -2
- mistralai/models/githubrepositoryout.py +4 -2
- mistralai/models/jobin.py +16 -4
- mistralai/models/jobout.py +20 -5
- mistralai/models/jobsout.py +4 -2
- mistralai/models/legacyjobmetadataout.py +4 -2
- mistralai/models/retrievefileout.py +8 -3
- mistralai/models/tool.py +9 -5
- mistralai/models/toolcall.py +8 -4
- mistralai/models/trainingparameters.py +6 -2
- mistralai/models/trainingparametersin.py +10 -2
- mistralai/models/unarchiveftmodelout.py +4 -2
- mistralai/models/uploadfileout.py +8 -3
- mistralai/models/wandbintegration.py +4 -2
- mistralai/models/wandbintegrationout.py +4 -2
- mistralai/sdk.py +2 -2
- mistralai/sdkconfiguration.py +3 -3
- mistralai/utils/__init__.py +2 -2
- mistralai/utils/forms.py +10 -9
- mistralai/utils/headers.py +8 -8
- mistralai/utils/logger.py +8 -0
- mistralai/utils/queryparams.py +16 -14
- mistralai/utils/serializers.py +17 -8
- mistralai/utils/url.py +13 -8
- mistralai/utils/values.py +6 -0
- mistralai/version.py +7 -0
- {mistralai-1.0.1.dist-info → mistralai-1.0.3.dist-info}/METADATA +6 -3
- {mistralai-1.0.1.dist-info → mistralai-1.0.3.dist-info}/RECORD +60 -59
- mistralai_azure/models/__init__.py +3 -3
- mistralai_azure/models/chatcompletionchoice.py +3 -4
- mistralai_azure/models/deltamessage.py +3 -3
- mistralai_azure/models/tool.py +9 -5
- mistralai_azure/models/toolcall.py +8 -4
- mistralai_azure/sdkconfiguration.py +3 -3
- mistralai_gcp/chat.py +4 -4
- mistralai_gcp/models/__init__.py +3 -3
- mistralai_gcp/models/chatcompletionchoice.py +3 -4
- mistralai_gcp/models/chatcompletionrequest.py +2 -2
- mistralai_gcp/models/chatcompletionstreamrequest.py +2 -2
- mistralai_gcp/models/deltamessage.py +3 -3
- mistralai_gcp/models/tool.py +9 -5
- mistralai_gcp/models/toolcall.py +8 -4
- mistralai_gcp/sdk.py +17 -12
- mistralai_gcp/sdkconfiguration.py +3 -3
- {mistralai-1.0.1.dist-info → mistralai-1.0.3.dist-info}/LICENSE +0 -0
- {mistralai-1.0.1.dist-info → mistralai-1.0.3.dist-info}/WHEEL +0 -0
|
@@ -7,9 +7,9 @@ mistralai_azure/_hooks/types.py,sha256=mJZS5ItPpWpgWwcNOx4oLQwLelqxEw_zP5yw10FeQ
|
|
|
7
7
|
mistralai_azure/basesdk.py,sha256=GSAnDHO8lUXfqmDHhcEcbLgBGauVUqzcQcuPsSXzFFE,9043
|
|
8
8
|
mistralai_azure/chat.py,sha256=kmLoTzYaaa1iaILhjz3WZmY0jgyBR68NW_YP9c-4Zdw,25897
|
|
9
9
|
mistralai_azure/httpclient.py,sha256=S_ItzEchFX-znIdHD6i5-a91H0Dn5QxpT0KhucdHBbI,2595
|
|
10
|
-
mistralai_azure/models/__init__.py,sha256=
|
|
10
|
+
mistralai_azure/models/__init__.py,sha256=0Lsjv_5jgWT2bSC-3HxkUjFMKx8yXihH_CLqXsKDRSI,3832
|
|
11
11
|
mistralai_azure/models/assistantmessage.py,sha256=IC1-M2Xx8G7dRM7JbJnf4icadOiSJq3-lmJufpfXdcY,2186
|
|
12
|
-
mistralai_azure/models/chatcompletionchoice.py,sha256=
|
|
12
|
+
mistralai_azure/models/chatcompletionchoice.py,sha256=P7-UcLPurgRZ0kN539DuSyaUNoVCQN5wbumR0I9hJ94,668
|
|
13
13
|
mistralai_azure/models/chatcompletionrequest.py,sha256=G89trrb43afkuuhPqucxYyzPCBIkHZjcSQkueUvleMQ,7016
|
|
14
14
|
mistralai_azure/models/chatcompletionresponse.py,sha256=x4C878hm7VmzR7AY7cHqXCOdmAvH34E82E3OuxujT6k,802
|
|
15
15
|
mistralai_azure/models/chatcompletionstreamrequest.py,sha256=jA7Yvp7ssXo866awFWcD2QAw5NbXuVYdTGb3oPBjqSs,6128
|
|
@@ -17,7 +17,7 @@ mistralai_azure/models/completionchunk.py,sha256=vE4iSLdX2DpDqYCSJctRgIKdau_inSJ
|
|
|
17
17
|
mistralai_azure/models/completionevent.py,sha256=LKbNJfEXbtl-e68h8H0YC3dtLbBWV_6rsOCTMbQHkYg,403
|
|
18
18
|
mistralai_azure/models/completionresponsestreamchoice.py,sha256=qLiyoqhRRc2V91SG5DQqzDc_UCrGrbv88VXWuavUP_o,1498
|
|
19
19
|
mistralai_azure/models/contentchunk.py,sha256=vFt7cRYpGkzxsiSpj1MY3letwp2w8GLLu8Q8dNfewMQ,462
|
|
20
|
-
mistralai_azure/models/deltamessage.py,sha256=
|
|
20
|
+
mistralai_azure/models/deltamessage.py,sha256=1eIPdqxJIt9QsMfbvB151uySBeljzmiadhfwqtoy8dk,1588
|
|
21
21
|
mistralai_azure/models/function.py,sha256=RclkdSPCi-Vl5TRlYatxnxsjUzMRLDRxnE5Vzs_KEGs,480
|
|
22
22
|
mistralai_azure/models/functioncall.py,sha256=ZUUTVpgavjkDq4Zm1zTpJy5I-LzW0ELyKiNjAMHR9-o,461
|
|
23
23
|
mistralai_azure/models/httpvalidationerror.py,sha256=RLgOLt2Jk3dMdvLoEdRD7w-cAPZznS7J-QXgFAvV2ns,649
|
|
@@ -26,15 +26,15 @@ mistralai_azure/models/sdkerror.py,sha256=kd75e3JYF2TXNgRZopcV-oGdBWoBZqRcvrwqn2
|
|
|
26
26
|
mistralai_azure/models/security.py,sha256=hq1l5hcumpksUyXKzxhKKFCUq5nxfAG8X-6fTLDUGrA,530
|
|
27
27
|
mistralai_azure/models/systemmessage.py,sha256=3OdHJj0bD-bfRLIIJtUb0fCkAZ2YChDm17LTrWWx8JE,648
|
|
28
28
|
mistralai_azure/models/textchunk.py,sha256=RQ6S1m-jy1jYfwyZ1ClfvdLNrdgf8gf145HfinlCgGI,456
|
|
29
|
-
mistralai_azure/models/tool.py,sha256=
|
|
30
|
-
mistralai_azure/models/toolcall.py,sha256=
|
|
29
|
+
mistralai_azure/models/tool.py,sha256=NCIN0C5Ogh8Oo7V3YYpBz3YHGL61Nmjzu3BRy2GBLHs,760
|
|
30
|
+
mistralai_azure/models/toolcall.py,sha256=AxnDwkPc8yUMEvZrxT_WLEYY8p4uHjydsz9bUz7AUI0,832
|
|
31
31
|
mistralai_azure/models/toolmessage.py,sha256=HUv8QRiiVYBE_oGOkkX8po22QFve0HrzkHxvbQXHY8o,1599
|
|
32
32
|
mistralai_azure/models/usageinfo.py,sha256=CZyJp70P0L1c6joHOk939ASLfTTYw8UOloaRax2NcKs,403
|
|
33
33
|
mistralai_azure/models/usermessage.py,sha256=UY8Wju52_4NuLANzkvaK7Z1GykYYwAidRGLAx2kd0eA,702
|
|
34
34
|
mistralai_azure/models/validationerror.py,sha256=HFNnkyfSo5P1adxVF6Jmh1kGSxAnu3PRZNiBMuQb20M,442
|
|
35
35
|
mistralai_azure/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
|
36
36
|
mistralai_azure/sdk.py,sha256=ZVPE9lFzswEMlHw_kiG_j5vzoJ5BwEYlVLCYGmYDjpA,3936
|
|
37
|
-
mistralai_azure/sdkconfiguration.py,sha256=
|
|
37
|
+
mistralai_azure/sdkconfiguration.py,sha256=9QdFclpx8-f6qq0MaDCwn_tqbxjviKBPf4pNVWKm9Pw,1711
|
|
38
38
|
mistralai_azure/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
|
39
39
|
mistralai_azure/types/basemodel.py,sha256=PexI39iKiOkIlobB8Ueo0yn8PLHp6_wb-WO-zelNDZY,1170
|
|
40
40
|
mistralai_azure/utils/__init__.py,sha256=O_jurPNtDogMYZx1-k5L5Qm1zinMhqb2tXg79nLvKAw,2132
|
|
@@ -59,20 +59,20 @@ mistralai_gcp/_hooks/registration.py,sha256=5BN-U92pwP5kUaN7EOso2vWrwZlLvRcU5Coc
|
|
|
59
59
|
mistralai_gcp/_hooks/sdkhooks.py,sha256=ep2bHxkj-EOe79ZpDji0CRtat1f1Rpra6DUUv9AOz38,2458
|
|
60
60
|
mistralai_gcp/_hooks/types.py,sha256=dZ0vmT5UJE4A_nNOTJFT4I8u3MYJl1cuE8gSeETJhOk,2408
|
|
61
61
|
mistralai_gcp/basesdk.py,sha256=LpFulSdv3xVC3VaZW7G03W2cFV6QEXVQfWEimwLNvc0,9037
|
|
62
|
-
mistralai_gcp/chat.py,sha256=
|
|
62
|
+
mistralai_gcp/chat.py,sha256=G9OlwW1IzScczNFWSgoRLC2mQUcRhharGDYNmRuRCLA,25813
|
|
63
63
|
mistralai_gcp/fim.py,sha256=ASHlsFp4LsKmzxfW4Dx6RWZo8nlla4BLMbwjVy1K5ss,23609
|
|
64
64
|
mistralai_gcp/httpclient.py,sha256=S_ItzEchFX-znIdHD6i5-a91H0Dn5QxpT0KhucdHBbI,2595
|
|
65
|
-
mistralai_gcp/models/__init__.py,sha256=
|
|
65
|
+
mistralai_gcp/models/__init__.py,sha256=_CvvHmznZcHsbxzVrxcOj3Wh9EQj43Jc5W4O3eAF2Jk,4572
|
|
66
66
|
mistralai_gcp/models/assistantmessage.py,sha256=DIntIcFq_cw7zvRgdv1ff9ZW_pT10eOheOD7YBix80E,2184
|
|
67
|
-
mistralai_gcp/models/chatcompletionchoice.py,sha256=
|
|
68
|
-
mistralai_gcp/models/chatcompletionrequest.py,sha256=
|
|
67
|
+
mistralai_gcp/models/chatcompletionchoice.py,sha256=vXjVoPEQ_O83osXpprT7bwrdfOck1RX3ZcKqbhp3Has,666
|
|
68
|
+
mistralai_gcp/models/chatcompletionrequest.py,sha256=GU6RoHe-P0DrGVfv5SH8FcvYCq_EuVW4uBUYZ2sVU9U,7088
|
|
69
69
|
mistralai_gcp/models/chatcompletionresponse.py,sha256=lljI1r6VwGsPvCI0zR85UtACyRY9PwQT0TznLXNgSP8,800
|
|
70
|
-
mistralai_gcp/models/chatcompletionstreamrequest.py,sha256=
|
|
70
|
+
mistralai_gcp/models/chatcompletionstreamrequest.py,sha256=ME0styuDaQQYlXHssviO6fmKF-sD_DkgzVmOEJYcOwQ,6200
|
|
71
71
|
mistralai_gcp/models/completionchunk.py,sha256=6l_sWiZR20mf2hAYD410xk2PnTkNM2uI_eGoxEY4QKQ,866
|
|
72
72
|
mistralai_gcp/models/completionevent.py,sha256=lfH9lU5AZSUFdJhYtZIfsxD93SuyBRiqvoygTmQ-8eU,401
|
|
73
73
|
mistralai_gcp/models/completionresponsestreamchoice.py,sha256=NAcFvBMP2GIzZjL5A29e8XbW8ioDbt7Xig-stmXg4Rk,1496
|
|
74
74
|
mistralai_gcp/models/contentchunk.py,sha256=ZnGbO7Bh8-FVKw4I-MLFBcs-xEUtLIj7a03Y0zoBTr8,460
|
|
75
|
-
mistralai_gcp/models/deltamessage.py,sha256=
|
|
75
|
+
mistralai_gcp/models/deltamessage.py,sha256=mefBr5_7G1nFbwzFzCl-UwUss3b4aQvDO_CNmtL42KY,1586
|
|
76
76
|
mistralai_gcp/models/fimcompletionrequest.py,sha256=4DAHyryQLduo-sraVitm9oUNpM-pLMKmYH9fM_qzQvU,5902
|
|
77
77
|
mistralai_gcp/models/fimcompletionresponse.py,sha256=UH6etES-gDOFQog9_VZ78HSCDVIOnpS2yagRR-tWzw0,798
|
|
78
78
|
mistralai_gcp/models/fimcompletionstreamrequest.py,sha256=dsArBrPSOqHoIPXoos-k8FGIBnrFGvcLhgMnTj-z1DM,5269
|
|
@@ -84,15 +84,15 @@ mistralai_gcp/models/sdkerror.py,sha256=kd75e3JYF2TXNgRZopcV-oGdBWoBZqRcvrwqn2fs
|
|
|
84
84
|
mistralai_gcp/models/security.py,sha256=nkq31t3ybeZdQmyM3mKke4kk2n5V68Lfn3MQZtwwtWc,526
|
|
85
85
|
mistralai_gcp/models/systemmessage.py,sha256=fZqB6zV9qujw6AcoCarKn_wLLJ5NJ8DDpKWAMA5fW4o,646
|
|
86
86
|
mistralai_gcp/models/textchunk.py,sha256=by-at5dVgV_yjo85T9lOT1p8NbcRT6Uc9RJ9_YCiBK4,454
|
|
87
|
-
mistralai_gcp/models/tool.py,sha256=
|
|
88
|
-
mistralai_gcp/models/toolcall.py,sha256=
|
|
87
|
+
mistralai_gcp/models/tool.py,sha256=CqsvK4lB-EDe4mQRmbwhv87mqLLGWmxCldx-_R9TppI,756
|
|
88
|
+
mistralai_gcp/models/toolcall.py,sha256=lv4qLnfDTkfB3Gl0ZBhNwxMLhpu5_UyuLnkWv4isIcc,828
|
|
89
89
|
mistralai_gcp/models/toolmessage.py,sha256=Eew07JE_HWiLIXinAQKRyMb8nKhAyW9wE7LShN791Qw,1597
|
|
90
90
|
mistralai_gcp/models/usageinfo.py,sha256=kTFYFhieGnuNlqrOHUDW2fURMYHTqf9W641BM1JwNro,401
|
|
91
91
|
mistralai_gcp/models/usermessage.py,sha256=tPRjmmTW78AYQq9R_aCGUcGpUtADT5m0C2Yvsn0sLEw,700
|
|
92
92
|
mistralai_gcp/models/validationerror.py,sha256=a4pmlDNdXFw9zMiP0JVAYUWQKcbGBcQgWB2IjK-ODG4,440
|
|
93
93
|
mistralai_gcp/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
|
94
|
-
mistralai_gcp/sdk.py,sha256=
|
|
95
|
-
mistralai_gcp/sdkconfiguration.py,sha256=
|
|
94
|
+
mistralai_gcp/sdk.py,sha256=RNrWOcxtaBoZZUvSwUmkjd5mVVtnM18j2v7QzLPePW8,6540
|
|
95
|
+
mistralai_gcp/sdkconfiguration.py,sha256=LfztRmnUXLidnh2H3Gx2mIoHFbAbndHtP6FSLwYY-8A,1705
|
|
96
96
|
mistralai_gcp/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
|
97
97
|
mistralai_gcp/types/basemodel.py,sha256=PexI39iKiOkIlobB8Ueo0yn8PLHp6_wb-WO-zelNDZY,1170
|
|
98
98
|
mistralai_gcp/utils/__init__.py,sha256=O_jurPNtDogMYZx1-k5L5Qm1zinMhqb2tXg79nLvKAw,2132
|
|
@@ -118,26 +118,26 @@ mistralai/_hooks/deprecation_warning.py,sha256=eyEOf7-o9uqqNWJnufD2RXp3dYrGV4in9
|
|
|
118
118
|
mistralai/_hooks/registration.py,sha256=ML0W-XbE4WYdJ4eGks_XxF2aLCJTaIWjQATFGzFwvyU,861
|
|
119
119
|
mistralai/_hooks/sdkhooks.py,sha256=WCbPewN31708amCF7rTVqmQcpnxQpuG2Xdb38qXCq6A,2454
|
|
120
120
|
mistralai/_hooks/types.py,sha256=eDaXqYBqW_D_3Tn424cNCE1frBeh139JLso0hYrQka8,2404
|
|
121
|
-
mistralai/agents.py,sha256=
|
|
121
|
+
mistralai/agents.py,sha256=V4wItSOV9oAeq3C_S37YFSirLoaa09I0laEROw0IxOw,22965
|
|
122
122
|
mistralai/async_client.py,sha256=KUdYxIIqoD6L7vB0EGwUR6lQ0NK5iCTHjnLVR9CVcJY,355
|
|
123
123
|
mistralai/basesdk.py,sha256=3B65XR2C6WqgC8cewEZbMQ8t0ZilkRZeS7fl1jWtlTs,9090
|
|
124
|
-
mistralai/chat.py,sha256=
|
|
124
|
+
mistralai/chat.py,sha256=viWa61aCmjG-90MGB1r5Z5_4wtcMOV7foZRk1yk2_mc,26770
|
|
125
125
|
mistralai/client.py,sha256=hrPg-LciKMKiascF0WbRRmqQyCv1lb2yDh6j-aaKVNo,509
|
|
126
126
|
mistralai/embeddings.py,sha256=g96-XaDcbQ8k0FrPyiEFcRisqT0y7mzmF1QGsqtOM-0,7357
|
|
127
127
|
mistralai/files.py,sha256=VxhZulNK47p0OsWfovdeJGb_fn9CGNU-fM6WuRScDlM,24255
|
|
128
128
|
mistralai/fim.py,sha256=qJyEH8mk1pKard_1W_L2PPqWGsc-b_2LKUL5TNx1IvA,23794
|
|
129
129
|
mistralai/fine_tuning.py,sha256=gjgC4_IeY1lxT-_NZkmmO8QlsWOxCBxtknL9EeTAXts,484
|
|
130
130
|
mistralai/httpclient.py,sha256=S_ItzEchFX-znIdHD6i5-a91H0Dn5QxpT0KhucdHBbI,2595
|
|
131
|
-
mistralai/jobs.py,sha256=
|
|
132
|
-
mistralai/models/__init__.py,sha256=
|
|
131
|
+
mistralai/jobs.py,sha256=YL7-CNWf_J5t5PghWd8JDWYYLnFVvLuQLBxu8Marxrc,37319
|
|
132
|
+
mistralai/models/__init__.py,sha256=QrkQNkQjbo2Y46Dj2KPSWJjMQeEnUZu82YzGJ32ekHY,14617
|
|
133
133
|
mistralai/models/agentscompletionrequest.py,sha256=MuciJfMXAzKdRZV4FU91pvFnECDRJdJWQI9n0-nX80E,5403
|
|
134
|
-
mistralai/models/agentscompletionstreamrequest.py,sha256=
|
|
135
|
-
mistralai/models/archiveftmodelout.py,sha256=
|
|
134
|
+
mistralai/models/agentscompletionstreamrequest.py,sha256=l75zSDB7bBn3RBOz75XeZ0Mbvpeg1Jwx39sF7itKbp0,4812
|
|
135
|
+
mistralai/models/archiveftmodelout.py,sha256=zlRFK0BTdFkf1z1ubhKRW8C4naILRJWhZsN8vc2MWDA,621
|
|
136
136
|
mistralai/models/assistantmessage.py,sha256=2gpV5zzh8HnDPOJA_JwA2Ggq-cQLFJP9v3k8AJrq_CE,2180
|
|
137
|
-
mistralai/models/chatcompletionchoice.py,sha256=
|
|
138
|
-
mistralai/models/chatcompletionrequest.py,sha256=
|
|
137
|
+
mistralai/models/chatcompletionchoice.py,sha256=STFTDCHEB4ie1-LCeeowZYUVvKzXdpZ6SdVn5x0cmnM,602
|
|
138
|
+
mistralai/models/chatcompletionrequest.py,sha256=MKJEn60hcfd1ZahtgW4ggR3g2i-pYu_JdPyw1ARgpHU,7081
|
|
139
139
|
mistralai/models/chatcompletionresponse.py,sha256=qRgYtu_lGzn-0D2Q3lWHX3Y0qCZs-3S9m5XRvOE8bfg,796
|
|
140
|
-
mistralai/models/chatcompletionstreamrequest.py,sha256=
|
|
140
|
+
mistralai/models/chatcompletionstreamrequest.py,sha256=gBo7BlJ1CVNd6SJAkpIDfdnT3rPtxss9cs_9_7oJiF4,6721
|
|
141
141
|
mistralai/models/checkpointout.py,sha256=gWrM4kwQ4ttyxFPbWHeGyG4bfiFRs17JTJluBPKdnRc,1105
|
|
142
142
|
mistralai/models/completionchunk.py,sha256=js9omyCN6anHGecrEpJTfZwEzFstmbhjOdgIgPDSmJQ,862
|
|
143
143
|
mistralai/models/completionevent.py,sha256=GSDcIK9lrME3bvo8fSCSIDhlx5V1xqUPGsrBoB_eDf8,397
|
|
@@ -146,30 +146,30 @@ mistralai/models/contentchunk.py,sha256=VHVp8t2Wcc1kuN3bBs-xMZIR6WCpGgDFNc_6KKU3
|
|
|
146
146
|
mistralai/models/delete_model_v1_models_model_id_deleteop.py,sha256=W7_mpqAbgSVeWjPlEfbYoRrxjkkR-43cqU2mrCtpMhE,615
|
|
147
147
|
mistralai/models/deletefileout.py,sha256=OnzP03JES5Gyguh9S9di5VevDdDTbdTY1L0gTv9RdMQ,583
|
|
148
148
|
mistralai/models/deletemodelout.py,sha256=9aRBZFP_IOX_v0gTP00qkrZjuMveZWnRKFp80Wx3bHk,700
|
|
149
|
-
mistralai/models/deltamessage.py,sha256=
|
|
150
|
-
mistralai/models/detailedjobout.py,sha256=
|
|
149
|
+
mistralai/models/deltamessage.py,sha256=cWDE5XmLV65nsPF0MGMfVamzJp57SEstfwuj-OkmMj4,1582
|
|
150
|
+
mistralai/models/detailedjobout.py,sha256=wswOiEaF2kz_eUpWAhjXludcYGIsRjsk_7RT6acL7Yc,4398
|
|
151
151
|
mistralai/models/embeddingrequest.py,sha256=LjQf-nsGkkwdPU3X9nKsGqSQSQSLHZ3WeNQhMnhgBoY,1844
|
|
152
152
|
mistralai/models/embeddingresponse.py,sha256=3ny1ziseq-pYFkPV1IzsrEFH-tIojDYbs6oh99MjFi4,639
|
|
153
153
|
mistralai/models/embeddingresponsedata.py,sha256=M7cCJNf6jOXW4doA4ArMz9BI-ygmoiFdT7ttGx8mwNk,541
|
|
154
154
|
mistralai/models/eventout.py,sha256=Vrvc4ga_BE9KA93JpUaPxDuaJ3CNeW8716kWXXdilGI,1565
|
|
155
155
|
mistralai/models/files_api_routes_delete_fileop.py,sha256=eNXQdg248zA06BGiVEyq_8roxen71jM0pNQlwxjBswc,513
|
|
156
156
|
mistralai/models/files_api_routes_retrieve_fileop.py,sha256=rXDIMC-zRHkZb86cn9pfTEpdwAjpvuFhUeYNFRBidcU,517
|
|
157
|
-
mistralai/models/files_api_routes_upload_fileop.py,sha256=
|
|
158
|
-
mistralai/models/fileschema.py,sha256=
|
|
157
|
+
mistralai/models/files_api_routes_upload_fileop.py,sha256=ioTqdXAauvhO1ntQoQt59k_IF5Td4-InHleH89t5XeY,2270
|
|
158
|
+
mistralai/models/fileschema.py,sha256=aThJTdqXWu3K11wsrPXOpeBQJlVVHcWtocen0Q4porY,2711
|
|
159
159
|
mistralai/models/fimcompletionrequest.py,sha256=LfqU2sn7b4GZSz-HWV7xGF7Ju_rw41fwdUqZeY8cCJo,5898
|
|
160
160
|
mistralai/models/fimcompletionresponse.py,sha256=WniZPWtPKptxmboqThX84-SL4wfTpxT0UQJbjGWSi8Q,794
|
|
161
161
|
mistralai/models/fimcompletionstreamrequest.py,sha256=Euk_jwpsAfd5rfBW4iiY2h1Up354Zu3zfPJnw8e7mYM,5265
|
|
162
162
|
mistralai/models/finetuneablemodel.py,sha256=EN9zh1KqgSrhVcJ0dcSMh3mBUHVdLojvMCrophjjTaM,316
|
|
163
163
|
mistralai/models/ftmodelcapabilitiesout.py,sha256=d6fgSickqwb5_fre7hRdqWmfTJ6nZdNMpGzIjkkamkU,654
|
|
164
|
-
mistralai/models/ftmodelout.py,sha256=
|
|
164
|
+
mistralai/models/ftmodelout.py,sha256=kPqYEYmapBrRuiwU1IpYYwgIRn0d9HPrRM3AOt0Tysc,2192
|
|
165
165
|
mistralai/models/function.py,sha256=RRA1DgD3HG00gR8Moe-POFAH9ccu3wqqy31_1voQ4JU,474
|
|
166
166
|
mistralai/models/functioncall.py,sha256=Hu5rfS2sfkvvYPn-WeQ4dIlr62epjPK71rr2vzQ6G1c,455
|
|
167
|
-
mistralai/models/githubrepositoryin.py,sha256=
|
|
168
|
-
mistralai/models/githubrepositoryout.py,sha256=
|
|
167
|
+
mistralai/models/githubrepositoryin.py,sha256=Mav5ixyd1qKDxocU_VlNNtd5Vq2keIPzcq4qHUQJtLc,1681
|
|
168
|
+
mistralai/models/githubrepositoryout.py,sha256=zqbIcC_aHQVZcWYiTPoev7AIc0jBdMjbV6XhkBbOq3U,1693
|
|
169
169
|
mistralai/models/httpvalidationerror.py,sha256=E3O9wiCji3PUjrCsh3Sr1LCx3C-kE1JZFFj9x4obMEo,637
|
|
170
|
-
mistralai/models/jobin.py,sha256=
|
|
170
|
+
mistralai/models/jobin.py,sha256=AatPvIIyjywt1q1yFdNHTTlE7mSXU9A46_H_87wxNuA,4301
|
|
171
171
|
mistralai/models/jobmetadataout.py,sha256=kkUxNv5b628RvYn0lZ3JrAlSRaiGfpESCub0RPk4d18,2168
|
|
172
|
-
mistralai/models/jobout.py,sha256=
|
|
172
|
+
mistralai/models/jobout.py,sha256=onHRnO32G4r1h7_8p0d2DOWypHUaimR3B65B7s7k06Y,5650
|
|
173
173
|
mistralai/models/jobs_api_routes_fine_tuning_archive_fine_tuned_modelop.py,sha256=RsWO0jJaU7MNv1qepPNH36ORLvShfQQvvUG9E9syG4E,641
|
|
174
174
|
mistralai/models/jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop.py,sha256=_RrA1AI50Cp8f204cP5l7EIspn7UfFGUf2woWrGP4K0,627
|
|
175
175
|
mistralai/models/jobs_api_routes_fine_tuning_create_fine_tuning_jobop.py,sha256=6QdnKjqt9XPL_dFwd4_HtWxD-7dqqeKuuGiFMDSXHcc,493
|
|
@@ -178,8 +178,8 @@ mistralai/models/jobs_api_routes_fine_tuning_get_fine_tuning_jobsop.py,sha256=H4
|
|
|
178
178
|
mistralai/models/jobs_api_routes_fine_tuning_start_fine_tuning_jobop.py,sha256=S53w_mTDWYJiWMlPfkqkbJboB4Of30LuT8b8yj99baY,545
|
|
179
179
|
mistralai/models/jobs_api_routes_fine_tuning_unarchive_fine_tuned_modelop.py,sha256=3nq6mRCmZzE2fnCrAXMuFuylJUE0c6zoqAiEESzjeuw,649
|
|
180
180
|
mistralai/models/jobs_api_routes_fine_tuning_update_fine_tuned_modelop.py,sha256=rJqiVUxTFiwqCSZQte89uvShBrjtXO5wx_yQeT_VMT4,896
|
|
181
|
-
mistralai/models/jobsout.py,sha256=
|
|
182
|
-
mistralai/models/legacyjobmetadataout.py,sha256=
|
|
181
|
+
mistralai/models/jobsout.py,sha256=4Yfrs60jG6CQOpBIkhnrzi1DNhu_YMvIEJuqzQae4Pk,652
|
|
182
|
+
mistralai/models/legacyjobmetadataout.py,sha256=7KkZPOcG9ps1drnECxTAGywwnar_2e_qacKFQK7_dp0,4194
|
|
183
183
|
mistralai/models/listfilesout.py,sha256=ynGUG0oi9boSfHVBFqlkOSkDz2QVf974hG444yF-aOY,416
|
|
184
184
|
mistralai/models/metricout.py,sha256=FVKlaBcLe9qXUYlyZu44kC-fgCjMaV8PVb1D5nL0YJ8,1992
|
|
185
185
|
mistralai/models/modelcapabilities.py,sha256=bGPtxjm4vnUP0BrMbMgGKAaAkMcJs1jmflPXjNQyVVs,643
|
|
@@ -187,49 +187,50 @@ mistralai/models/modelcard.py,sha256=LM4anayV1SnnYJ7sy0_8a4rtd7lZAQjYUGftUivkbwc
|
|
|
187
187
|
mistralai/models/modellist.py,sha256=wdUWOzSQU2C0aL2fKoXez62ZFICdtHz_ViTGtT0gjjU,519
|
|
188
188
|
mistralai/models/responseformat.py,sha256=QwA36MujDZQ_5y3jEaxZk_xA-TGnLBdBLSFRj6T-3Ww,760
|
|
189
189
|
mistralai/models/retrieve_model_v1_models_model_id_getop.py,sha256=eG-VrMPX57egDI6b_Weu0bPSgnoyTDDEWVl6h01ThY4,617
|
|
190
|
-
mistralai/models/retrievefileout.py,sha256=
|
|
190
|
+
mistralai/models/retrievefileout.py,sha256=EyzDwHVT7_Fx67I7M9xBM0J_Mxd8QKSObZJxpQUN2iw,2731
|
|
191
191
|
mistralai/models/sampletype.py,sha256=AHVeruPkMqLwaXTQVMiqrWxCv29ErNAOQenNxRaYFfc,182
|
|
192
192
|
mistralai/models/sdkerror.py,sha256=kd75e3JYF2TXNgRZopcV-oGdBWoBZqRcvrwqn2fsFYs,528
|
|
193
193
|
mistralai/models/security.py,sha256=RyMjZxtU-_-xoqReeS4gZ61yXpk8Bd1NTU2Xsbhb8YU,571
|
|
194
194
|
mistralai/models/source.py,sha256=i__XC0fCs5hAyp3uHzGK-gY6jcC8lE431V8-YpzCNso,178
|
|
195
195
|
mistralai/models/systemmessage.py,sha256=EC7sfVzkF9C0pN5hL8LZZ2z3tn9bvKi-rPXlnBzDrC4,642
|
|
196
196
|
mistralai/models/textchunk.py,sha256=PTQeBlqG9w4PudvceZnN4oLyYfBfdiiz9cKciaq9PI8,450
|
|
197
|
-
mistralai/models/tool.py,sha256=
|
|
198
|
-
mistralai/models/toolcall.py,sha256=
|
|
197
|
+
mistralai/models/tool.py,sha256=rCz-vBP9xpluV04TOau8qjY_twI4HJ0dkz630DlkHnI,748
|
|
198
|
+
mistralai/models/toolcall.py,sha256=1ERaFEBQ5JOh4u53SUgx2zbUO8GdWonolPKz01ShGio,820
|
|
199
199
|
mistralai/models/toolmessage.py,sha256=SvpHgri0kEpJbLFJ-N3ONShwQYn2ROn81JeOSitOX9I,1593
|
|
200
200
|
mistralai/models/trainingfile.py,sha256=fqH-7Z5Ynrd0JNY9MEG1mcjxgi82snM4dMVW23Y8KBg,408
|
|
201
|
-
mistralai/models/trainingparameters.py,sha256=
|
|
202
|
-
mistralai/models/trainingparametersin.py,sha256=
|
|
203
|
-
mistralai/models/unarchiveftmodelout.py,sha256
|
|
201
|
+
mistralai/models/trainingparameters.py,sha256=RyvaHhZhLctJ7IWvrpTDODcAGt14zVQYJIxYPNavnvs,1943
|
|
202
|
+
mistralai/models/trainingparametersin.py,sha256=oPw-f-IGYD9tUpNO4o9776a9yihwsUE7pGpiSNe59IE,4209
|
|
203
|
+
mistralai/models/unarchiveftmodelout.py,sha256=SAsx8zPbPuKTswjJqJKmMxqbNaj-vamUCZeePPZ6RFY,630
|
|
204
204
|
mistralai/models/updateftmodelin.py,sha256=BicrkRH-NMfatFO1eAM9BVEPAOgAhKAY5rfz7tkCcJw,1417
|
|
205
|
-
mistralai/models/uploadfileout.py,sha256=
|
|
205
|
+
mistralai/models/uploadfileout.py,sha256=oha8PkzjjImu65bkeHZCLPxPCtOJ7xs0Q6QB7tlZJXo,2697
|
|
206
206
|
mistralai/models/usageinfo.py,sha256=HaINgSEQgJzJuSc31qXfktjOPuwycLOXu0PyusbKsOw,397
|
|
207
207
|
mistralai/models/usermessage.py,sha256=1vRfJzEFsNGaFC7myNdjcL5SzkS-AoMnhWSlC1ggYcg,696
|
|
208
208
|
mistralai/models/validationerror.py,sha256=gYLU8SsPHO06ItvXIT5pNoDf_EN3rqy7j-mba6XonEw,436
|
|
209
|
-
mistralai/models/wandbintegration.py,sha256=
|
|
210
|
-
mistralai/models/wandbintegrationout.py,sha256
|
|
209
|
+
mistralai/models/wandbintegration.py,sha256=Qdt2c11bGNn9I5t_oXgESwWgiuSsa8qPYo5EKnRc-Uo,2135
|
|
210
|
+
mistralai/models/wandbintegrationout.py,sha256=d34eUKXcuFXk948yNYAuQVeEE_DZtSEEfzhaJZL9Oos,1963
|
|
211
211
|
mistralai/models_.py,sha256=umktQr0ejwXlXMbs1wuR45qrhPx74dx-KKGRU2FejD4,37297
|
|
212
212
|
mistralai/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
|
213
|
-
mistralai/sdk.py,sha256=
|
|
214
|
-
mistralai/sdkconfiguration.py,sha256=
|
|
213
|
+
mistralai/sdk.py,sha256=NVD3gj_E4QlBHQlcBrIp1ZYvttIxQeivEYTGNY2TnUk,4663
|
|
214
|
+
mistralai/sdkconfiguration.py,sha256=riQAJDnjhq3tdTDzuZ17gjrztOCWNASnb3bluL2hZSo,1695
|
|
215
215
|
mistralai/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
|
216
216
|
mistralai/types/basemodel.py,sha256=PexI39iKiOkIlobB8Ueo0yn8PLHp6_wb-WO-zelNDZY,1170
|
|
217
|
-
mistralai/utils/__init__.py,sha256=
|
|
217
|
+
mistralai/utils/__init__.py,sha256=9qazjFztcyuQzo_O6QbwyDrPdPPxclel_0pVmiwN93U,2201
|
|
218
218
|
mistralai/utils/annotations.py,sha256=475O8UTbQNQiawh8ZoJi_NDPKqhgW7vzy046ffMU8jI,655
|
|
219
219
|
mistralai/utils/enums.py,sha256=VzjeslROrAr2luZOTJlvu-4UlxgTaGOKlRYtJJ7IfyY,1006
|
|
220
220
|
mistralai/utils/eventstreaming.py,sha256=klSQ0FURc-hqYz1si1EG92VCFhfaxyBo_xP2mX3BBWo,4917
|
|
221
|
-
mistralai/utils/forms.py,sha256=
|
|
222
|
-
mistralai/utils/headers.py,sha256
|
|
223
|
-
mistralai/utils/logger.py,sha256=
|
|
221
|
+
mistralai/utils/forms.py,sha256=L-y62DiD0FXnq7WIyw8BAMbdr7sZDwhZ_3YsdviBbaA,6325
|
|
222
|
+
mistralai/utils/headers.py,sha256=cPxWSmUILrefTGDzTH1Hdj7_Hlsj-EY6K5Tyc4iH4dk,3663
|
|
223
|
+
mistralai/utils/logger.py,sha256=dGAjBvOomf7xwBjmHCMZJ5abD_RSehZ_zCG6VmNpwrI,672
|
|
224
224
|
mistralai/utils/metadata.py,sha256=Per2KFXXOqOtoUWXrlIfjrSrBg199KrRW0nKQDgHIBU,3136
|
|
225
|
-
mistralai/utils/queryparams.py,sha256=
|
|
225
|
+
mistralai/utils/queryparams.py,sha256=MTK6inMS1_WwjmMJEJmAn67tSHHJyarpdGRlorRHEtI,5899
|
|
226
226
|
mistralai/utils/requestbodies.py,sha256=PXmttCHm1zWGmwbrTyXYXxbeULavRWqxfD54Jx2CdJE,2084
|
|
227
227
|
mistralai/utils/retries.py,sha256=Mg6S9TaL3AF6DS7LToKwNSpCXBjkdyhRc4YwVeTnSaA,6324
|
|
228
228
|
mistralai/utils/security.py,sha256=fOa_NmT-LmowcgvtewR_v7LX5GMlagEIw16WbMgyN9E,5821
|
|
229
|
-
mistralai/utils/serializers.py,sha256=
|
|
230
|
-
mistralai/utils/url.py,sha256=
|
|
231
|
-
mistralai/utils/values.py,sha256=
|
|
232
|
-
mistralai
|
|
233
|
-
mistralai-1.0.
|
|
234
|
-
mistralai-1.0.
|
|
235
|
-
mistralai-1.0.
|
|
229
|
+
mistralai/utils/serializers.py,sha256=FRCVu7wAf3VCss55ve62zuvdwnjDIHLQUDHc8fkGO4c,4383
|
|
230
|
+
mistralai/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
|
231
|
+
mistralai/utils/values.py,sha256=_89YXPTI_BU6SXJBzFR4pIzTCBPQW9tsOTN1jeBBIDs,3428
|
|
232
|
+
mistralai/version.py,sha256=iosXhlXclBwBqlADFKEilxAC2wWKbtuBKi87AmPi7s8,196
|
|
233
|
+
mistralai-1.0.3.dist-info/LICENSE,sha256=rUtQ_9GD0OyLPlb-2uWVdfE87hzudMRmsW-tS-0DK-0,11340
|
|
234
|
+
mistralai-1.0.3.dist-info/METADATA,sha256=wGlK3Tcr8LpOu9B6f_mfTcBYGRUO6PuX2R_XZw_umL0,19576
|
|
235
|
+
mistralai-1.0.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
236
|
+
mistralai-1.0.3.dist-info/RECORD,,
|
|
@@ -18,11 +18,11 @@ from .sdkerror import SDKError
|
|
|
18
18
|
from .security import Security, SecurityTypedDict
|
|
19
19
|
from .systemmessage import Content, ContentTypedDict, Role, SystemMessage, SystemMessageTypedDict
|
|
20
20
|
from .textchunk import TextChunk, TextChunkTypedDict
|
|
21
|
-
from .tool import Tool, ToolTypedDict
|
|
22
|
-
from .toolcall import ToolCall, ToolCallTypedDict
|
|
21
|
+
from .tool import Tool, ToolToolTypes, ToolTypedDict
|
|
22
|
+
from .toolcall import ToolCall, ToolCallTypedDict, ToolTypes
|
|
23
23
|
from .toolmessage import ToolMessage, ToolMessageRole, ToolMessageTypedDict
|
|
24
24
|
from .usageinfo import UsageInfo, UsageInfoTypedDict
|
|
25
25
|
from .usermessage import UserMessage, UserMessageContent, UserMessageContentTypedDict, UserMessageRole, UserMessageTypedDict
|
|
26
26
|
from .validationerror import Loc, LocTypedDict, ValidationError, ValidationErrorTypedDict
|
|
27
27
|
|
|
28
|
-
__all__ = ["Arguments", "ArgumentsTypedDict", "AssistantMessage", "AssistantMessageRole", "AssistantMessageTypedDict", "ChatCompletionChoice", "ChatCompletionChoiceFinishReason", "ChatCompletionChoiceTypedDict", "ChatCompletionRequest", "ChatCompletionRequestMessages", "ChatCompletionRequestMessagesTypedDict", "ChatCompletionRequestStop", "ChatCompletionRequestStopTypedDict", "ChatCompletionRequestToolChoice", "ChatCompletionRequestTypedDict", "ChatCompletionResponse", "ChatCompletionResponseTypedDict", "ChatCompletionStreamRequest", "ChatCompletionStreamRequestTypedDict", "CompletionChunk", "CompletionChunkTypedDict", "CompletionEvent", "CompletionEventTypedDict", "CompletionResponseStreamChoice", "CompletionResponseStreamChoiceTypedDict", "Content", "ContentChunk", "ContentChunkTypedDict", "ContentTypedDict", "DeltaMessage", "DeltaMessageTypedDict", "FinishReason", "Function", "FunctionCall", "FunctionCallTypedDict", "FunctionTypedDict", "HTTPValidationError", "HTTPValidationErrorData", "Loc", "LocTypedDict", "Messages", "MessagesTypedDict", "ResponseFormat", "ResponseFormatTypedDict", "ResponseFormats", "Role", "SDKError", "Security", "SecurityTypedDict", "Stop", "StopTypedDict", "SystemMessage", "SystemMessageTypedDict", "TextChunk", "TextChunkTypedDict", "Tool", "ToolCall", "ToolCallTypedDict", "ToolChoice", "ToolMessage", "ToolMessageRole", "ToolMessageTypedDict", "ToolTypedDict", "UsageInfo", "UsageInfoTypedDict", "UserMessage", "UserMessageContent", "UserMessageContentTypedDict", "UserMessageRole", "UserMessageTypedDict", "ValidationError", "ValidationErrorTypedDict"]
|
|
28
|
+
__all__ = ["Arguments", "ArgumentsTypedDict", "AssistantMessage", "AssistantMessageRole", "AssistantMessageTypedDict", "ChatCompletionChoice", "ChatCompletionChoiceFinishReason", "ChatCompletionChoiceTypedDict", "ChatCompletionRequest", "ChatCompletionRequestMessages", "ChatCompletionRequestMessagesTypedDict", "ChatCompletionRequestStop", "ChatCompletionRequestStopTypedDict", "ChatCompletionRequestToolChoice", "ChatCompletionRequestTypedDict", "ChatCompletionResponse", "ChatCompletionResponseTypedDict", "ChatCompletionStreamRequest", "ChatCompletionStreamRequestTypedDict", "CompletionChunk", "CompletionChunkTypedDict", "CompletionEvent", "CompletionEventTypedDict", "CompletionResponseStreamChoice", "CompletionResponseStreamChoiceTypedDict", "Content", "ContentChunk", "ContentChunkTypedDict", "ContentTypedDict", "DeltaMessage", "DeltaMessageTypedDict", "FinishReason", "Function", "FunctionCall", "FunctionCallTypedDict", "FunctionTypedDict", "HTTPValidationError", "HTTPValidationErrorData", "Loc", "LocTypedDict", "Messages", "MessagesTypedDict", "ResponseFormat", "ResponseFormatTypedDict", "ResponseFormats", "Role", "SDKError", "Security", "SecurityTypedDict", "Stop", "StopTypedDict", "SystemMessage", "SystemMessageTypedDict", "TextChunk", "TextChunkTypedDict", "Tool", "ToolCall", "ToolCallTypedDict", "ToolChoice", "ToolMessage", "ToolMessageRole", "ToolMessageTypedDict", "ToolToolTypes", "ToolTypedDict", "ToolTypes", "UsageInfo", "UsageInfoTypedDict", "UserMessage", "UserMessageContent", "UserMessageContentTypedDict", "UserMessageRole", "UserMessageTypedDict", "ValidationError", "ValidationErrorTypedDict"]
|
|
@@ -3,20 +3,19 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .assistantmessage import AssistantMessage, AssistantMessageTypedDict
|
|
5
5
|
from mistralai_azure.types import BaseModel
|
|
6
|
-
from typing import Literal,
|
|
7
|
-
from typing_extensions import NotRequired
|
|
6
|
+
from typing import Literal, TypedDict
|
|
8
7
|
|
|
9
8
|
|
|
10
9
|
ChatCompletionChoiceFinishReason = Literal["stop", "length", "model_length", "error", "tool_calls"]
|
|
11
10
|
|
|
12
11
|
class ChatCompletionChoiceTypedDict(TypedDict):
|
|
13
12
|
index: int
|
|
13
|
+
message: AssistantMessageTypedDict
|
|
14
14
|
finish_reason: ChatCompletionChoiceFinishReason
|
|
15
|
-
message: NotRequired[AssistantMessageTypedDict]
|
|
16
15
|
|
|
17
16
|
|
|
18
17
|
class ChatCompletionChoice(BaseModel):
|
|
19
18
|
index: int
|
|
19
|
+
message: AssistantMessage
|
|
20
20
|
finish_reason: ChatCompletionChoiceFinishReason
|
|
21
|
-
message: Optional[AssistantMessage] = None
|
|
22
21
|
|
|
@@ -10,19 +10,19 @@ from typing_extensions import NotRequired
|
|
|
10
10
|
|
|
11
11
|
class DeltaMessageTypedDict(TypedDict):
|
|
12
12
|
role: NotRequired[str]
|
|
13
|
-
content: NotRequired[str]
|
|
13
|
+
content: NotRequired[Nullable[str]]
|
|
14
14
|
tool_calls: NotRequired[Nullable[List[ToolCallTypedDict]]]
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class DeltaMessage(BaseModel):
|
|
18
18
|
role: Optional[str] = None
|
|
19
|
-
content:
|
|
19
|
+
content: OptionalNullable[str] = UNSET
|
|
20
20
|
tool_calls: OptionalNullable[List[ToolCall]] = UNSET
|
|
21
21
|
|
|
22
22
|
@model_serializer(mode="wrap")
|
|
23
23
|
def serialize_model(self, handler):
|
|
24
24
|
optional_fields = ["role", "content", "tool_calls"]
|
|
25
|
-
nullable_fields = ["tool_calls"]
|
|
25
|
+
nullable_fields = ["content", "tool_calls"]
|
|
26
26
|
null_default_fields = []
|
|
27
27
|
|
|
28
28
|
serialized = handler(self)
|
mistralai_azure/models/tool.py
CHANGED
|
@@ -2,17 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .function import Function, FunctionTypedDict
|
|
5
|
-
from mistralai_azure.types import BaseModel
|
|
6
|
-
import
|
|
7
|
-
from
|
|
8
|
-
from
|
|
5
|
+
from mistralai_azure.types import BaseModel, UnrecognizedStr
|
|
6
|
+
from mistralai_azure.utils import validate_open_enum
|
|
7
|
+
from pydantic.functional_validators import PlainValidator
|
|
8
|
+
from typing import Literal, Optional, TypedDict, Union
|
|
9
|
+
from typing_extensions import Annotated, NotRequired
|
|
9
10
|
|
|
10
11
|
|
|
12
|
+
ToolToolTypes = Union[Literal["function"], UnrecognizedStr]
|
|
13
|
+
|
|
11
14
|
class ToolTypedDict(TypedDict):
|
|
12
15
|
function: FunctionTypedDict
|
|
16
|
+
type: NotRequired[ToolToolTypes]
|
|
13
17
|
|
|
14
18
|
|
|
15
19
|
class Tool(BaseModel):
|
|
16
20
|
function: Function
|
|
17
|
-
|
|
21
|
+
type: Annotated[Optional[ToolToolTypes], PlainValidator(validate_open_enum(False))] = "function"
|
|
18
22
|
|
|
@@ -2,19 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .functioncall import FunctionCall, FunctionCallTypedDict
|
|
5
|
-
from mistralai_azure.types import BaseModel
|
|
6
|
-
import
|
|
7
|
-
from
|
|
5
|
+
from mistralai_azure.types import BaseModel, UnrecognizedStr
|
|
6
|
+
from mistralai_azure.utils import validate_open_enum
|
|
7
|
+
from pydantic.functional_validators import PlainValidator
|
|
8
|
+
from typing import Literal, Optional, TypedDict, Union
|
|
8
9
|
from typing_extensions import Annotated, NotRequired
|
|
9
10
|
|
|
10
11
|
|
|
12
|
+
ToolTypes = Union[Literal["function"], UnrecognizedStr]
|
|
13
|
+
|
|
11
14
|
class ToolCallTypedDict(TypedDict):
|
|
12
15
|
function: FunctionCallTypedDict
|
|
13
16
|
id: NotRequired[str]
|
|
17
|
+
type: NotRequired[ToolTypes]
|
|
14
18
|
|
|
15
19
|
|
|
16
20
|
class ToolCall(BaseModel):
|
|
17
21
|
function: FunctionCall
|
|
18
22
|
id: Optional[str] = "null"
|
|
19
|
-
|
|
23
|
+
type: Annotated[Optional[ToolTypes], PlainValidator(validate_open_enum(False))] = "function"
|
|
20
24
|
|
|
@@ -29,9 +29,9 @@ class SDKConfiguration:
|
|
|
29
29
|
server: Optional[str] = ""
|
|
30
30
|
language: str = "python"
|
|
31
31
|
openapi_doc_version: str = "0.0.2"
|
|
32
|
-
sdk_version: str = "1.0.
|
|
33
|
-
gen_version: str = "2.
|
|
34
|
-
user_agent: str = "speakeasy-sdk/python 1.0.
|
|
32
|
+
sdk_version: str = "1.0.1"
|
|
33
|
+
gen_version: str = "2.399.0"
|
|
34
|
+
user_agent: str = "speakeasy-sdk/python 1.0.1 2.399.0 0.0.2 mistralai_azure"
|
|
35
35
|
retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET)
|
|
36
36
|
timeout_ms: Optional[int] = None
|
|
37
37
|
|
mistralai_gcp/chat.py
CHANGED
|
@@ -33,7 +33,7 @@ class Chat(BaseSDK):
|
|
|
33
33
|
|
|
34
34
|
Mistral AI provides the ability to stream responses back to a client in order to allow partial results for certain requests. Tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a data: [DONE] message. Otherwise, the server will hold the request open until the timeout or until completion, with the response containing the full result as JSON.
|
|
35
35
|
|
|
36
|
-
:param model: ID of the model to use. You can use the [List Available Models](/api
|
|
36
|
+
:param model: ID of the model to use. You can use the [List Available Models](/api/#tag/models/operation/list_models_v1_models_get) API to see all of your available models, or see our [Model overview](/models) for model descriptions.
|
|
37
37
|
:param messages: The prompt(s) to generate completions for, encoded as a list of dict with role and content.
|
|
38
38
|
:param temperature: What sampling temperature to use, between 0.0 and 1.0. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or `top_p` but not both.
|
|
39
39
|
:param top_p: Nucleus sampling, where the model considers the results of the tokens with `top_p` probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or `temperature` but not both.
|
|
@@ -146,7 +146,7 @@ class Chat(BaseSDK):
|
|
|
146
146
|
|
|
147
147
|
Mistral AI provides the ability to stream responses back to a client in order to allow partial results for certain requests. Tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a data: [DONE] message. Otherwise, the server will hold the request open until the timeout or until completion, with the response containing the full result as JSON.
|
|
148
148
|
|
|
149
|
-
:param model: ID of the model to use. You can use the [List Available Models](/api
|
|
149
|
+
:param model: ID of the model to use. You can use the [List Available Models](/api/#tag/models/operation/list_models_v1_models_get) API to see all of your available models, or see our [Model overview](/models) for model descriptions.
|
|
150
150
|
:param messages: The prompt(s) to generate completions for, encoded as a list of dict with role and content.
|
|
151
151
|
:param temperature: What sampling temperature to use, between 0.0 and 1.0. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or `top_p` but not both.
|
|
152
152
|
:param top_p: Nucleus sampling, where the model considers the results of the tokens with `top_p` probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or `temperature` but not both.
|
|
@@ -257,7 +257,7 @@ class Chat(BaseSDK):
|
|
|
257
257
|
) -> Optional[models.ChatCompletionResponse]:
|
|
258
258
|
r"""Chat Completion
|
|
259
259
|
|
|
260
|
-
:param model: ID of the model to use. You can use the [List Available Models](/api
|
|
260
|
+
:param model: ID of the model to use. You can use the [List Available Models](/api/#tag/models/operation/list_models_v1_models_get) API to see all of your available models, or see our [Model overview](/models) for model descriptions.
|
|
261
261
|
:param messages: The prompt(s) to generate completions for, encoded as a list of dict with role and content.
|
|
262
262
|
:param temperature: What sampling temperature to use, between 0.0 and 1.0. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or `top_p` but not both.
|
|
263
263
|
:param top_p: Nucleus sampling, where the model considers the results of the tokens with `top_p` probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or `temperature` but not both.
|
|
@@ -367,7 +367,7 @@ class Chat(BaseSDK):
|
|
|
367
367
|
) -> Optional[models.ChatCompletionResponse]:
|
|
368
368
|
r"""Chat Completion
|
|
369
369
|
|
|
370
|
-
:param model: ID of the model to use. You can use the [List Available Models](/api
|
|
370
|
+
:param model: ID of the model to use. You can use the [List Available Models](/api/#tag/models/operation/list_models_v1_models_get) API to see all of your available models, or see our [Model overview](/models) for model descriptions.
|
|
371
371
|
:param messages: The prompt(s) to generate completions for, encoded as a list of dict with role and content.
|
|
372
372
|
:param temperature: What sampling temperature to use, between 0.0 and 1.0. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or `top_p` but not both.
|
|
373
373
|
:param top_p: Nucleus sampling, where the model considers the results of the tokens with `top_p` probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or `temperature` but not both.
|
mistralai_gcp/models/__init__.py
CHANGED
|
@@ -21,11 +21,11 @@ from .sdkerror import SDKError
|
|
|
21
21
|
from .security import Security, SecurityTypedDict
|
|
22
22
|
from .systemmessage import Content, ContentTypedDict, Role, SystemMessage, SystemMessageTypedDict
|
|
23
23
|
from .textchunk import TextChunk, TextChunkTypedDict
|
|
24
|
-
from .tool import Tool, ToolTypedDict
|
|
25
|
-
from .toolcall import ToolCall, ToolCallTypedDict
|
|
24
|
+
from .tool import Tool, ToolToolTypes, ToolTypedDict
|
|
25
|
+
from .toolcall import ToolCall, ToolCallTypedDict, ToolTypes
|
|
26
26
|
from .toolmessage import ToolMessage, ToolMessageRole, ToolMessageTypedDict
|
|
27
27
|
from .usageinfo import UsageInfo, UsageInfoTypedDict
|
|
28
28
|
from .usermessage import UserMessage, UserMessageContent, UserMessageContentTypedDict, UserMessageRole, UserMessageTypedDict
|
|
29
29
|
from .validationerror import Loc, LocTypedDict, ValidationError, ValidationErrorTypedDict
|
|
30
30
|
|
|
31
|
-
__all__ = ["Arguments", "ArgumentsTypedDict", "AssistantMessage", "AssistantMessageRole", "AssistantMessageTypedDict", "ChatCompletionChoice", "ChatCompletionChoiceFinishReason", "ChatCompletionChoiceTypedDict", "ChatCompletionRequest", "ChatCompletionRequestMessages", "ChatCompletionRequestMessagesTypedDict", "ChatCompletionRequestStop", "ChatCompletionRequestStopTypedDict", "ChatCompletionRequestToolChoice", "ChatCompletionRequestTypedDict", "ChatCompletionResponse", "ChatCompletionResponseTypedDict", "ChatCompletionStreamRequest", "ChatCompletionStreamRequestTypedDict", "CompletionChunk", "CompletionChunkTypedDict", "CompletionEvent", "CompletionEventTypedDict", "CompletionResponseStreamChoice", "CompletionResponseStreamChoiceTypedDict", "Content", "ContentChunk", "ContentChunkTypedDict", "ContentTypedDict", "DeltaMessage", "DeltaMessageTypedDict", "FIMCompletionRequest", "FIMCompletionRequestStop", "FIMCompletionRequestStopTypedDict", "FIMCompletionRequestTypedDict", "FIMCompletionResponse", "FIMCompletionResponseTypedDict", "FIMCompletionStreamRequest", "FIMCompletionStreamRequestStop", "FIMCompletionStreamRequestStopTypedDict", "FIMCompletionStreamRequestTypedDict", "FinishReason", "Function", "FunctionCall", "FunctionCallTypedDict", "FunctionTypedDict", "HTTPValidationError", "HTTPValidationErrorData", "Loc", "LocTypedDict", "Messages", "MessagesTypedDict", "ResponseFormat", "ResponseFormatTypedDict", "ResponseFormats", "Role", "SDKError", "Security", "SecurityTypedDict", "Stop", "StopTypedDict", "SystemMessage", "SystemMessageTypedDict", "TextChunk", "TextChunkTypedDict", "Tool", "ToolCall", "ToolCallTypedDict", "ToolChoice", "ToolMessage", "ToolMessageRole", "ToolMessageTypedDict", "ToolTypedDict", "UsageInfo", "UsageInfoTypedDict", "UserMessage", "UserMessageContent", "UserMessageContentTypedDict", "UserMessageRole", "UserMessageTypedDict", "ValidationError", "ValidationErrorTypedDict"]
|
|
31
|
+
__all__ = ["Arguments", "ArgumentsTypedDict", "AssistantMessage", "AssistantMessageRole", "AssistantMessageTypedDict", "ChatCompletionChoice", "ChatCompletionChoiceFinishReason", "ChatCompletionChoiceTypedDict", "ChatCompletionRequest", "ChatCompletionRequestMessages", "ChatCompletionRequestMessagesTypedDict", "ChatCompletionRequestStop", "ChatCompletionRequestStopTypedDict", "ChatCompletionRequestToolChoice", "ChatCompletionRequestTypedDict", "ChatCompletionResponse", "ChatCompletionResponseTypedDict", "ChatCompletionStreamRequest", "ChatCompletionStreamRequestTypedDict", "CompletionChunk", "CompletionChunkTypedDict", "CompletionEvent", "CompletionEventTypedDict", "CompletionResponseStreamChoice", "CompletionResponseStreamChoiceTypedDict", "Content", "ContentChunk", "ContentChunkTypedDict", "ContentTypedDict", "DeltaMessage", "DeltaMessageTypedDict", "FIMCompletionRequest", "FIMCompletionRequestStop", "FIMCompletionRequestStopTypedDict", "FIMCompletionRequestTypedDict", "FIMCompletionResponse", "FIMCompletionResponseTypedDict", "FIMCompletionStreamRequest", "FIMCompletionStreamRequestStop", "FIMCompletionStreamRequestStopTypedDict", "FIMCompletionStreamRequestTypedDict", "FinishReason", "Function", "FunctionCall", "FunctionCallTypedDict", "FunctionTypedDict", "HTTPValidationError", "HTTPValidationErrorData", "Loc", "LocTypedDict", "Messages", "MessagesTypedDict", "ResponseFormat", "ResponseFormatTypedDict", "ResponseFormats", "Role", "SDKError", "Security", "SecurityTypedDict", "Stop", "StopTypedDict", "SystemMessage", "SystemMessageTypedDict", "TextChunk", "TextChunkTypedDict", "Tool", "ToolCall", "ToolCallTypedDict", "ToolChoice", "ToolMessage", "ToolMessageRole", "ToolMessageTypedDict", "ToolToolTypes", "ToolTypedDict", "ToolTypes", "UsageInfo", "UsageInfoTypedDict", "UserMessage", "UserMessageContent", "UserMessageContentTypedDict", "UserMessageRole", "UserMessageTypedDict", "ValidationError", "ValidationErrorTypedDict"]
|
|
@@ -3,20 +3,19 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .assistantmessage import AssistantMessage, AssistantMessageTypedDict
|
|
5
5
|
from mistralai_gcp.types import BaseModel
|
|
6
|
-
from typing import Literal,
|
|
7
|
-
from typing_extensions import NotRequired
|
|
6
|
+
from typing import Literal, TypedDict
|
|
8
7
|
|
|
9
8
|
|
|
10
9
|
ChatCompletionChoiceFinishReason = Literal["stop", "length", "model_length", "error", "tool_calls"]
|
|
11
10
|
|
|
12
11
|
class ChatCompletionChoiceTypedDict(TypedDict):
|
|
13
12
|
index: int
|
|
13
|
+
message: AssistantMessageTypedDict
|
|
14
14
|
finish_reason: ChatCompletionChoiceFinishReason
|
|
15
|
-
message: NotRequired[AssistantMessageTypedDict]
|
|
16
15
|
|
|
17
16
|
|
|
18
17
|
class ChatCompletionChoice(BaseModel):
|
|
19
18
|
index: int
|
|
19
|
+
message: AssistantMessage
|
|
20
20
|
finish_reason: ChatCompletionChoiceFinishReason
|
|
21
|
-
message: Optional[AssistantMessage] = None
|
|
22
21
|
|
|
@@ -32,7 +32,7 @@ ChatCompletionRequestToolChoice = Literal["auto", "none", "any"]
|
|
|
32
32
|
|
|
33
33
|
class ChatCompletionRequestTypedDict(TypedDict):
|
|
34
34
|
model: Nullable[str]
|
|
35
|
-
r"""ID of the model to use. You can use the [List Available Models](/api
|
|
35
|
+
r"""ID of the model to use. You can use the [List Available Models](/api/#tag/models/operation/list_models_v1_models_get) API to see all of your available models, or see our [Model overview](/models) for model descriptions."""
|
|
36
36
|
messages: List[ChatCompletionRequestMessagesTypedDict]
|
|
37
37
|
r"""The prompt(s) to generate completions for, encoded as a list of dict with role and content."""
|
|
38
38
|
temperature: NotRequired[float]
|
|
@@ -56,7 +56,7 @@ class ChatCompletionRequestTypedDict(TypedDict):
|
|
|
56
56
|
|
|
57
57
|
class ChatCompletionRequest(BaseModel):
|
|
58
58
|
model: Nullable[str]
|
|
59
|
-
r"""ID of the model to use. You can use the [List Available Models](/api
|
|
59
|
+
r"""ID of the model to use. You can use the [List Available Models](/api/#tag/models/operation/list_models_v1_models_get) API to see all of your available models, or see our [Model overview](/models) for model descriptions."""
|
|
60
60
|
messages: List[ChatCompletionRequestMessages]
|
|
61
61
|
r"""The prompt(s) to generate completions for, encoded as a list of dict with role and content."""
|
|
62
62
|
temperature: Optional[float] = 0.7
|
|
@@ -32,7 +32,7 @@ ToolChoice = Literal["auto", "none", "any"]
|
|
|
32
32
|
|
|
33
33
|
class ChatCompletionStreamRequestTypedDict(TypedDict):
|
|
34
34
|
model: Nullable[str]
|
|
35
|
-
r"""ID of the model to use. You can use the [List Available Models](/api
|
|
35
|
+
r"""ID of the model to use. You can use the [List Available Models](/api/#tag/models/operation/list_models_v1_models_get) API to see all of your available models, or see our [Model overview](/models) for model descriptions."""
|
|
36
36
|
messages: List[MessagesTypedDict]
|
|
37
37
|
r"""The prompt(s) to generate completions for, encoded as a list of dict with role and content."""
|
|
38
38
|
temperature: NotRequired[float]
|
|
@@ -55,7 +55,7 @@ class ChatCompletionStreamRequestTypedDict(TypedDict):
|
|
|
55
55
|
|
|
56
56
|
class ChatCompletionStreamRequest(BaseModel):
|
|
57
57
|
model: Nullable[str]
|
|
58
|
-
r"""ID of the model to use. You can use the [List Available Models](/api
|
|
58
|
+
r"""ID of the model to use. You can use the [List Available Models](/api/#tag/models/operation/list_models_v1_models_get) API to see all of your available models, or see our [Model overview](/models) for model descriptions."""
|
|
59
59
|
messages: List[Messages]
|
|
60
60
|
r"""The prompt(s) to generate completions for, encoded as a list of dict with role and content."""
|
|
61
61
|
temperature: Optional[float] = 0.7
|
|
@@ -10,19 +10,19 @@ from typing_extensions import NotRequired
|
|
|
10
10
|
|
|
11
11
|
class DeltaMessageTypedDict(TypedDict):
|
|
12
12
|
role: NotRequired[str]
|
|
13
|
-
content: NotRequired[str]
|
|
13
|
+
content: NotRequired[Nullable[str]]
|
|
14
14
|
tool_calls: NotRequired[Nullable[List[ToolCallTypedDict]]]
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class DeltaMessage(BaseModel):
|
|
18
18
|
role: Optional[str] = None
|
|
19
|
-
content:
|
|
19
|
+
content: OptionalNullable[str] = UNSET
|
|
20
20
|
tool_calls: OptionalNullable[List[ToolCall]] = UNSET
|
|
21
21
|
|
|
22
22
|
@model_serializer(mode="wrap")
|
|
23
23
|
def serialize_model(self, handler):
|
|
24
24
|
optional_fields = ["role", "content", "tool_calls"]
|
|
25
|
-
nullable_fields = ["tool_calls"]
|
|
25
|
+
nullable_fields = ["content", "tool_calls"]
|
|
26
26
|
null_default_fields = []
|
|
27
27
|
|
|
28
28
|
serialized = handler(self)
|
mistralai_gcp/models/tool.py
CHANGED
|
@@ -2,17 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .function import Function, FunctionTypedDict
|
|
5
|
-
from mistralai_gcp.types import BaseModel
|
|
6
|
-
import
|
|
7
|
-
from
|
|
8
|
-
from
|
|
5
|
+
from mistralai_gcp.types import BaseModel, UnrecognizedStr
|
|
6
|
+
from mistralai_gcp.utils import validate_open_enum
|
|
7
|
+
from pydantic.functional_validators import PlainValidator
|
|
8
|
+
from typing import Literal, Optional, TypedDict, Union
|
|
9
|
+
from typing_extensions import Annotated, NotRequired
|
|
9
10
|
|
|
10
11
|
|
|
12
|
+
ToolToolTypes = Union[Literal["function"], UnrecognizedStr]
|
|
13
|
+
|
|
11
14
|
class ToolTypedDict(TypedDict):
|
|
12
15
|
function: FunctionTypedDict
|
|
16
|
+
type: NotRequired[ToolToolTypes]
|
|
13
17
|
|
|
14
18
|
|
|
15
19
|
class Tool(BaseModel):
|
|
16
20
|
function: Function
|
|
17
|
-
|
|
21
|
+
type: Annotated[Optional[ToolToolTypes], PlainValidator(validate_open_enum(False))] = "function"
|
|
18
22
|
|
mistralai_gcp/models/toolcall.py
CHANGED
|
@@ -2,19 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .functioncall import FunctionCall, FunctionCallTypedDict
|
|
5
|
-
from mistralai_gcp.types import BaseModel
|
|
6
|
-
import
|
|
7
|
-
from
|
|
5
|
+
from mistralai_gcp.types import BaseModel, UnrecognizedStr
|
|
6
|
+
from mistralai_gcp.utils import validate_open_enum
|
|
7
|
+
from pydantic.functional_validators import PlainValidator
|
|
8
|
+
from typing import Literal, Optional, TypedDict, Union
|
|
8
9
|
from typing_extensions import Annotated, NotRequired
|
|
9
10
|
|
|
10
11
|
|
|
12
|
+
ToolTypes = Union[Literal["function"], UnrecognizedStr]
|
|
13
|
+
|
|
11
14
|
class ToolCallTypedDict(TypedDict):
|
|
12
15
|
function: FunctionCallTypedDict
|
|
13
16
|
id: NotRequired[str]
|
|
17
|
+
type: NotRequired[ToolTypes]
|
|
14
18
|
|
|
15
19
|
|
|
16
20
|
class ToolCall(BaseModel):
|
|
17
21
|
function: FunctionCall
|
|
18
22
|
id: Optional[str] = "null"
|
|
19
|
-
|
|
23
|
+
type: Annotated[Optional[ToolTypes], PlainValidator(validate_open_enum(False))] = "function"
|
|
20
24
|
|