mistralai 1.2.1__py3-none-any.whl → 1.2.2__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/_version.py CHANGED
@@ -3,7 +3,7 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "mistralai"
6
- __version__: str = "1.2.1"
6
+ __version__: str = "1.2.2"
7
7
 
8
8
  try:
9
9
  if __package__ is not None:
mistralai/agents.py CHANGED
@@ -40,8 +40,8 @@ class Agents(BaseSDK):
40
40
  models.AgentsCompletionRequestToolChoiceTypedDict,
41
41
  ]
42
42
  ] = None,
43
- presence_penalty: Optional[float] = 0,
44
- frequency_penalty: Optional[float] = 0,
43
+ presence_penalty: Optional[float] = None,
44
+ frequency_penalty: Optional[float] = None,
45
45
  n: OptionalNullable[int] = UNSET,
46
46
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
47
47
  server_url: Optional[str] = None,
@@ -185,8 +185,8 @@ class Agents(BaseSDK):
185
185
  models.AgentsCompletionRequestToolChoiceTypedDict,
186
186
  ]
187
187
  ] = None,
188
- presence_penalty: Optional[float] = 0,
189
- frequency_penalty: Optional[float] = 0,
188
+ presence_penalty: Optional[float] = None,
189
+ frequency_penalty: Optional[float] = None,
190
190
  n: OptionalNullable[int] = UNSET,
191
191
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
192
192
  server_url: Optional[str] = None,
@@ -330,8 +330,8 @@ class Agents(BaseSDK):
330
330
  models.AgentsCompletionStreamRequestToolChoiceTypedDict,
331
331
  ]
332
332
  ] = None,
333
- presence_penalty: Optional[float] = 0,
334
- frequency_penalty: Optional[float] = 0,
333
+ presence_penalty: Optional[float] = None,
334
+ frequency_penalty: Optional[float] = None,
335
335
  n: OptionalNullable[int] = UNSET,
336
336
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
337
337
  server_url: Optional[str] = None,
@@ -481,8 +481,8 @@ class Agents(BaseSDK):
481
481
  models.AgentsCompletionStreamRequestToolChoiceTypedDict,
482
482
  ]
483
483
  ] = None,
484
- presence_penalty: Optional[float] = 0,
485
- frequency_penalty: Optional[float] = 0,
484
+ presence_penalty: Optional[float] = None,
485
+ frequency_penalty: Optional[float] = None,
486
486
  n: OptionalNullable[int] = UNSET,
487
487
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
488
488
  server_url: Optional[str] = None,
mistralai/chat.py CHANGED
@@ -34,8 +34,8 @@ class Chat(BaseSDK):
34
34
  models.ChatCompletionRequestToolChoiceTypedDict,
35
35
  ]
36
36
  ] = None,
37
- presence_penalty: Optional[float] = 0,
38
- frequency_penalty: Optional[float] = 0,
37
+ presence_penalty: Optional[float] = None,
38
+ frequency_penalty: Optional[float] = None,
39
39
  n: OptionalNullable[int] = UNSET,
40
40
  safe_prompt: Optional[bool] = False,
41
41
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
@@ -178,8 +178,8 @@ class Chat(BaseSDK):
178
178
  models.ChatCompletionRequestToolChoiceTypedDict,
179
179
  ]
180
180
  ] = None,
181
- presence_penalty: Optional[float] = 0,
182
- frequency_penalty: Optional[float] = 0,
181
+ presence_penalty: Optional[float] = None,
182
+ frequency_penalty: Optional[float] = None,
183
183
  n: OptionalNullable[int] = UNSET,
184
184
  safe_prompt: Optional[bool] = False,
185
185
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
@@ -330,8 +330,8 @@ class Chat(BaseSDK):
330
330
  models.ChatCompletionStreamRequestToolChoiceTypedDict,
331
331
  ]
332
332
  ] = None,
333
- presence_penalty: Optional[float] = 0,
334
- frequency_penalty: Optional[float] = 0,
333
+ presence_penalty: Optional[float] = None,
334
+ frequency_penalty: Optional[float] = None,
335
335
  n: OptionalNullable[int] = UNSET,
336
336
  safe_prompt: Optional[bool] = False,
337
337
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
@@ -490,8 +490,8 @@ class Chat(BaseSDK):
490
490
  models.ChatCompletionStreamRequestToolChoiceTypedDict,
491
491
  ]
492
492
  ] = None,
493
- presence_penalty: Optional[float] = 0,
494
- frequency_penalty: Optional[float] = 0,
493
+ presence_penalty: Optional[float] = None,
494
+ frequency_penalty: Optional[float] = None,
495
495
  n: OptionalNullable[int] = UNSET,
496
496
  safe_prompt: Optional[bool] = False,
497
497
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
@@ -98,10 +98,10 @@ class AgentsCompletionRequest(BaseModel):
98
98
 
99
99
  tool_choice: Optional[AgentsCompletionRequestToolChoice] = None
100
100
 
101
- presence_penalty: Optional[float] = 0
101
+ presence_penalty: Optional[float] = None
102
102
  r"""presence_penalty determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative."""
103
103
 
104
- frequency_penalty: Optional[float] = 0
104
+ frequency_penalty: Optional[float] = None
105
105
  r"""frequency_penalty penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition."""
106
106
 
107
107
  n: OptionalNullable[int] = UNSET
@@ -98,10 +98,10 @@ class AgentsCompletionStreamRequest(BaseModel):
98
98
 
99
99
  tool_choice: Optional[AgentsCompletionStreamRequestToolChoice] = None
100
100
 
101
- presence_penalty: Optional[float] = 0
101
+ presence_penalty: Optional[float] = None
102
102
  r"""presence_penalty determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative."""
103
103
 
104
- frequency_penalty: Optional[float] = 0
104
+ frequency_penalty: Optional[float] = None
105
105
  r"""frequency_penalty penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition."""
106
106
 
107
107
  n: OptionalNullable[int] = UNSET
@@ -110,10 +110,10 @@ class ChatCompletionRequest(BaseModel):
110
110
 
111
111
  tool_choice: Optional[ChatCompletionRequestToolChoice] = None
112
112
 
113
- presence_penalty: Optional[float] = 0
113
+ presence_penalty: Optional[float] = None
114
114
  r"""presence_penalty determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative."""
115
115
 
116
- frequency_penalty: Optional[float] = 0
116
+ frequency_penalty: Optional[float] = None
117
117
  r"""frequency_penalty penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition."""
118
118
 
119
119
  n: OptionalNullable[int] = UNSET
@@ -110,10 +110,10 @@ class ChatCompletionStreamRequest(BaseModel):
110
110
 
111
111
  tool_choice: Optional[ChatCompletionStreamRequestToolChoice] = None
112
112
 
113
- presence_penalty: Optional[float] = 0
113
+ presence_penalty: Optional[float] = None
114
114
  r"""presence_penalty determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative."""
115
115
 
116
- frequency_penalty: Optional[float] = 0
116
+ frequency_penalty: Optional[float] = None
117
117
  r"""frequency_penalty penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition."""
118
118
 
119
119
  n: OptionalNullable[int] = UNSET
@@ -28,9 +28,9 @@ class SDKConfiguration:
28
28
  server: Optional[str] = ""
29
29
  language: str = "python"
30
30
  openapi_doc_version: str = "0.0.2"
31
- sdk_version: str = "1.2.1"
32
- gen_version: str = "2.452.0"
33
- user_agent: str = "speakeasy-sdk/python 1.2.1 2.452.0 0.0.2 mistralai"
31
+ sdk_version: str = "1.2.2"
32
+ gen_version: str = "2.457.2"
33
+ user_agent: str = "speakeasy-sdk/python 1.2.2 2.457.2 0.0.2 mistralai"
34
34
  retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET)
35
35
  timeout_ms: Optional[int] = None
36
36
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mistralai
3
- Version: 1.2.1
3
+ Version: 1.2.2
4
4
  Summary: Python Client SDK for the Mistral AI API.
5
5
  Home-page: https://github.com/mistralai/client-python.git
6
6
  Author: Mistral
@@ -582,10 +582,10 @@ By default, an API error will raise a models.SDKError exception, which has the f
582
582
 
583
583
  When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `list_async` method may raise the following exceptions:
584
584
 
585
- | Error Type | Status Code | Content Type |
586
- | -------------------------- | -------------------------- | -------------------------- |
587
- | models.HTTPValidationError | 422 | application/json |
588
- | models.SDKError | 4XX, 5XX | \*/\* |
585
+ | Error Type | Status Code | Content Type |
586
+ | -------------------------- | ----------- | ---------------- |
587
+ | models.HTTPValidationError | 422 | application/json |
588
+ | models.SDKError | 4XX, 5XX | \*/\* |
589
589
 
590
590
  ### Example
591
591
 
@@ -621,9 +621,9 @@ except models.SDKError as e:
621
621
 
622
622
  You can override the default server globally by passing a server name to the `server: str` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the names associated with the available servers:
623
623
 
624
- | Name | Server | Variables |
625
- | ----- | ------ | --------- |
626
- | `eu` | `https://api.mistral.ai` | None |
624
+ | Name | Server |
625
+ | ---- | ------------------------ |
626
+ | `eu` | `https://api.mistral.ai` |
627
627
 
628
628
  #### Example
629
629
 
@@ -644,7 +644,6 @@ if res is not None:
644
644
 
645
645
  ```
646
646
 
647
-
648
647
  ### Override Server URL Per-Client
649
648
 
650
649
  The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
@@ -754,9 +753,9 @@ s = Mistral(async_client=CustomClient(httpx.AsyncClient()))
754
753
 
755
754
  This SDK supports the following security scheme globally:
756
755
 
757
- | Name | Type | Scheme | Environment Variable |
758
- | -------------------- | -------------------- | -------------------- | -------------------- |
759
- | `api_key` | http | HTTP Bearer | `MISTRAL_API_KEY` |
756
+ | Name | Type | Scheme | Environment Variable |
757
+ | --------- | ---- | ----------- | -------------------- |
758
+ | `api_key` | http | HTTP Bearer | `MISTRAL_API_KEY` |
760
759
 
761
760
  To authenticate with the API the `api_key` parameter must be set when initializing the SDK client instance. For example:
762
761
  ```python
@@ -6,14 +6,14 @@ mistralai_azure/_hooks/sdkhooks.py,sha256=urOhVMYX_n5KgMoNDNmGs4fsgUWoeSG6_GarhP
6
6
  mistralai_azure/_hooks/types.py,sha256=ealwk4q-4oIauxj5Nyx9xmu9vX0nm4vcDALDy4qydgE,2576
7
7
  mistralai_azure/_version.py,sha256=xy-G9WR4FHliLcNY_yQRTHXr2SIawBzvaUAIakk182Y,319
8
8
  mistralai_azure/basesdk.py,sha256=ZtCvahXCyuWen9Jk7BC8BoeChQZCb04JAA6oG-0SOaE,11218
9
- mistralai_azure/chat.py,sha256=02nx7whKuDcgyifAECHW_SfRwsHmIYCMQ0GmZEvOh8E,31933
9
+ mistralai_azure/chat.py,sha256=6nuvRX1Gf3HTVPCHN31RMsL1Vx_jgpu1Q6XmhaJ9r9M,31957
10
10
  mistralai_azure/httpclient.py,sha256=S_ItzEchFX-znIdHD6i5-a91H0Dn5QxpT0KhucdHBbI,2595
11
11
  mistralai_azure/models/__init__.py,sha256=HDWxNFXEXr4cCDrJ_QjDGEwNlf7CrneyoCd2Hrha8GI,5172
12
12
  mistralai_azure/models/assistantmessage.py,sha256=B8Q9_bgiIKne8sJzvWqiff2XehYkOBuBLWuGFKr_s1E,2115
13
13
  mistralai_azure/models/chatcompletionchoice.py,sha256=-JE13p36mWnyc3zxnHLJp1Q43QVgj5QRurnZslXdJc0,935
14
- mistralai_azure/models/chatcompletionrequest.py,sha256=FpDvRxVWmn-CknMlQgW0tJFpbTrRMNge-vNqzgq19bE,9225
14
+ mistralai_azure/models/chatcompletionrequest.py,sha256=VrjROK0FypeHKfq-ppp1SPNXdH4Ut70BuKQisFV_VYQ,9231
15
15
  mistralai_azure/models/chatcompletionresponse.py,sha256=sPmb4kih2DpE3r8Xem_HYj6o3E3i-6PyVROvm7Ysrfs,798
16
- mistralai_azure/models/chatcompletionstreamrequest.py,sha256=Ew06jYYnJ06-WekJWdDlUiUPazaoN-nfs87qZ66AJow,8430
16
+ mistralai_azure/models/chatcompletionstreamrequest.py,sha256=XugmBCTRm2IB183Wrz4de1DlpZIKdltGEnEnLCIushg,8436
17
17
  mistralai_azure/models/completionchunk.py,sha256=yoA0tYoyK5RChQPbEvYUi1BVmuyH-QT5IYwEYJNtsXM,877
18
18
  mistralai_azure/models/completionevent.py,sha256=8wkRAMMpDFfhFSm7OEmli80lsK98Tir7R6IxW-KxeuE,405
19
19
  mistralai_azure/models/completionresponsestreamchoice.py,sha256=c6BncIEgKnK4HUPCeIhLfVc3RgxXKNcxp2JrlObUu9E,1834
@@ -40,7 +40,7 @@ mistralai_azure/models/usermessage.py,sha256=1nU5Hc6Mv3STaopLTcIwNMUACRbJh6kACUR
40
40
  mistralai_azure/models/validationerror.py,sha256=du2NEF6bMVx_b10g741vkbUE1RIQnO4y4xnukvAsbAY,464
41
41
  mistralai_azure/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
42
42
  mistralai_azure/sdk.py,sha256=ZVPE9lFzswEMlHw_kiG_j5vzoJ5BwEYlVLCYGmYDjpA,3936
43
- mistralai_azure/sdkconfiguration.py,sha256=BKiDmt_eYtFno8qvvolwJrN5q75XCfu_vONVMwPieWI,1706
43
+ mistralai_azure/sdkconfiguration.py,sha256=92hCh3g6MWBx0ojZN6ox1oaiUrWoSN3gC3muJuDd7NE,1706
44
44
  mistralai_azure/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
45
45
  mistralai_azure/types/basemodel.py,sha256=PexI39iKiOkIlobB8Ueo0yn8PLHp6_wb-WO-zelNDZY,1170
46
46
  mistralai_azure/utils/__init__.py,sha256=1x4KfQf2ULtO_aOk_M2RMCimoz8jgcW0RZd-f34KDAs,2365
@@ -66,15 +66,15 @@ mistralai_gcp/_hooks/sdkhooks.py,sha256=nr_ACx8Rn5xvTkmZP6_EI-f_0hw8wMyPqPHNvjAW
66
66
  mistralai_gcp/_hooks/types.py,sha256=DJD5-sKZfAj0tKgSU5w0YNuJE_C8PDa5n1V27T_7SmE,2574
67
67
  mistralai_gcp/_version.py,sha256=I7PJyyd46iSOwCYkLhy2IMPfVA9cjFyjtLHbN30EInI,317
68
68
  mistralai_gcp/basesdk.py,sha256=cJcOSsYxfNznSOMrDlh0z06_e8HXnlIFCfIYm0yOPlc,11212
69
- mistralai_gcp/chat.py,sha256=Z3rgkISlsDu4wMxckZnEN0k4xx55RzRGNPHIHZqBH9s,31849
69
+ mistralai_gcp/chat.py,sha256=DXLTCQ159R7hlcMeBN63w3erZv__k36aVEsj6MnsZVg,31873
70
70
  mistralai_gcp/fim.py,sha256=qVr3jNIbWYXTYEZfj9GTKTAaLG2z7bGCADXTiyNiswk,25395
71
71
  mistralai_gcp/httpclient.py,sha256=S_ItzEchFX-znIdHD6i5-a91H0Dn5QxpT0KhucdHBbI,2595
72
72
  mistralai_gcp/models/__init__.py,sha256=UGlyP2Ef3fQH_8IiyHuc3kgD46Ykp-zBzH5TsorMd08,5994
73
73
  mistralai_gcp/models/assistantmessage.py,sha256=oESoVA3BJZMPmj8ojdPi-wqb0WzXCCToHa9cO4qzAlY,2113
74
74
  mistralai_gcp/models/chatcompletionchoice.py,sha256=1t3Sb_IICDH7gyyEMX-WuxHnSVV-PZTLfpUjkUVp3do,931
75
- mistralai_gcp/models/chatcompletionrequest.py,sha256=d92uVLVJTWQqT5CUXPPmAkyAziveWNsG0QsiRsi-olU,9272
75
+ mistralai_gcp/models/chatcompletionrequest.py,sha256=yKWizYia91JDpCm6UwRATlgmplrN7IeZM_tJdfEV_8Q,9278
76
76
  mistralai_gcp/models/chatcompletionresponse.py,sha256=Ctvqs2ZjvWTycozqXn-fvucgqOn0dm4cOjUZ2BjD4BM,796
77
- mistralai_gcp/models/chatcompletionstreamrequest.py,sha256=ywWENXEvoYeOWe7qkQrQ2rM_UF1ZxQo58NDb6qJqF1U,8477
77
+ mistralai_gcp/models/chatcompletionstreamrequest.py,sha256=UNQ9ioJKTNS2xqXkiMhORcW0sKXw8IuZ8kZMNaNWGEw,8483
78
78
  mistralai_gcp/models/completionchunk.py,sha256=0DBDcrqVWrUskHA3hHYtuWk2E4JcJy_zc_LiGyLHBlA,875
79
79
  mistralai_gcp/models/completionevent.py,sha256=cP7Q5dN4Z46FQTlyCYeIwvqt7pgN-22jNPD2bi7Eals,403
80
80
  mistralai_gcp/models/completionresponsestreamchoice.py,sha256=MdZaPMSqFbIbenEAdPyYMFemsFSZdPglEEt5ssZ3x7E,1830
@@ -104,7 +104,7 @@ mistralai_gcp/models/usermessage.py,sha256=Wv_yQOP6K81KZZ13Jn0N4i7nM8qh3yuPO0t0p
104
104
  mistralai_gcp/models/validationerror.py,sha256=nPH4v5nEe7Vy-l4fYft3vvfb67yhGYHhoAUFDkupEZg,462
105
105
  mistralai_gcp/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
106
106
  mistralai_gcp/sdk.py,sha256=qmgp6E5LTBMnNN3mc1aDzmnHnvRQNTR7JEJgjBkYGWg,6730
107
- mistralai_gcp/sdkconfiguration.py,sha256=tl3dHaj9Bflp_NXy8vZUMVOyeo1FjFRccgYcJKOM0rk,1700
107
+ mistralai_gcp/sdkconfiguration.py,sha256=3IS69cQcgicnG032IIM6FIFzZqfHY3d96ru6f5y651k,1700
108
108
  mistralai_gcp/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
109
109
  mistralai_gcp/types/basemodel.py,sha256=PexI39iKiOkIlobB8Ueo0yn8PLHp6_wb-WO-zelNDZY,1170
110
110
  mistralai_gcp/utils/__init__.py,sha256=1x4KfQf2ULtO_aOk_M2RMCimoz8jgcW0RZd-f34KDAs,2365
@@ -130,12 +130,12 @@ mistralai/_hooks/deprecation_warning.py,sha256=eyEOf7-o9uqqNWJnufD2RXp3dYrGV4in9
130
130
  mistralai/_hooks/registration.py,sha256=ML0W-XbE4WYdJ4eGks_XxF2aLCJTaIWjQATFGzFwvyU,861
131
131
  mistralai/_hooks/sdkhooks.py,sha256=s-orhdvnV89TmI3QiPC2LWQtYeM9RrsG1CTll-fYZmQ,2559
132
132
  mistralai/_hooks/types.py,sha256=vUkTVk_TSaK10aEj368KYWvnd4T5EsawixMcTro_UHc,2570
133
- mistralai/_version.py,sha256=j99Wka-bmcP4xPwygSV8i6CYX38lJNUdWGnDWwKDOFM,313
134
- mistralai/agents.py,sha256=EYdKVTBsW4QeH6afr5CrWFbEL6K1wzCeZw2l5DeBdTw,28771
133
+ mistralai/_version.py,sha256=mAhPru1qHTLyCLquxNR7dXvQCNDz1KmngUDdg-1T0dQ,313
134
+ mistralai/agents.py,sha256=62QnyHeUPmWtdBNCrq8MQEwpO2CtQMRa5_8VCbWU588,28795
135
135
  mistralai/async_client.py,sha256=KUdYxIIqoD6L7vB0EGwUR6lQ0NK5iCTHjnLVR9CVcJY,355
136
136
  mistralai/basesdk.py,sha256=MQIeNInArcIcDYgSy67EDf77ykys9JwjTlnboqdpEJ8,11273
137
137
  mistralai/batch.py,sha256=YN4D0Duwrap9Ysmp_lRpADYp1Znay7THE_z8ERGvDds,501
138
- mistralai/chat.py,sha256=puG4bSmr3PfbDSLshK-ZSk2n-ABxcGK43Jzh6fiHMPw,32946
138
+ mistralai/chat.py,sha256=YrYMOr5iJETs_rxiGaSv0x8PKLdmYVjVqWYLbNuYbhM,32970
139
139
  mistralai/classifiers.py,sha256=pHLWNynj1iiWvuRTKs5lcUNphX9Ko1eQ2Yi6wcnxu2Q,15101
140
140
  mistralai/client.py,sha256=hrPg-LciKMKiascF0WbRRmqQyCv1lb2yDh6j-aaKVNo,509
141
141
  mistralai/embeddings.py,sha256=S-_VG_djZ1oZOd5fQj4pYu0Y4INlgatl10dfMg5cmZw,7839
@@ -146,8 +146,8 @@ mistralai/httpclient.py,sha256=S_ItzEchFX-znIdHD6i5-a91H0Dn5QxpT0KhucdHBbI,2595
146
146
  mistralai/jobs.py,sha256=0XLeyOblCdEIq6tw3zkZQG1GtdxidRNNnnpfxpH0g5E,39538
147
147
  mistralai/mistral_jobs.py,sha256=M3N-A7dYNY_Zobo1xhZtq3EK0j1I8Ny7hnoYmlajeMM,26949
148
148
  mistralai/models/__init__.py,sha256=0oCW3dCrphA-TGt3VeG0HY22kf3SZI7HvtNj6X8Ecc8,21139
149
- mistralai/models/agentscompletionrequest.py,sha256=Fis7_mGFEgcnkYPeJtVl0usPu3N8ShRSF5R38vy2gaY,7264
150
- mistralai/models/agentscompletionstreamrequest.py,sha256=J_1XCrk_n1FGodFWSk5rq6UUBc9s5ewCw_fqCGKIHGE,6685
149
+ mistralai/models/agentscompletionrequest.py,sha256=4enNzxh-QKJ53FNfCZbmS_2jPwEBC4Ys13eH0WkggH4,7270
150
+ mistralai/models/agentscompletionstreamrequest.py,sha256=F_SM-vg3oi_kGmSIf9EKpRt3rhoc4cdnJa634RnyOGc,6691
151
151
  mistralai/models/apiendpoint.py,sha256=9gAlIzzFW9XhYtsKY-wBwjjDslwl-XYQTUSBT-GuEGs,249
152
152
  mistralai/models/archiveftmodelout.py,sha256=dQx1J91UA06pjk2r7okhKMyBBePmHal7SPpn6Y_wEsY,820
153
153
  mistralai/models/assistantmessage.py,sha256=C_q6MFuEZafb9nP53iJdcF26jS-To_bhPKaz8lSq9T4,2084
@@ -159,9 +159,9 @@ mistralai/models/batchjobsout.py,sha256=Tq6bcb4_-fcW8C9AOnfJN8_sTy1NQhDn82qFOKdF
159
159
  mistralai/models/batchjobstatus.py,sha256=WlrIl5vWQGfLmgQA91_9CnCMKhWN6Lli458fT-4Asj4,294
160
160
  mistralai/models/chatclassificationrequest.py,sha256=H750wn8R8AANF8O6ifc__bsXAmv4JEHXzcplvZ3oR_U,2966
161
161
  mistralai/models/chatcompletionchoice.py,sha256=6iIFLZj2KYx0HFfzS3-E3sNXG6mPEAlDyXxIA5iZI_U,849
162
- mistralai/models/chatcompletionrequest.py,sha256=F2EaDVrJEwAQ-DOWOnS9YAdlEvyXHLls8i9d40wm6VA,9316
162
+ mistralai/models/chatcompletionrequest.py,sha256=TLvxIVwvGlDJlpNhad1loQyD48LJGCYb3AeYiRNOJmE,9322
163
163
  mistralai/models/chatcompletionresponse.py,sha256=sLE-_Bx9W5rH2-HE2fBWPVbJbmBWx_jSY2mJ3KBEn6w,792
164
- mistralai/models/chatcompletionstreamrequest.py,sha256=zNTndre3TjLRwfvR8EphqJjIuuJtRppx7rsDDJEWVrw,8905
164
+ mistralai/models/chatcompletionstreamrequest.py,sha256=uP3Y07Xzih6WzmvtkQaFMoOU-yFgkZf52ZudUcDDsUE,8911
165
165
  mistralai/models/checkpointout.py,sha256=A2kXS8-VT_1lbg3brifVjZD6tXdsET8vLqBm2a-yXgA,1109
166
166
  mistralai/models/classificationobject.py,sha256=JqaKo3AQD4t5X12ZnHjJ6K3Y6LXUn94uGdLJSoGr8vY,665
167
167
  mistralai/models/classificationrequest.py,sha256=Z5vpN9KbXm6a1dvAm25vOGY4ldHhWpvqOpQbJDZBRJg,1775
@@ -251,7 +251,7 @@ mistralai/models/wandbintegrationout.py,sha256=C0HpS8jJGnACs7eWnuIq0qJEroIUAbjkv
251
251
  mistralai/models_.py,sha256=Kj5U6ODBgKiKs93Miaq11dlV3MDvaz--nI8ucvZVark,39797
252
252
  mistralai/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
253
253
  mistralai/sdk.py,sha256=JBssVtpwLDcni_Q-IHNs62Zz8-ZxFldiOj3e42-Cb8k,5007
254
- mistralai/sdkconfiguration.py,sha256=BWK7DpPHmxpvpWIdtqbgi5_xBxDM3Ra-EOHCmd4IzhA,1688
254
+ mistralai/sdkconfiguration.py,sha256=iHOJ9SRgNMG7Z_Bl9y-fPk9TFWJru38eHCBT9W3dqJI,1688
255
255
  mistralai/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
256
256
  mistralai/types/basemodel.py,sha256=PexI39iKiOkIlobB8Ueo0yn8PLHp6_wb-WO-zelNDZY,1170
257
257
  mistralai/utils/__init__.py,sha256=8npwwHS-7zjVrbkzBGO-Uk4GkjC240PCleMbgPK1Axs,2418
@@ -270,7 +270,7 @@ mistralai/utils/serializers.py,sha256=BSJT7kBOkNBFyP7KREyMoe14JGbgijD1M6AXFMbdmc
270
270
  mistralai/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
271
271
  mistralai/utils/values.py,sha256=_89YXPTI_BU6SXJBzFR4pIzTCBPQW9tsOTN1jeBBIDs,3428
272
272
  mistralai/version.py,sha256=iosXhlXclBwBqlADFKEilxAC2wWKbtuBKi87AmPi7s8,196
273
- mistralai-1.2.1.dist-info/LICENSE,sha256=rUtQ_9GD0OyLPlb-2uWVdfE87hzudMRmsW-tS-0DK-0,11340
274
- mistralai-1.2.1.dist-info/METADATA,sha256=Rjjd8iWB2Dx-zQeu4cN-dgmQYeQNSpk3sxFlf_iYYOY,26504
275
- mistralai-1.2.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
276
- mistralai-1.2.1.dist-info/RECORD,,
273
+ mistralai-1.2.2.dist-info/LICENSE,sha256=rUtQ_9GD0OyLPlb-2uWVdfE87hzudMRmsW-tS-0DK-0,11340
274
+ mistralai-1.2.2.dist-info/METADATA,sha256=z0jXcLTzTc0HhjbFArDs_aqEzb5HDKd5wGY3q3nh5xI,26299
275
+ mistralai-1.2.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
276
+ mistralai-1.2.2.dist-info/RECORD,,
mistralai_azure/chat.py CHANGED
@@ -34,8 +34,8 @@ class Chat(BaseSDK):
34
34
  models.ChatCompletionStreamRequestToolChoiceTypedDict,
35
35
  ]
36
36
  ] = None,
37
- presence_penalty: Optional[float] = 0,
38
- frequency_penalty: Optional[float] = 0,
37
+ presence_penalty: Optional[float] = None,
38
+ frequency_penalty: Optional[float] = None,
39
39
  n: OptionalNullable[int] = UNSET,
40
40
  safe_prompt: Optional[bool] = False,
41
41
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
@@ -182,8 +182,8 @@ class Chat(BaseSDK):
182
182
  models.ChatCompletionStreamRequestToolChoiceTypedDict,
183
183
  ]
184
184
  ] = None,
185
- presence_penalty: Optional[float] = 0,
186
- frequency_penalty: Optional[float] = 0,
185
+ presence_penalty: Optional[float] = None,
186
+ frequency_penalty: Optional[float] = None,
187
187
  n: OptionalNullable[int] = UNSET,
188
188
  safe_prompt: Optional[bool] = False,
189
189
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
@@ -338,8 +338,8 @@ class Chat(BaseSDK):
338
338
  models.ChatCompletionRequestToolChoiceTypedDict,
339
339
  ]
340
340
  ] = None,
341
- presence_penalty: Optional[float] = 0,
342
- frequency_penalty: Optional[float] = 0,
341
+ presence_penalty: Optional[float] = None,
342
+ frequency_penalty: Optional[float] = None,
343
343
  n: OptionalNullable[int] = UNSET,
344
344
  safe_prompt: Optional[bool] = False,
345
345
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
@@ -490,8 +490,8 @@ class Chat(BaseSDK):
490
490
  models.ChatCompletionRequestToolChoiceTypedDict,
491
491
  ]
492
492
  ] = None,
493
- presence_penalty: Optional[float] = 0,
494
- frequency_penalty: Optional[float] = 0,
493
+ presence_penalty: Optional[float] = None,
494
+ frequency_penalty: Optional[float] = None,
495
495
  n: OptionalNullable[int] = UNSET,
496
496
  safe_prompt: Optional[bool] = False,
497
497
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
@@ -116,10 +116,10 @@ class ChatCompletionRequest(BaseModel):
116
116
 
117
117
  tool_choice: Optional[ChatCompletionRequestToolChoice] = None
118
118
 
119
- presence_penalty: Optional[float] = 0
119
+ presence_penalty: Optional[float] = None
120
120
  r"""presence_penalty determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative."""
121
121
 
122
- frequency_penalty: Optional[float] = 0
122
+ frequency_penalty: Optional[float] = None
123
123
  r"""frequency_penalty penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition."""
124
124
 
125
125
  n: OptionalNullable[int] = UNSET
@@ -116,10 +116,10 @@ class ChatCompletionStreamRequest(BaseModel):
116
116
 
117
117
  tool_choice: Optional[ChatCompletionStreamRequestToolChoice] = None
118
118
 
119
- presence_penalty: Optional[float] = 0
119
+ presence_penalty: Optional[float] = None
120
120
  r"""presence_penalty determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative."""
121
121
 
122
- frequency_penalty: Optional[float] = 0
122
+ frequency_penalty: Optional[float] = None
123
123
  r"""frequency_penalty penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition."""
124
124
 
125
125
  n: OptionalNullable[int] = UNSET
@@ -29,8 +29,8 @@ class SDKConfiguration:
29
29
  language: str = "python"
30
30
  openapi_doc_version: str = "0.0.2"
31
31
  sdk_version: str = "1.2.0"
32
- gen_version: str = "2.452.0"
33
- user_agent: str = "speakeasy-sdk/python 1.2.0 2.452.0 0.0.2 mistralai_azure"
32
+ gen_version: str = "2.457.2"
33
+ user_agent: str = "speakeasy-sdk/python 1.2.0 2.457.2 0.0.2 mistralai_azure"
34
34
  retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET)
35
35
  timeout_ms: Optional[int] = None
36
36
 
mistralai_gcp/chat.py CHANGED
@@ -34,8 +34,8 @@ class Chat(BaseSDK):
34
34
  models.ChatCompletionStreamRequestToolChoiceTypedDict,
35
35
  ]
36
36
  ] = None,
37
- presence_penalty: Optional[float] = 0,
38
- frequency_penalty: Optional[float] = 0,
37
+ presence_penalty: Optional[float] = None,
38
+ frequency_penalty: Optional[float] = None,
39
39
  n: OptionalNullable[int] = UNSET,
40
40
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
41
41
  server_url: Optional[str] = None,
@@ -179,8 +179,8 @@ class Chat(BaseSDK):
179
179
  models.ChatCompletionStreamRequestToolChoiceTypedDict,
180
180
  ]
181
181
  ] = None,
182
- presence_penalty: Optional[float] = 0,
183
- frequency_penalty: Optional[float] = 0,
182
+ presence_penalty: Optional[float] = None,
183
+ frequency_penalty: Optional[float] = None,
184
184
  n: OptionalNullable[int] = UNSET,
185
185
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
186
186
  server_url: Optional[str] = None,
@@ -332,8 +332,8 @@ class Chat(BaseSDK):
332
332
  models.ChatCompletionRequestToolChoiceTypedDict,
333
333
  ]
334
334
  ] = None,
335
- presence_penalty: Optional[float] = 0,
336
- frequency_penalty: Optional[float] = 0,
335
+ presence_penalty: Optional[float] = None,
336
+ frequency_penalty: Optional[float] = None,
337
337
  n: OptionalNullable[int] = UNSET,
338
338
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
339
339
  server_url: Optional[str] = None,
@@ -481,8 +481,8 @@ class Chat(BaseSDK):
481
481
  models.ChatCompletionRequestToolChoiceTypedDict,
482
482
  ]
483
483
  ] = None,
484
- presence_penalty: Optional[float] = 0,
485
- frequency_penalty: Optional[float] = 0,
484
+ presence_penalty: Optional[float] = None,
485
+ frequency_penalty: Optional[float] = None,
486
486
  n: OptionalNullable[int] = UNSET,
487
487
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
488
488
  server_url: Optional[str] = None,
@@ -114,10 +114,10 @@ class ChatCompletionRequest(BaseModel):
114
114
 
115
115
  tool_choice: Optional[ChatCompletionRequestToolChoice] = None
116
116
 
117
- presence_penalty: Optional[float] = 0
117
+ presence_penalty: Optional[float] = None
118
118
  r"""presence_penalty determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative."""
119
119
 
120
- frequency_penalty: Optional[float] = 0
120
+ frequency_penalty: Optional[float] = None
121
121
  r"""frequency_penalty penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition."""
122
122
 
123
123
  n: OptionalNullable[int] = UNSET
@@ -114,10 +114,10 @@ class ChatCompletionStreamRequest(BaseModel):
114
114
 
115
115
  tool_choice: Optional[ChatCompletionStreamRequestToolChoice] = None
116
116
 
117
- presence_penalty: Optional[float] = 0
117
+ presence_penalty: Optional[float] = None
118
118
  r"""presence_penalty determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative."""
119
119
 
120
- frequency_penalty: Optional[float] = 0
120
+ frequency_penalty: Optional[float] = None
121
121
  r"""frequency_penalty penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition."""
122
122
 
123
123
  n: OptionalNullable[int] = UNSET
@@ -29,8 +29,8 @@ class SDKConfiguration:
29
29
  language: str = "python"
30
30
  openapi_doc_version: str = "0.0.2"
31
31
  sdk_version: str = "1.2.0"
32
- gen_version: str = "2.452.0"
33
- user_agent: str = "speakeasy-sdk/python 1.2.0 2.452.0 0.0.2 mistralai-gcp"
32
+ gen_version: str = "2.457.2"
33
+ user_agent: str = "speakeasy-sdk/python 1.2.0 2.457.2 0.0.2 mistralai-gcp"
34
34
  retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET)
35
35
  timeout_ms: Optional[int] = None
36
36