mistralai 1.0.0rc1__py3-none-any.whl → 1.0.0rc2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. mistralai/agents.py +434 -0
  2. mistralai/basesdk.py +43 -6
  3. mistralai/chat.py +29 -34
  4. mistralai/embeddings.py +4 -4
  5. mistralai/files.py +10 -10
  6. mistralai/fim.py +17 -18
  7. mistralai/fine_tuning.py +10 -849
  8. mistralai/jobs.py +854 -0
  9. mistralai/models/__init__.py +4 -2
  10. mistralai/models/agentscompletionrequest.py +96 -0
  11. mistralai/models/agentscompletionstreamrequest.py +92 -0
  12. mistralai/models/assistantmessage.py +4 -9
  13. mistralai/models/chatcompletionchoice.py +4 -15
  14. mistralai/models/chatcompletionrequest.py +11 -16
  15. mistralai/models/chatcompletionstreamrequest.py +11 -16
  16. mistralai/models/completionresponsestreamchoice.py +4 -9
  17. mistralai/models/deltamessage.py +4 -9
  18. mistralai/models/detailedjobout.py +4 -9
  19. mistralai/models/embeddingrequest.py +4 -9
  20. mistralai/models/eventout.py +4 -9
  21. mistralai/models/fileschema.py +4 -9
  22. mistralai/models/fimcompletionrequest.py +11 -16
  23. mistralai/models/fimcompletionstreamrequest.py +11 -16
  24. mistralai/models/ftmodelout.py +4 -9
  25. mistralai/models/githubrepositoryin.py +4 -9
  26. mistralai/models/githubrepositoryout.py +4 -9
  27. mistralai/models/httpvalidationerror.py +1 -1
  28. mistralai/models/jobin.py +4 -9
  29. mistralai/models/jobmetadataout.py +4 -9
  30. mistralai/models/jobout.py +4 -9
  31. mistralai/models/jobs_api_routes_fine_tuning_create_fine_tuning_jobop.py +4 -9
  32. mistralai/models/jobs_api_routes_fine_tuning_get_fine_tuning_jobsop.py +4 -9
  33. mistralai/models/legacyjobmetadataout.py +4 -9
  34. mistralai/models/metricout.py +4 -9
  35. mistralai/models/modelcard.py +4 -9
  36. mistralai/models/retrievefileout.py +4 -9
  37. mistralai/models/security.py +4 -4
  38. mistralai/models/toolmessage.py +4 -9
  39. mistralai/models/trainingparameters.py +4 -9
  40. mistralai/models/trainingparametersin.py +4 -9
  41. mistralai/models/updateftmodelin.py +4 -9
  42. mistralai/models/uploadfileout.py +4 -9
  43. mistralai/models/wandbintegration.py +4 -9
  44. mistralai/models/wandbintegrationout.py +4 -9
  45. mistralai/models_.py +14 -14
  46. mistralai/sdk.py +14 -6
  47. mistralai/sdkconfiguration.py +5 -4
  48. mistralai/types/basemodel.py +10 -6
  49. mistralai/utils/__init__.py +4 -0
  50. mistralai/utils/eventstreaming.py +8 -9
  51. mistralai/utils/logger.py +16 -0
  52. mistralai/utils/retries.py +2 -2
  53. mistralai/utils/security.py +5 -2
  54. {mistralai-1.0.0rc1.dist-info → mistralai-1.0.0rc2.dist-info}/METADATA +121 -56
  55. {mistralai-1.0.0rc1.dist-info → mistralai-1.0.0rc2.dist-info}/RECORD +96 -89
  56. mistralai_azure/basesdk.py +42 -4
  57. mistralai_azure/chat.py +15 -20
  58. mistralai_azure/models/__init__.py +2 -2
  59. mistralai_azure/models/assistantmessage.py +4 -9
  60. mistralai_azure/models/chatcompletionchoice.py +4 -15
  61. mistralai_azure/models/chatcompletionrequest.py +7 -12
  62. mistralai_azure/models/chatcompletionstreamrequest.py +7 -12
  63. mistralai_azure/models/completionresponsestreamchoice.py +4 -9
  64. mistralai_azure/models/deltamessage.py +4 -9
  65. mistralai_azure/models/httpvalidationerror.py +1 -1
  66. mistralai_azure/models/toolmessage.py +4 -9
  67. mistralai_azure/sdk.py +7 -2
  68. mistralai_azure/sdkconfiguration.py +5 -4
  69. mistralai_azure/types/basemodel.py +10 -6
  70. mistralai_azure/utils/__init__.py +4 -0
  71. mistralai_azure/utils/eventstreaming.py +8 -9
  72. mistralai_azure/utils/logger.py +16 -0
  73. mistralai_azure/utils/retries.py +2 -2
  74. mistralai_gcp/basesdk.py +42 -4
  75. mistralai_gcp/chat.py +12 -17
  76. mistralai_gcp/fim.py +12 -13
  77. mistralai_gcp/models/__init__.py +2 -2
  78. mistralai_gcp/models/assistantmessage.py +4 -9
  79. mistralai_gcp/models/chatcompletionchoice.py +4 -15
  80. mistralai_gcp/models/chatcompletionrequest.py +9 -14
  81. mistralai_gcp/models/chatcompletionstreamrequest.py +9 -14
  82. mistralai_gcp/models/completionresponsestreamchoice.py +4 -9
  83. mistralai_gcp/models/deltamessage.py +4 -9
  84. mistralai_gcp/models/fimcompletionrequest.py +11 -16
  85. mistralai_gcp/models/fimcompletionstreamrequest.py +11 -16
  86. mistralai_gcp/models/httpvalidationerror.py +1 -1
  87. mistralai_gcp/models/toolmessage.py +4 -9
  88. mistralai_gcp/sdk.py +9 -0
  89. mistralai_gcp/sdkconfiguration.py +5 -4
  90. mistralai_gcp/types/basemodel.py +10 -6
  91. mistralai_gcp/utils/__init__.py +4 -0
  92. mistralai_gcp/utils/eventstreaming.py +8 -9
  93. mistralai_gcp/utils/logger.py +16 -0
  94. mistralai_gcp/utils/retries.py +2 -2
  95. {mistralai-1.0.0rc1.dist-info → mistralai-1.0.0rc2.dist-info}/LICENSE +0 -0
  96. {mistralai-1.0.0rc1.dist-info → mistralai-1.0.0rc2.dist-info}/WHEEL +0 -0
@@ -4,23 +4,23 @@ mistralai_azure/_hooks/custom_user_agent.py,sha256=1VAY7_oknRQGL8QNO0uCRHg6r7XYl
4
4
  mistralai_azure/_hooks/registration.py,sha256=5BN-U92pwP5kUaN7EOso2vWrwZlLvRcU5Coccibqp20,741
5
5
  mistralai_azure/_hooks/sdkhooks.py,sha256=tHpz-Hco6up3lnQRDRq8OsMd5FEFjYY9MG4oefXKtdc,2460
6
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
7
+ mistralai_azure/basesdk.py,sha256=GSAnDHO8lUXfqmDHhcEcbLgBGauVUqzcQcuPsSXzFFE,9043
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=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
10
+ mistralai_azure/models/__init__.py,sha256=I9OuLlKeCsn8hOkIipmrxspo8v4L01OnCORVLBYBQXY,3710
11
+ mistralai_azure/models/assistantmessage.py,sha256=IC1-M2Xx8G7dRM7JbJnf4icadOiSJq3-lmJufpfXdcY,2186
12
+ mistralai_azure/models/chatcompletionchoice.py,sha256=AmJk_4e-uV9IBEViQtHbW9Pat7OS4Znv4Snva_Lf3YY,750
13
+ mistralai_azure/models/chatcompletionrequest.py,sha256=81rSZz6D9FDbyDqLme6N2G_CWXcEhS_9Xvw6DkEGl2g,7016
14
14
  mistralai_azure/models/chatcompletionresponse.py,sha256=x4C878hm7VmzR7AY7cHqXCOdmAvH34E82E3OuxujT6k,802
15
- mistralai_azure/models/chatcompletionstreamrequest.py,sha256=W49kUQmVtR6cHoxtXsYQ64xuPfKF-Q4uldN8yWhLTTU,6214
15
+ mistralai_azure/models/chatcompletionstreamrequest.py,sha256=k5oeCK2jM2sq4jEmzyYGq_qyiLdi0g3tjEAT_pI6KoM,6128
16
16
  mistralai_azure/models/completionchunk.py,sha256=vE4iSLdX2DpDqYCSJctRgIKdau_inSJu6o7DC0exs4Q,868
17
17
  mistralai_azure/models/completionevent.py,sha256=LKbNJfEXbtl-e68h8H0YC3dtLbBWV_6rsOCTMbQHkYg,403
18
- mistralai_azure/models/completionresponsestreamchoice.py,sha256=rqAALmeMtvDA4bQw1YVZdlLTzh27RsI5VRKEFWdUN4w,1584
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=QkBJZYkB6y_l2WBm-bHRGuvT_9MzulZWSfjCbR0pzMc,1626
20
+ mistralai_azure/models/deltamessage.py,sha256=nUVRtzfy_wtlc35DDikFpJ4moie6LfJMwy49xkkTYYM,1540
21
21
  mistralai_azure/models/function.py,sha256=RclkdSPCi-Vl5TRlYatxnxsjUzMRLDRxnE5Vzs_KEGs,480
22
22
  mistralai_azure/models/functioncall.py,sha256=Gx33Vy9MQoIAzkHM5Hfcxkencf_oOa7mvaU3ByJ_bOQ,331
23
- mistralai_azure/models/httpvalidationerror.py,sha256=TnO09c69xuDDZZF--rr5pwmDYKs3XUjQdQwlTz2KDW4,653
23
+ mistralai_azure/models/httpvalidationerror.py,sha256=RLgOLt2Jk3dMdvLoEdRD7w-cAPZznS7J-QXgFAvV2ns,649
24
24
  mistralai_azure/models/responseformat.py,sha256=NK6c75wQKwFS1nvzWgVCRpge6Fk5bMLVJZBNE-8x6F0,766
25
25
  mistralai_azure/models/sdkerror.py,sha256=kd75e3JYF2TXNgRZopcV-oGdBWoBZqRcvrwqn2fsFYs,528
26
26
  mistralai_azure/models/security.py,sha256=hq1l5hcumpksUyXKzxhKKFCUq5nxfAG8X-6fTLDUGrA,530
@@ -28,25 +28,26 @@ mistralai_azure/models/systemmessage.py,sha256=WfyIp2Syi-L_gZZE-zD9_LNEZaNX8IOIT
28
28
  mistralai_azure/models/textchunk.py,sha256=RQ6S1m-jy1jYfwyZ1ClfvdLNrdgf8gf145HfinlCgGI,456
29
29
  mistralai_azure/models/tool.py,sha256=hVbHJ44yAIgrFPfboZ8Ck2zZGWZ_X4SM7FerFjZywnk,527
30
30
  mistralai_azure/models/toolcall.py,sha256=QPxFufDzlYi_5Mqp-mtzjxKivDb2Su6YBFH9mfttCOc,624
31
- mistralai_azure/models/toolmessage.py,sha256=xhomRoi-SE63TQpdBqsC_S5Z2f44UihcAYx29EgIGDc,1685
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=GVot756b_WjWysVub4uD5XR-3UIRMbor80lkXiUFjoI,702
34
34
  mistralai_azure/models/validationerror.py,sha256=g5T766Un3VeL4LuxtMww6y3S-bvqfsSva_EcPbKgLuw,442
35
35
  mistralai_azure/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
36
- mistralai_azure/sdk.py,sha256=3YTFKnRN5yca7RYbc-s_FOuzxr4bTakkDfGm5xG1BsY,3758
37
- mistralai_azure/sdkconfiguration.py,sha256=WCO6eqd4K7JxDsdABJ96VAWarCk8ZQxSqDQygukLs5I,1684
36
+ mistralai_azure/sdk.py,sha256=ZVPE9lFzswEMlHw_kiG_j5vzoJ5BwEYlVLCYGmYDjpA,3936
37
+ mistralai_azure/sdkconfiguration.py,sha256=SQt4z3NirhzRxa3d7WUBV_03b9rOqfP432VrkWS01j0,1729
38
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
39
+ mistralai_azure/types/basemodel.py,sha256=PexI39iKiOkIlobB8Ueo0yn8PLHp6_wb-WO-zelNDZY,1170
40
+ mistralai_azure/utils/__init__.py,sha256=O_jurPNtDogMYZx1-k5L5Qm1zinMhqb2tXg79nLvKAw,2132
41
41
  mistralai_azure/utils/annotations.py,sha256=475O8UTbQNQiawh8ZoJi_NDPKqhgW7vzy046ffMU8jI,655
42
42
  mistralai_azure/utils/enums.py,sha256=VzjeslROrAr2luZOTJlvu-4UlxgTaGOKlRYtJJ7IfyY,1006
43
- mistralai_azure/utils/eventstreaming.py,sha256=Wtk6mMiANDsb_pqfkb0W3CUyIGGz7oqHDWeBNeNMS_Y,4882
43
+ mistralai_azure/utils/eventstreaming.py,sha256=klSQ0FURc-hqYz1si1EG92VCFhfaxyBo_xP2mX3BBWo,4917
44
44
  mistralai_azure/utils/forms.py,sha256=JVg7suFdwOZ1T2oE_HD3kDs_BSbA3vegcNy52WdVl9I,6246
45
45
  mistralai_azure/utils/headers.py,sha256=-p4ps3CqUV9jhM3T_VWvWDaIi1z58fqttOJA5xEddSY,3627
46
+ mistralai_azure/utils/logger.py,sha256=cUIh-hpJBvZp_gYL2b2oRg-d_H6es0fgKFRHqKaIrfA,456
46
47
  mistralai_azure/utils/metadata.py,sha256=Per2KFXXOqOtoUWXrlIfjrSrBg199KrRW0nKQDgHIBU,3136
47
48
  mistralai_azure/utils/queryparams.py,sha256=vlVjKtLvtgtojqFNsaTfewDCriBfMurYKpHSHnyrt8o,5856
48
49
  mistralai_azure/utils/requestbodies.py,sha256=PXmttCHm1zWGmwbrTyXYXxbeULavRWqxfD54Jx2CdJE,2084
49
- mistralai_azure/utils/retries.py,sha256=-HK2SaiAZBzQLA9L7iO0yzFcbLsk8qoCd9pa6x4yhig,6358
50
+ mistralai_azure/utils/retries.py,sha256=Mg6S9TaL3AF6DS7LToKwNSpCXBjkdyhRc4YwVeTnSaA,6324
50
51
  mistralai_azure/utils/security.py,sha256=t9x-rRwWYsS15lGcnGu1sQhos3MTyKwI1ewGuzu8aEc,5326
51
52
  mistralai_azure/utils/serializers.py,sha256=YRBVvAQ9Ywl2N2DanYlEKc2tKys2xcsiUY_lfG0lG10,4132
52
53
  mistralai_azure/utils/url.py,sha256=Bvu71MYt9NJFYOmPcWVylrdUf3QtytbjqllNkWTCRHE,5195
@@ -57,27 +58,27 @@ mistralai_gcp/_hooks/custom_user_agent.py,sha256=1VAY7_oknRQGL8QNO0uCRHg6r7XYlss
57
58
  mistralai_gcp/_hooks/registration.py,sha256=5BN-U92pwP5kUaN7EOso2vWrwZlLvRcU5Coccibqp20,741
58
59
  mistralai_gcp/_hooks/sdkhooks.py,sha256=ep2bHxkj-EOe79ZpDji0CRtat1f1Rpra6DUUv9AOz38,2458
59
60
  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
61
+ mistralai_gcp/basesdk.py,sha256=LpFulSdv3xVC3VaZW7G03W2cFV6QEXVQfWEimwLNvc0,9037
62
+ mistralai_gcp/chat.py,sha256=zg8IGAdqeLC16tVFhOTzHBwtcqHafPmwJk9eGDj1LCQ,25705
63
+ mistralai_gcp/fim.py,sha256=ASHlsFp4LsKmzxfW4Dx6RWZo8nlla4BLMbwjVy1K5ss,23609
63
64
  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
65
+ mistralai_gcp/models/__init__.py,sha256=KjyGvbgrJPG6xwDsy8-Wq6q-zz7NrjmKHDNlcBqAmd4,4450
66
+ mistralai_gcp/models/assistantmessage.py,sha256=DIntIcFq_cw7zvRgdv1ff9ZW_pT10eOheOD7YBix80E,2184
67
+ mistralai_gcp/models/chatcompletionchoice.py,sha256=03qLZLBMka5MRg1DviwNc2VWCLsdxNTBJltxjtMzZDY,748
68
+ mistralai_gcp/models/chatcompletionrequest.py,sha256=bjAkOFZx9rm9gWBRtl_2sPqyyoDAEHywX71yLvcz7tc,7034
68
69
  mistralai_gcp/models/chatcompletionresponse.py,sha256=lljI1r6VwGsPvCI0zR85UtACyRY9PwQT0TznLXNgSP8,800
69
- mistralai_gcp/models/chatcompletionstreamrequest.py,sha256=1Vpn-shWYkEj0J9rNCHxs5lgt7PxP0Zg2xVfuo45A3c,6270
70
+ mistralai_gcp/models/chatcompletionstreamrequest.py,sha256=TcLcmUupmRFpOjgL24DrGZSJ1vdGcTn4IbmVN1FViuA,6146
70
71
  mistralai_gcp/models/completionchunk.py,sha256=6l_sWiZR20mf2hAYD410xk2PnTkNM2uI_eGoxEY4QKQ,866
71
72
  mistralai_gcp/models/completionevent.py,sha256=lfH9lU5AZSUFdJhYtZIfsxD93SuyBRiqvoygTmQ-8eU,401
72
- mistralai_gcp/models/completionresponsestreamchoice.py,sha256=84otjseBrt0WhEQojZaoznjTDw-n9vv6-QAjd7af4fs,1582
73
+ mistralai_gcp/models/completionresponsestreamchoice.py,sha256=NAcFvBMP2GIzZjL5A29e8XbW8ioDbt7Xig-stmXg4Rk,1496
73
74
  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
75
+ mistralai_gcp/models/deltamessage.py,sha256=5nQ6sck1P-UEc--BGJMbC-DEfCHNHZinSJGmpd8Lb9I,1538
76
+ mistralai_gcp/models/fimcompletionrequest.py,sha256=63MTr60Lbar6XjVm6W_MEYHzQ8fqIzG_26SEnpgXHeU,5902
76
77
  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/fimcompletionstreamrequest.py,sha256=REkMv7eFMTeOS9WptLBCcYnFO4gmfp16zosy6hZmKnw,5269
78
79
  mistralai_gcp/models/function.py,sha256=J4thGl0Mpr017thKTPSFZzZhN4kh6KuBy_vXeZN-y_4,478
79
80
  mistralai_gcp/models/functioncall.py,sha256=rp-mPDD4Odo2QmsPwAYWGPgmpBzu1pX7kKE7p0VO18g,329
80
- mistralai_gcp/models/httpvalidationerror.py,sha256=Bp8RPeba1BYF10q32yxtUaoIgsfpyMKEZbeZ7ZMdUmQ,649
81
+ mistralai_gcp/models/httpvalidationerror.py,sha256=4Myo8QsWdLviidnab4rvsSH5XCYFNgL-qdMNlbnIgsE,645
81
82
  mistralai_gcp/models/responseformat.py,sha256=VmlgNxK1GanCgkGaehmEkKPD9cahnuFGo8SEFarUtio,764
82
83
  mistralai_gcp/models/sdkerror.py,sha256=kd75e3JYF2TXNgRZopcV-oGdBWoBZqRcvrwqn2fsFYs,528
83
84
  mistralai_gcp/models/security.py,sha256=nkq31t3ybeZdQmyM3mKke4kk2n5V68Lfn3MQZtwwtWc,526
@@ -85,25 +86,26 @@ mistralai_gcp/models/systemmessage.py,sha256=_l6Pm3_xrUYdcmMPwLQQeMIj-G1tUWaP6fN
85
86
  mistralai_gcp/models/textchunk.py,sha256=by-at5dVgV_yjo85T9lOT1p8NbcRT6Uc9RJ9_YCiBK4,454
86
87
  mistralai_gcp/models/tool.py,sha256=AkI2VYbM4FI0xUVGFm_1i-Dz32SmAD1M99AU146kSC8,525
87
88
  mistralai_gcp/models/toolcall.py,sha256=dvqzukuRJ0WKndCe03so2REYx6ftKhXwUZ_C2yd5k7U,622
88
- mistralai_gcp/models/toolmessage.py,sha256=4bWzp9eq_kRSI5cRDjL6UfPxwz0cGxmI32sSiDxjuoU,1683
89
+ mistralai_gcp/models/toolmessage.py,sha256=Eew07JE_HWiLIXinAQKRyMb8nKhAyW9wE7LShN791Qw,1597
89
90
  mistralai_gcp/models/usageinfo.py,sha256=kTFYFhieGnuNlqrOHUDW2fURMYHTqf9W641BM1JwNro,401
90
91
  mistralai_gcp/models/usermessage.py,sha256=r7ggF_g7YWTzodflGe_MFq9wFgAuOigGCBZlICJurRA,700
91
92
  mistralai_gcp/models/validationerror.py,sha256=6aUfQTDiUrtbNHDIauk4Z6WGNk3qrdVInqnpZ_C41-g,440
92
93
  mistralai_gcp/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
93
- mistralai_gcp/sdk.py,sha256=1yEfjw36Fa30brslBteskXcWRD9boTS4qBhRlWZKSaM,5999
94
- mistralai_gcp/sdkconfiguration.py,sha256=5pf5xa_T6Sl1YrXSAHOb0-yLJ_jHfplNlTFScMM3Ox8,1678
94
+ mistralai_gcp/sdk.py,sha256=5ycbCdkzkBzgAdtDhCdr_GU5dDvnw4IheiL2hG934eY,6302
95
+ mistralai_gcp/sdkconfiguration.py,sha256=JObcoGZhE4392I9IbRe_B_gi9idADS1CnP0X-yXhI-g,1723
95
96
  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
97
+ mistralai_gcp/types/basemodel.py,sha256=PexI39iKiOkIlobB8Ueo0yn8PLHp6_wb-WO-zelNDZY,1170
98
+ mistralai_gcp/utils/__init__.py,sha256=O_jurPNtDogMYZx1-k5L5Qm1zinMhqb2tXg79nLvKAw,2132
98
99
  mistralai_gcp/utils/annotations.py,sha256=475O8UTbQNQiawh8ZoJi_NDPKqhgW7vzy046ffMU8jI,655
99
100
  mistralai_gcp/utils/enums.py,sha256=VzjeslROrAr2luZOTJlvu-4UlxgTaGOKlRYtJJ7IfyY,1006
100
- mistralai_gcp/utils/eventstreaming.py,sha256=Wtk6mMiANDsb_pqfkb0W3CUyIGGz7oqHDWeBNeNMS_Y,4882
101
+ mistralai_gcp/utils/eventstreaming.py,sha256=klSQ0FURc-hqYz1si1EG92VCFhfaxyBo_xP2mX3BBWo,4917
101
102
  mistralai_gcp/utils/forms.py,sha256=JVg7suFdwOZ1T2oE_HD3kDs_BSbA3vegcNy52WdVl9I,6246
102
103
  mistralai_gcp/utils/headers.py,sha256=-p4ps3CqUV9jhM3T_VWvWDaIi1z58fqttOJA5xEddSY,3627
104
+ mistralai_gcp/utils/logger.py,sha256=cUIh-hpJBvZp_gYL2b2oRg-d_H6es0fgKFRHqKaIrfA,456
103
105
  mistralai_gcp/utils/metadata.py,sha256=Per2KFXXOqOtoUWXrlIfjrSrBg199KrRW0nKQDgHIBU,3136
104
106
  mistralai_gcp/utils/queryparams.py,sha256=vlVjKtLvtgtojqFNsaTfewDCriBfMurYKpHSHnyrt8o,5856
105
107
  mistralai_gcp/utils/requestbodies.py,sha256=PXmttCHm1zWGmwbrTyXYXxbeULavRWqxfD54Jx2CdJE,2084
106
- mistralai_gcp/utils/retries.py,sha256=-HK2SaiAZBzQLA9L7iO0yzFcbLsk8qoCd9pa6x4yhig,6358
108
+ mistralai_gcp/utils/retries.py,sha256=Mg6S9TaL3AF6DS7LToKwNSpCXBjkdyhRc4YwVeTnSaA,6324
107
109
  mistralai_gcp/utils/security.py,sha256=t9x-rRwWYsS15lGcnGu1sQhos3MTyKwI1ewGuzu8aEc,5326
108
110
  mistralai_gcp/utils/serializers.py,sha256=YRBVvAQ9Ywl2N2DanYlEKc2tKys2xcsiUY_lfG0lG10,4132
109
111
  mistralai_gcp/utils/url.py,sha256=Bvu71MYt9NJFYOmPcWVylrdUf3QtytbjqllNkWTCRHE,5195
@@ -116,113 +118,118 @@ mistralai/_hooks/deprecation_warning.py,sha256=eyEOf7-o9uqqNWJnufD2RXp3dYrGV4in9
116
118
  mistralai/_hooks/registration.py,sha256=ML0W-XbE4WYdJ4eGks_XxF2aLCJTaIWjQATFGzFwvyU,861
117
119
  mistralai/_hooks/sdkhooks.py,sha256=WCbPewN31708amCF7rTVqmQcpnxQpuG2Xdb38qXCq6A,2454
118
120
  mistralai/_hooks/types.py,sha256=eDaXqYBqW_D_3Tn424cNCE1frBeh139JLso0hYrQka8,2404
121
+ mistralai/agents.py,sha256=lvCEdb4IAN8uTftnPq6Vykh-EH3QMtkurkm6nM690sc,23377
119
122
  mistralai/async_client.py,sha256=KUdYxIIqoD6L7vB0EGwUR6lQ0NK5iCTHjnLVR9CVcJY,355
120
- mistralai/basesdk.py,sha256=Rovvszha1yV0TozUYCXI3D6-IwXDcaMCpa-6Zb4K7mw,7372
121
- mistralai/chat.py,sha256=wNSKqf1T1PL3HNUSu6KvZeacJajRhJOjYlk5d_OTeO4,26604
123
+ mistralai/basesdk.py,sha256=3B65XR2C6WqgC8cewEZbMQ8t0ZilkRZeS7fl1jWtlTs,9090
124
+ mistralai/chat.py,sha256=A4xBceDSQITOLPmOiB0j-5Dj-mqYBC2qkPKIvbX6los,26662
122
125
  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
126
+ mistralai/embeddings.py,sha256=g96-XaDcbQ8k0FrPyiEFcRisqT0y7mzmF1QGsqtOM-0,7357
127
+ mistralai/files.py,sha256=VxhZulNK47p0OsWfovdeJGb_fn9CGNU-fM6WuRScDlM,24255
128
+ mistralai/fim.py,sha256=qJyEH8mk1pKard_1W_L2PPqWGsc-b_2LKUL5TNx1IvA,23794
129
+ mistralai/fine_tuning.py,sha256=gjgC4_IeY1lxT-_NZkmmO8QlsWOxCBxtknL9EeTAXts,484
127
130
  mistralai/httpclient.py,sha256=S_ItzEchFX-znIdHD6i5-a91H0Dn5QxpT0KhucdHBbI,2595
128
- mistralai/models/__init__.py,sha256=9Glh9UqhRATuj98Y9nw2uhuDTUoBu_NBnk6D9jo_GUY,12385
131
+ mistralai/jobs.py,sha256=oFSPG0dCdtKBXja9J-9XIaV7XGaMgp4grgUQD0YWYmQ,38389
132
+ mistralai/models/__init__.py,sha256=9zb-UeBD3wRPFy42drvGn6rOw2sFKGgZm0b3TrWB44E,13199
133
+ mistralai/models/agentscompletionrequest.py,sha256=y7xiFQkaJBfcCt7ogp8OOb5Crkld_JMapodWl5Zg0nM,5403
134
+ mistralai/models/agentscompletionstreamrequest.py,sha256=fAOTJDuTJI8-rKZRV878wD1LyPYiGg0wunP3_uJm-g4,5283
129
135
  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
136
+ mistralai/models/assistantmessage.py,sha256=2gpV5zzh8HnDPOJA_JwA2Ggq-cQLFJP9v3k8AJrq_CE,2180
137
+ mistralai/models/chatcompletionchoice.py,sha256=tGmRThpTdKy79RrZ35FK2s3oDMDmQzjZVmw_uhXBsP0,684
138
+ mistralai/models/chatcompletionrequest.py,sha256=5lZEWZuuDXx8DsSMSXg_KbNrnPJChHv-wSWc9q6EXaU,7027
133
139
  mistralai/models/chatcompletionresponse.py,sha256=qRgYtu_lGzn-0D2Q3lWHX3Y0qCZs-3S9m5XRvOE8bfg,796
134
- mistralai/models/chatcompletionstreamrequest.py,sha256=NQD2V8_VAM4IO7FTVf10XiLg12cvaEI4_Toa4NRYiEU,6791
140
+ mistralai/models/chatcompletionstreamrequest.py,sha256=SGYhH1O3XcMDyEiw9hWVdPN03yGMKjYThFpdIAl21Ds,6667
135
141
  mistralai/models/checkpointout.py,sha256=gWrM4kwQ4ttyxFPbWHeGyG4bfiFRs17JTJluBPKdnRc,1105
136
142
  mistralai/models/completionchunk.py,sha256=js9omyCN6anHGecrEpJTfZwEzFstmbhjOdgIgPDSmJQ,862
137
143
  mistralai/models/completionevent.py,sha256=GSDcIK9lrME3bvo8fSCSIDhlx5V1xqUPGsrBoB_eDf8,397
138
- mistralai/models/completionresponsestreamchoice.py,sha256=SAcGFb1JdGtSDpaDCrH6MNDbed8HtoWTPg2h7Nt2NTo,1668
144
+ mistralai/models/completionresponsestreamchoice.py,sha256=8BN_6aM0Z-LHdK9ZN3LJvH0si-rs_kXGxDoAjSlmh3Y,1582
139
145
  mistralai/models/contentchunk.py,sha256=VHVp8t2Wcc1kuN3bBs-xMZIR6WCpGgDFNc_6KKU3lVI,456
140
146
  mistralai/models/delete_model_v1_models_model_id_deleteop.py,sha256=PFrMjT8tU866R9VHPwZN4e0mOAwcmi-wEyQzDpcQ1RE,531
141
147
  mistralai/models/deletefileout.py,sha256=OnzP03JES5Gyguh9S9di5VevDdDTbdTY1L0gTv9RdMQ,583
142
148
  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
149
+ mistralai/models/deltamessage.py,sha256=Uqh8vzxj-yH3b44wAJmJvUL0UcJDWMduggTJ7qn0IeA,1534
150
+ mistralai/models/detailedjobout.py,sha256=MdKbPosRbp0l9EDkWOA-2_ji9e6i7gIAEKI3GFoMTTI,4074
151
+ mistralai/models/embeddingrequest.py,sha256=VqeQ0A9_k29FhQNzlcceTdYpLu24oi-r4jjZHHbBXB8,1844
146
152
  mistralai/models/embeddingresponse.py,sha256=3ny1ziseq-pYFkPV1IzsrEFH-tIojDYbs6oh99MjFi4,639
147
153
  mistralai/models/embeddingresponsedata.py,sha256=M7cCJNf6jOXW4doA4ArMz9BI-ygmoiFdT7ttGx8mwNk,541
148
- mistralai/models/eventout.py,sha256=oygWxMXNo2W0FA0Ok1oDsu7gBllBkBB1JXMks8aBLS8,1651
154
+ mistralai/models/eventout.py,sha256=Vrvc4ga_BE9KA93JpUaPxDuaJ3CNeW8716kWXXdilGI,1565
149
155
  mistralai/models/files_api_routes_delete_fileop.py,sha256=eNXQdg248zA06BGiVEyq_8roxen71jM0pNQlwxjBswc,513
150
156
  mistralai/models/files_api_routes_retrieve_fileop.py,sha256=rXDIMC-zRHkZb86cn9pfTEpdwAjpvuFhUeYNFRBidcU,517
151
157
  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
158
+ mistralai/models/fileschema.py,sha256=poy49sBodzAiksJhOd7v711mYjlDJf0HooqvzQ9OKwc,2341
159
+ mistralai/models/fimcompletionrequest.py,sha256=K0IFIzaTpPSHggDF8bPYzdxeX1ig3fxyYKvHGE8JjyA,5898
154
160
  mistralai/models/fimcompletionresponse.py,sha256=WniZPWtPKptxmboqThX84-SL4wfTpxT0UQJbjGWSi8Q,794
155
- mistralai/models/fimcompletionstreamrequest.py,sha256=nlTlP5S311s7yZKNw8ERHHYd73m39ixVC64tYkicWeo,5389
161
+ mistralai/models/fimcompletionstreamrequest.py,sha256=PcapS2RnIx67tb76pVGgsyeN5movv-CNHuOrzVNZcug,5265
156
162
  mistralai/models/finetuneablemodel.py,sha256=EN9zh1KqgSrhVcJ0dcSMh3mBUHVdLojvMCrophjjTaM,316
157
163
  mistralai/models/ftmodelcapabilitiesout.py,sha256=d6fgSickqwb5_fre7hRdqWmfTJ6nZdNMpGzIjkkamkU,654
158
- mistralai/models/ftmodelout.py,sha256=RZ05s-8d56zYcWi_VMWXSEr5CA1zUCp_W5CUS7PEd7A,2219
164
+ mistralai/models/ftmodelout.py,sha256=bMrB_AtAHQCBfZWU5Nf53or6QvbKkrdcHdGJoqXbN2g,2133
159
165
  mistralai/models/function.py,sha256=RRA1DgD3HG00gR8Moe-POFAH9ccu3wqqy31_1voQ4JU,474
160
166
  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/githubrepositoryin.py,sha256=gIH7_yQohvbo1xw64FvxeWBri4QzcWp5HM_Lb_MhmX0,1609
168
+ mistralai/models/githubrepositoryout.py,sha256=0-oW8raBsh7Hwf4GcZcDnMRFUsdvJcf_CkVh7mKpq24,1619
169
+ mistralai/models/httpvalidationerror.py,sha256=E3O9wiCji3PUjrCsh3Sr1LCx3C-kE1JZFFj9x4obMEo,637
170
+ mistralai/models/jobin.py,sha256=6taUr9nqLe_1bLHRaSTe9AYqk2c8EiUFG7Fuazd-dGE,4105
171
+ mistralai/models/jobmetadataout.py,sha256=kkUxNv5b628RvYn0lZ3JrAlSRaiGfpESCub0RPk4d18,2168
172
+ mistralai/models/jobout.py,sha256=wKjdN9CTWbbGcVzIlg_N0mNLiHRxxOAFblw0kLzo7JQ,5419
167
173
  mistralai/models/jobs_api_routes_fine_tuning_archive_fine_tuned_modelop.py,sha256=KD7XSipbNJX1H7-S8zzSfzM8HnIamnI39kMBgj4BD0c,555
168
174
  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
175
+ mistralai/models/jobs_api_routes_fine_tuning_create_fine_tuning_jobop.py,sha256=6Yf6JaVMZuXdQ6VP0QHfO6xiTGNTb1J9hccc5j9ZE1Q,2736
170
176
  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
177
+ mistralai/models/jobs_api_routes_fine_tuning_get_fine_tuning_jobsop.py,sha256=H4vXIp7auiwXewyoVKWEQrZM9qX4BQGUbypLky9HMuU,4964
172
178
  mistralai/models/jobs_api_routes_fine_tuning_start_fine_tuning_jobop.py,sha256=S53w_mTDWYJiWMlPfkqkbJboB4Of30LuT8b8yj99baY,545
173
179
  mistralai/models/jobs_api_routes_fine_tuning_unarchive_fine_tuned_modelop.py,sha256=-z2I2Y2x8rMAjSB9jXrgDNbWB7XuK-IXoVWkNZOPiFY,559
174
180
  mistralai/models/jobs_api_routes_fine_tuning_update_fine_tuned_modelop.py,sha256=ZyqwWulPdhnAmPc59WoIGAlBf7M--f4c8gMDdXURn4w,812
175
181
  mistralai/models/jobsout.py,sha256=zyn3XGHMFVZzHcSV05yHEzgN0LKgqxcOA1tnKnFDHJ4,600
176
- mistralai/models/legacyjobmetadataout.py,sha256=1KCUmQ3EyuHqTcbgzrZaf4Z7s8MO-T-1PSxLUKNeB5c,4194
182
+ mistralai/models/legacyjobmetadataout.py,sha256=KXaL1uVOARm7JxX9LkiYq5c6JlrThf0apqo33XpaJGs,4108
177
183
  mistralai/models/listfilesout.py,sha256=ynGUG0oi9boSfHVBFqlkOSkDz2QVf974hG444yF-aOY,416
178
- mistralai/models/metricout.py,sha256=RbE-heKvVDTvMFwf5TFlXtHB3IJjoLsWaAa56rmebCg,2078
184
+ mistralai/models/metricout.py,sha256=FVKlaBcLe9qXUYlyZu44kC-fgCjMaV8PVb1D5nL0YJ8,1992
179
185
  mistralai/models/modelcapabilities.py,sha256=bGPtxjm4vnUP0BrMbMgGKAaAkMcJs1jmflPXjNQyVVs,643
180
- mistralai/models/modelcard.py,sha256=x5udkz16tOwvae3ltsYBo31vKkEIjDw9ac_xDnY0D4g,2455
186
+ mistralai/models/modelcard.py,sha256=LM4anayV1SnnYJ7sy0_8a4rtd7lZAQjYUGftUivkbwc,2369
181
187
  mistralai/models/modellist.py,sha256=wdUWOzSQU2C0aL2fKoXez62ZFICdtHz_ViTGtT0gjjU,519
182
188
  mistralai/models/responseformat.py,sha256=QwA36MujDZQ_5y3jEaxZk_xA-TGnLBdBLSFRj6T-3Ww,760
183
189
  mistralai/models/retrieve_model_v1_models_model_id_getop.py,sha256=gFrg0yl-7x01nAB6FPH42eTp95vWk5pZpkuJEtETlhQ,529
184
- mistralai/models/retrievefileout.py,sha256=RKIiH1omH6VEiqD1mfa9c3mwJZiwCmMrfSA0McOwzZo,2437
190
+ mistralai/models/retrievefileout.py,sha256=gIENaDbC2k6tT73rPJ18KoCWjkohWDlE2rYCxSIPOG4,2351
185
191
  mistralai/models/sampletype.py,sha256=AHVeruPkMqLwaXTQVMiqrWxCv29ErNAOQenNxRaYFfc,182
186
192
  mistralai/models/sdkerror.py,sha256=kd75e3JYF2TXNgRZopcV-oGdBWoBZqRcvrwqn2fsFYs,528
187
- mistralai/models/security.py,sha256=bMhUZmEnIOI5eK0FzR5F1_TU_KtqwG1-f9xfxGpJCg8,518
193
+ mistralai/models/security.py,sha256=RyMjZxtU-_-xoqReeS4gZ61yXpk8Bd1NTU2Xsbhb8YU,571
188
194
  mistralai/models/source.py,sha256=i__XC0fCs5hAyp3uHzGK-gY6jcC8lE431V8-YpzCNso,178
189
195
  mistralai/models/systemmessage.py,sha256=Z10qPlBRMuQNpiMgnHM_7imoB6dRrdgzBVxyXPXLrrg,642
190
196
  mistralai/models/textchunk.py,sha256=PTQeBlqG9w4PudvceZnN4oLyYfBfdiiz9cKciaq9PI8,450
191
197
  mistralai/models/tool.py,sha256=fUhUhOmNyBZLqS-fAojzURQI1AGNGdOVKj8GRfMBCJk,521
192
198
  mistralai/models/toolcall.py,sha256=PXvOVpo9uS0CWXpjg51rn14zDf9NVGQUqwV7DnednzA,618
193
- mistralai/models/toolmessage.py,sha256=sTypDj3vFjA9GCrR37AUNVRnl3yojOnGYFTEqaCXlHk,1679
199
+ mistralai/models/toolmessage.py,sha256=SvpHgri0kEpJbLFJ-N3ONShwQYn2ROn81JeOSitOX9I,1593
194
200
  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
201
+ mistralai/models/trainingparameters.py,sha256=3VammrUPf4-rmCm7QwCVUSitFhkYlEDYSVCsi6p_YZk,1673
202
+ mistralai/models/trainingparametersin.py,sha256=3lzaTvMVS4eorebQmDnBDwm8Oo_AZmA0ajgV_kZ3TVA,2681
197
203
  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
204
+ mistralai/models/updateftmodelin.py,sha256=BicrkRH-NMfatFO1eAM9BVEPAOgAhKAY5rfz7tkCcJw,1417
205
+ mistralai/models/uploadfileout.py,sha256=qO9FqULAL0xCZckQbuwjBeGgz9ybxQeJceqx85_mUBI,2347
200
206
  mistralai/models/usageinfo.py,sha256=HaINgSEQgJzJuSc31qXfktjOPuwycLOXu0PyusbKsOw,397
201
207
  mistralai/models/usermessage.py,sha256=7XXjdTVZEsQAjiQEz3N_v_mZR6qR1ccoa8ioHXWrpl4,696
202
208
  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
209
+ mistralai/models/wandbintegration.py,sha256=YwBYYft2kFhUcUnvT0g9jIBj2DT9-yaA3gy-Tpak2TE,2068
210
+ mistralai/models/wandbintegrationout.py,sha256=-cm34v7gUSl5POq71DYF6-RKggOgrtz1ZCHsWb726kc,1928
211
+ mistralai/models_.py,sha256=2Ue1qNL6_LB0EpxlsNgk-ETNOJRtuyr7acUDnqV9ZNE,36985
206
212
  mistralai/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
207
- mistralai/sdk.py,sha256=3ThlAmKsx-IV7Wl-GQ1KXB-Xwh3U8T8s7moE_zCF6A8,4326
208
- mistralai/sdkconfiguration.py,sha256=u7K210UYw5m1Obsk5x3KCowqvFUnJtuGTJ0sGy8h0xg,1666
213
+ mistralai/sdk.py,sha256=t0SeuAXIyW6XKg40oBeR-TkqX8tWC1zHg1BtWJGzcMc,4647
214
+ mistralai/sdkconfiguration.py,sha256=mqwZ_x2SfJj4ovtVPAXsSYPyWQJvXqElHvKbO96XOhY,1703
209
215
  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
216
+ mistralai/types/basemodel.py,sha256=PexI39iKiOkIlobB8Ueo0yn8PLHp6_wb-WO-zelNDZY,1170
217
+ mistralai/utils/__init__.py,sha256=LqdlrtuZnSuli6MrNgEbfuA0HFXHQssyrEZl7c1fq94,2185
212
218
  mistralai/utils/annotations.py,sha256=475O8UTbQNQiawh8ZoJi_NDPKqhgW7vzy046ffMU8jI,655
213
219
  mistralai/utils/enums.py,sha256=VzjeslROrAr2luZOTJlvu-4UlxgTaGOKlRYtJJ7IfyY,1006
214
- mistralai/utils/eventstreaming.py,sha256=Wtk6mMiANDsb_pqfkb0W3CUyIGGz7oqHDWeBNeNMS_Y,4882
220
+ mistralai/utils/eventstreaming.py,sha256=klSQ0FURc-hqYz1si1EG92VCFhfaxyBo_xP2mX3BBWo,4917
215
221
  mistralai/utils/forms.py,sha256=JVg7suFdwOZ1T2oE_HD3kDs_BSbA3vegcNy52WdVl9I,6246
216
222
  mistralai/utils/headers.py,sha256=-p4ps3CqUV9jhM3T_VWvWDaIi1z58fqttOJA5xEddSY,3627
223
+ mistralai/utils/logger.py,sha256=cUIh-hpJBvZp_gYL2b2oRg-d_H6es0fgKFRHqKaIrfA,456
217
224
  mistralai/utils/metadata.py,sha256=Per2KFXXOqOtoUWXrlIfjrSrBg199KrRW0nKQDgHIBU,3136
218
225
  mistralai/utils/queryparams.py,sha256=vlVjKtLvtgtojqFNsaTfewDCriBfMurYKpHSHnyrt8o,5856
219
226
  mistralai/utils/requestbodies.py,sha256=PXmttCHm1zWGmwbrTyXYXxbeULavRWqxfD54Jx2CdJE,2084
220
- mistralai/utils/retries.py,sha256=-HK2SaiAZBzQLA9L7iO0yzFcbLsk8qoCd9pa6x4yhig,6358
221
- mistralai/utils/security.py,sha256=hDSGaqL9eQxBPcjYreGBGCuSCDVEbl8s6PEOJhu8s7k,5747
227
+ mistralai/utils/retries.py,sha256=Mg6S9TaL3AF6DS7LToKwNSpCXBjkdyhRc4YwVeTnSaA,6324
228
+ mistralai/utils/security.py,sha256=fOa_NmT-LmowcgvtewR_v7LX5GMlagEIw16WbMgyN9E,5821
222
229
  mistralai/utils/serializers.py,sha256=YRBVvAQ9Ywl2N2DanYlEKc2tKys2xcsiUY_lfG0lG10,4132
223
230
  mistralai/utils/url.py,sha256=Bvu71MYt9NJFYOmPcWVylrdUf3QtytbjqllNkWTCRHE,5195
224
231
  mistralai/utils/values.py,sha256=KauGimRv4_lfIfijquDLWd1v4HbqnQiG8Rn61Stdxbg,3294
225
- mistralai-1.0.0rc1.dist-info/LICENSE,sha256=rUtQ_9GD0OyLPlb-2uWVdfE87hzudMRmsW-tS-0DK-0,11340
226
- mistralai-1.0.0rc1.dist-info/METADATA,sha256=bfyCEb8ZiFkkGWPCV9XkK8WmJrCDLjxu2EaT6IYFQ4M,17622
227
- mistralai-1.0.0rc1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
228
- mistralai-1.0.0rc1.dist-info/RECORD,,
232
+ mistralai-1.0.0rc2.dist-info/LICENSE,sha256=rUtQ_9GD0OyLPlb-2uWVdfE87hzudMRmsW-tS-0DK-0,11340
233
+ mistralai-1.0.0rc2.dist-info/METADATA,sha256=UzKJlryKpo8FdiGnzHTNO2BNZlKYNBncoPv5YAMuA3g,19127
234
+ mistralai-1.0.0rc2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
235
+ mistralai-1.0.0rc2.dist-info/RECORD,,
@@ -2,10 +2,9 @@
2
2
 
3
3
  from .sdkconfiguration import SDKConfiguration
4
4
  import httpx
5
- from mistralai_azure import models
5
+ from mistralai_azure import models, utils
6
6
  from mistralai_azure._hooks import AfterErrorContext, AfterSuccessContext, BeforeRequestContext
7
- import mistralai_azure.utils as utils
8
- from mistralai_azure.utils import RetryConfig, SerializedRequestBody
7
+ from mistralai_azure.utils import RetryConfig, SerializedRequestBody, get_body_content
9
8
  from typing import Callable, List, Optional, Tuple
10
9
 
11
10
  class BaseSDK:
@@ -117,6 +116,7 @@ class BaseSDK:
117
116
  retry_config: Optional[Tuple[RetryConfig, List[str]]] = None,
118
117
  ) -> httpx.Response:
119
118
  client = self.sdk_configuration.client
119
+ logger = self.sdk_configuration.debug_logger
120
120
 
121
121
  def do():
122
122
  http_res = None
@@ -124,26 +124,45 @@ class BaseSDK:
124
124
  req = self.sdk_configuration.get_hooks().before_request(
125
125
  BeforeRequestContext(hook_ctx), request
126
126
  )
127
+ logger.debug(
128
+ "Request:\nMethod: %s\nURL: %s\nHeaders: %s\nBody: %s",
129
+ req.method,
130
+ req.url,
131
+ req.headers,
132
+ get_body_content(req)
133
+ )
127
134
  http_res = client.send(req, stream=stream)
128
135
  except Exception as e:
129
136
  _, e = self.sdk_configuration.get_hooks().after_error(
130
137
  AfterErrorContext(hook_ctx), None, e
131
138
  )
132
139
  if e is not None:
140
+ logger.debug("Request Exception", exc_info=True)
133
141
  raise e
134
142
 
135
143
  if http_res is None:
144
+ logger.debug("Raising no response SDK error")
136
145
  raise models.SDKError("No response received")
137
146
 
147
+ logger.debug(
148
+ "Response:\nStatus Code: %s\nURL: %s\nHeaders: %s\nBody: %s",
149
+ http_res.status_code,
150
+ http_res.url,
151
+ http_res.headers,
152
+ "<streaming response>" if stream else http_res.text
153
+ )
154
+
138
155
  if utils.match_status_codes(error_status_codes, http_res.status_code):
139
156
  result, err = self.sdk_configuration.get_hooks().after_error(
140
157
  AfterErrorContext(hook_ctx), http_res, None
141
158
  )
142
159
  if err is not None:
160
+ logger.debug("Request Exception", exc_info=True)
143
161
  raise err
144
162
  if result is not None:
145
163
  http_res = result
146
164
  else:
165
+ logger.debug("Raising unexpected SDK error")
147
166
  raise models.SDKError("Unexpected error occurred")
148
167
 
149
168
  return http_res
@@ -169,33 +188,52 @@ class BaseSDK:
169
188
  retry_config: Optional[Tuple[RetryConfig, List[str]]] = None,
170
189
  ) -> httpx.Response:
171
190
  client = self.sdk_configuration.async_client
172
-
191
+ logger = self.sdk_configuration.debug_logger
173
192
  async def do():
174
193
  http_res = None
175
194
  try:
176
195
  req = self.sdk_configuration.get_hooks().before_request(
177
196
  BeforeRequestContext(hook_ctx), request
178
197
  )
198
+ logger.debug(
199
+ "Request:\nMethod: %s\nURL: %s\nHeaders: %s\nBody: %s",
200
+ req.method,
201
+ req.url,
202
+ req.headers,
203
+ get_body_content(req)
204
+ )
179
205
  http_res = await client.send(req, stream=stream)
180
206
  except Exception as e:
181
207
  _, e = self.sdk_configuration.get_hooks().after_error(
182
208
  AfterErrorContext(hook_ctx), None, e
183
209
  )
184
210
  if e is not None:
211
+ logger.debug("Request Exception", exc_info=True)
185
212
  raise e
186
213
 
187
214
  if http_res is None:
215
+ logger.debug("Raising no response SDK error")
188
216
  raise models.SDKError("No response received")
189
217
 
218
+ logger.debug(
219
+ "Response:\nStatus Code: %s\nURL: %s\nHeaders: %s\nBody: %s",
220
+ http_res.status_code,
221
+ http_res.url,
222
+ http_res.headers,
223
+ "<streaming response>" if stream else http_res.text
224
+ )
225
+
190
226
  if utils.match_status_codes(error_status_codes, http_res.status_code):
191
227
  result, err = self.sdk_configuration.get_hooks().after_error(
192
228
  AfterErrorContext(hook_ctx), http_res, None
193
229
  )
194
230
  if err is not None:
231
+ logger.debug("Request Exception", exc_info=True)
195
232
  raise err
196
233
  if result is not None:
197
234
  http_res = result
198
235
  else:
236
+ logger.debug("Raising unexpected SDK error")
199
237
  raise models.SDKError("Unexpected error occurred")
200
238
 
201
239
  return http_res
mistralai_azure/chat.py CHANGED
@@ -1,10 +1,9 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from .basesdk import BaseSDK
4
- from mistralai_azure import models
4
+ from mistralai_azure import models, utils
5
5
  from mistralai_azure._hooks import HookContext
6
6
  from mistralai_azure.types import OptionalNullable, UNSET
7
- import mistralai_azure.utils as utils
8
7
  from mistralai_azure.utils import eventstreaming
9
8
  from typing import Any, AsyncGenerator, Generator, List, Optional, Union
10
9
 
@@ -25,8 +24,8 @@ class Chat(BaseSDK):
25
24
  random_seed: OptionalNullable[int] = UNSET,
26
25
  response_format: Optional[Union[models.ResponseFormat, models.ResponseFormatTypedDict]] = None,
27
26
  tools: OptionalNullable[Union[List[models.Tool], List[models.ToolTypedDict]]] = UNSET,
28
- safe_prompt: Optional[bool] = False,
29
27
  tool_choice: Optional[models.ToolChoice] = "auto",
28
+ safe_prompt: Optional[bool] = False,
30
29
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
31
30
  server_url: Optional[str] = None,
32
31
  timeout_ms: Optional[int] = None,
@@ -46,8 +45,8 @@ class Chat(BaseSDK):
46
45
  :param random_seed: The seed to use for random sampling. If set, different calls will generate deterministic results.
47
46
  :param response_format:
48
47
  :param tools:
49
- :param safe_prompt: Whether to inject a safety prompt before all conversations.
50
48
  :param tool_choice:
49
+ :param safe_prompt: Whether to inject a safety prompt before all conversations.
51
50
  :param retries: Override the default retry configuration for this method
52
51
  :param server_url: Override the default server URL for this method
53
52
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -72,8 +71,8 @@ class Chat(BaseSDK):
72
71
  messages=utils.get_pydantic_model(messages, List[models.Messages]),
73
72
  response_format=utils.get_pydantic_model(response_format, Optional[models.ResponseFormat]),
74
73
  tools=utils.get_pydantic_model(tools, OptionalNullable[List[models.Tool]]),
75
- safe_prompt=safe_prompt,
76
74
  tool_choice=tool_choice,
75
+ safe_prompt=safe_prompt,
77
76
  )
78
77
 
79
78
  req = self.build_request(
@@ -141,8 +140,8 @@ class Chat(BaseSDK):
141
140
  random_seed: OptionalNullable[int] = UNSET,
142
141
  response_format: Optional[Union[models.ResponseFormat, models.ResponseFormatTypedDict]] = None,
143
142
  tools: OptionalNullable[Union[List[models.Tool], List[models.ToolTypedDict]]] = UNSET,
144
- safe_prompt: Optional[bool] = False,
145
143
  tool_choice: Optional[models.ToolChoice] = "auto",
144
+ safe_prompt: Optional[bool] = False,
146
145
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
147
146
  server_url: Optional[str] = None,
148
147
  timeout_ms: Optional[int] = None,
@@ -162,8 +161,8 @@ class Chat(BaseSDK):
162
161
  :param random_seed: The seed to use for random sampling. If set, different calls will generate deterministic results.
163
162
  :param response_format:
164
163
  :param tools:
165
- :param safe_prompt: Whether to inject a safety prompt before all conversations.
166
164
  :param tool_choice:
165
+ :param safe_prompt: Whether to inject a safety prompt before all conversations.
167
166
  :param retries: Override the default retry configuration for this method
168
167
  :param server_url: Override the default server URL for this method
169
168
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -188,8 +187,8 @@ class Chat(BaseSDK):
188
187
  messages=utils.get_pydantic_model(messages, List[models.Messages]),
189
188
  response_format=utils.get_pydantic_model(response_format, Optional[models.ResponseFormat]),
190
189
  tools=utils.get_pydantic_model(tools, OptionalNullable[List[models.Tool]]),
191
- safe_prompt=safe_prompt,
192
190
  tool_choice=tool_choice,
191
+ safe_prompt=safe_prompt,
193
192
  )
194
193
 
195
194
  req = self.build_request(
@@ -244,7 +243,7 @@ class Chat(BaseSDK):
244
243
 
245
244
 
246
245
 
247
- def create(
246
+ def complete(
248
247
  self, *,
249
248
  messages: Union[List[models.ChatCompletionRequestMessages], List[models.ChatCompletionRequestMessagesTypedDict]],
250
249
  model: OptionalNullable[str] = "azureai",
@@ -257,16 +256,14 @@ class Chat(BaseSDK):
257
256
  random_seed: OptionalNullable[int] = UNSET,
258
257
  response_format: Optional[Union[models.ResponseFormat, models.ResponseFormatTypedDict]] = None,
259
258
  tools: OptionalNullable[Union[List[models.Tool], List[models.ToolTypedDict]]] = UNSET,
260
- safe_prompt: Optional[bool] = False,
261
259
  tool_choice: Optional[models.ChatCompletionRequestToolChoice] = "auto",
260
+ safe_prompt: Optional[bool] = False,
262
261
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
263
262
  server_url: Optional[str] = None,
264
263
  timeout_ms: Optional[int] = None,
265
264
  ) -> Optional[models.ChatCompletionResponse]:
266
265
  r"""Chat Completion
267
266
 
268
- Chat Completion
269
-
270
267
  :param messages: The prompt(s) to generate completions for, encoded as a list of dict with role and content.
271
268
  :param model: The ID of the model to use for this request.
272
269
  :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.
@@ -278,8 +275,8 @@ class Chat(BaseSDK):
278
275
  :param random_seed: The seed to use for random sampling. If set, different calls will generate deterministic results.
279
276
  :param response_format:
280
277
  :param tools:
281
- :param safe_prompt: Whether to inject a safety prompt before all conversations.
282
278
  :param tool_choice:
279
+ :param safe_prompt: Whether to inject a safety prompt before all conversations.
283
280
  :param retries: Override the default retry configuration for this method
284
281
  :param server_url: Override the default server URL for this method
285
282
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -304,8 +301,8 @@ class Chat(BaseSDK):
304
301
  messages=utils.get_pydantic_model(messages, List[models.ChatCompletionRequestMessages]),
305
302
  response_format=utils.get_pydantic_model(response_format, Optional[models.ResponseFormat]),
306
303
  tools=utils.get_pydantic_model(tools, OptionalNullable[List[models.Tool]]),
307
- safe_prompt=safe_prompt,
308
304
  tool_choice=tool_choice,
305
+ safe_prompt=safe_prompt,
309
306
  )
310
307
 
311
308
  req = self.build_request(
@@ -359,7 +356,7 @@ class Chat(BaseSDK):
359
356
 
360
357
 
361
358
 
362
- async def create_async(
359
+ async def complete_async(
363
360
  self, *,
364
361
  messages: Union[List[models.ChatCompletionRequestMessages], List[models.ChatCompletionRequestMessagesTypedDict]],
365
362
  model: OptionalNullable[str] = "azureai",
@@ -372,16 +369,14 @@ class Chat(BaseSDK):
372
369
  random_seed: OptionalNullable[int] = UNSET,
373
370
  response_format: Optional[Union[models.ResponseFormat, models.ResponseFormatTypedDict]] = None,
374
371
  tools: OptionalNullable[Union[List[models.Tool], List[models.ToolTypedDict]]] = UNSET,
375
- safe_prompt: Optional[bool] = False,
376
372
  tool_choice: Optional[models.ChatCompletionRequestToolChoice] = "auto",
373
+ safe_prompt: Optional[bool] = False,
377
374
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
378
375
  server_url: Optional[str] = None,
379
376
  timeout_ms: Optional[int] = None,
380
377
  ) -> Optional[models.ChatCompletionResponse]:
381
378
  r"""Chat Completion
382
379
 
383
- Chat Completion
384
-
385
380
  :param messages: The prompt(s) to generate completions for, encoded as a list of dict with role and content.
386
381
  :param model: The ID of the model to use for this request.
387
382
  :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.
@@ -393,8 +388,8 @@ class Chat(BaseSDK):
393
388
  :param random_seed: The seed to use for random sampling. If set, different calls will generate deterministic results.
394
389
  :param response_format:
395
390
  :param tools:
396
- :param safe_prompt: Whether to inject a safety prompt before all conversations.
397
391
  :param tool_choice:
392
+ :param safe_prompt: Whether to inject a safety prompt before all conversations.
398
393
  :param retries: Override the default retry configuration for this method
399
394
  :param server_url: Override the default server URL for this method
400
395
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -419,8 +414,8 @@ class Chat(BaseSDK):
419
414
  messages=utils.get_pydantic_model(messages, List[models.ChatCompletionRequestMessages]),
420
415
  response_format=utils.get_pydantic_model(response_format, Optional[models.ResponseFormat]),
421
416
  tools=utils.get_pydantic_model(tools, OptionalNullable[List[models.Tool]]),
422
- safe_prompt=safe_prompt,
423
417
  tool_choice=tool_choice,
418
+ safe_prompt=safe_prompt,
424
419
  )
425
420
 
426
421
  req = self.build_request(