mistralai 0.5.5a50__py3-none-any.whl → 1.0.0rc1__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/sdkconfiguration.py +3 -3
- {mistralai-0.5.5a50.dist-info → mistralai-1.0.0rc1.dist-info}/METADATA +14 -19
- {mistralai-0.5.5a50.dist-info → mistralai-1.0.0rc1.dist-info}/RECORD +7 -7
- mistralai_azure/sdkconfiguration.py +3 -3
- mistralai_gcp/sdkconfiguration.py +3 -3
- {mistralai-0.5.5a50.dist-info → mistralai-1.0.0rc1.dist-info}/LICENSE +0 -0
- {mistralai-0.5.5a50.dist-info → mistralai-1.0.0rc1.dist-info}/WHEEL +0 -0
mistralai/sdkconfiguration.py
CHANGED
|
@@ -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.0.
|
|
32
|
-
gen_version: str = "2.382.
|
|
33
|
-
user_agent: str = "speakeasy-sdk/python 1.0.
|
|
31
|
+
sdk_version: str = "1.0.0rc1"
|
|
32
|
+
gen_version: str = "2.382.2"
|
|
33
|
+
user_agent: str = "speakeasy-sdk/python 1.0.0rc1 2.382.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: 0.
|
|
3
|
+
Version: 1.0.0rc1
|
|
4
4
|
Summary: Python Client SDK for the Mistral AI API.
|
|
5
5
|
Author: Mistral
|
|
6
6
|
Requires-Python: >=3.8,<4.0
|
|
@@ -28,7 +28,6 @@ Description-Content-Type: text/markdown
|
|
|
28
28
|
|
|
29
29
|
## Migration warning
|
|
30
30
|
|
|
31
|
-
TODO: provide more details
|
|
32
31
|
This documentation is for Mistralai SDK v1. You can find more details on how to migrate from v0 to v1 [here](MIGRATION.md)
|
|
33
32
|
|
|
34
33
|
<!-- Start SDK Installation [installation] -->
|
|
@@ -151,13 +150,11 @@ asyncio.run(main())
|
|
|
151
150
|
|
|
152
151
|
### Azure AI
|
|
153
152
|
|
|
154
|
-
TODO ADJUST LINKS
|
|
155
|
-
|
|
156
153
|
**Prerequisites**
|
|
157
154
|
Before you begin, ensure you have `AZUREAI_ENDPOINT` and an `AZURE_API_KEY`. To obtain these, you will need to deploy Mistral on Azure AI.
|
|
158
155
|
See [instructions for deploying Mistral on Azure AI here](https://docs.mistral.ai/deployment/cloud/azure/).
|
|
159
156
|
|
|
160
|
-
Here's a basic example to get you started. You can also run [the example in the `examples` directory](/examples/azure
|
|
157
|
+
Here's a basic example to get you started. You can also run [the example in the `examples` directory](/examples/azure/).
|
|
161
158
|
|
|
162
159
|
```python
|
|
163
160
|
import asyncio
|
|
@@ -187,12 +184,10 @@ async def main() -> None:
|
|
|
187
184
|
|
|
188
185
|
asyncio.run(main())
|
|
189
186
|
```
|
|
190
|
-
The documentation for the Azure SDK is available [
|
|
187
|
+
The documentation for the Azure SDK is available [here](/packages/mistralai_azure/README.md).
|
|
191
188
|
|
|
192
189
|
### Google Cloud
|
|
193
190
|
|
|
194
|
-
TODO ADJUST LINKS
|
|
195
|
-
|
|
196
191
|
**Prerequisites**
|
|
197
192
|
|
|
198
193
|
Before you begin, you will need to create a Google Cloud project and enable the Mistral API. To do this, follow the instructions [here](https://docs.mistral.ai/deployment/cloud/google/).
|
|
@@ -239,7 +234,7 @@ async def main() -> None:
|
|
|
239
234
|
asyncio.run(main())
|
|
240
235
|
```
|
|
241
236
|
|
|
242
|
-
The documentation for the GCP SDK is available [
|
|
237
|
+
The documentation for the GCP SDK is available [here](/packages/mistralai_gcp/README.md).
|
|
243
238
|
|
|
244
239
|
|
|
245
240
|
<!-- Start Available Resources and Operations [operations] -->
|
|
@@ -402,10 +397,10 @@ if res is not None:
|
|
|
402
397
|
|
|
403
398
|
Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an error. If Error objects are specified in your OpenAPI Spec, the SDK will raise the appropriate Error type.
|
|
404
399
|
|
|
405
|
-
| Error Object | Status Code
|
|
406
|
-
| -------------------------- |
|
|
407
|
-
| models.HTTPValidationError | 422
|
|
408
|
-
| models.SDKError | 4xx-5xx
|
|
400
|
+
| Error Object | Status Code | Content Type |
|
|
401
|
+
| -------------------------- | ----------- | ---------------- |
|
|
402
|
+
| models.HTTPValidationError | 422 | application/json |
|
|
403
|
+
| models.SDKError | 4xx-5xx | */* |
|
|
409
404
|
|
|
410
405
|
### Example
|
|
411
406
|
|
|
@@ -442,9 +437,9 @@ if res is not None:
|
|
|
442
437
|
|
|
443
438
|
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:
|
|
444
439
|
|
|
445
|
-
| Name
|
|
446
|
-
|
|
|
447
|
-
| `prod` | `https://api.mistral.ai` | None
|
|
440
|
+
| Name | Server | Variables |
|
|
441
|
+
| ------ | ------------------------ | --------- |
|
|
442
|
+
| `prod` | `https://api.mistral.ai` | None |
|
|
448
443
|
|
|
449
444
|
#### Example
|
|
450
445
|
|
|
@@ -577,9 +572,9 @@ s = Mistral(async_client=CustomClient(httpx.AsyncClient()))
|
|
|
577
572
|
|
|
578
573
|
This SDK supports the following security scheme globally:
|
|
579
574
|
|
|
580
|
-
| Name
|
|
581
|
-
|
|
|
582
|
-
| `api_key`
|
|
575
|
+
| Name | Type | Scheme |
|
|
576
|
+
| --------- | ---- | ----------- |
|
|
577
|
+
| `api_key` | http | HTTP Bearer |
|
|
583
578
|
|
|
584
579
|
To authenticate with the API the `api_key` parameter must be set when initializing the SDK client instance. For example:
|
|
585
580
|
```python
|
|
@@ -34,7 +34,7 @@ mistralai_azure/models/usermessage.py,sha256=GVot756b_WjWysVub4uD5XR-3UIRMbor80l
|
|
|
34
34
|
mistralai_azure/models/validationerror.py,sha256=g5T766Un3VeL4LuxtMww6y3S-bvqfsSva_EcPbKgLuw,442
|
|
35
35
|
mistralai_azure/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
|
36
36
|
mistralai_azure/sdk.py,sha256=3YTFKnRN5yca7RYbc-s_FOuzxr4bTakkDfGm5xG1BsY,3758
|
|
37
|
-
mistralai_azure/sdkconfiguration.py,sha256=
|
|
37
|
+
mistralai_azure/sdkconfiguration.py,sha256=WCO6eqd4K7JxDsdABJ96VAWarCk8ZQxSqDQygukLs5I,1684
|
|
38
38
|
mistralai_azure/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
|
39
39
|
mistralai_azure/types/basemodel.py,sha256=QoM3vxefEuZ0x2J-XERAakxs4sUcBCIjmP6-rs6ssmo,993
|
|
40
40
|
mistralai_azure/utils/__init__.py,sha256=aMLOQlnQyBYwogN4z27pmpcn9_HJK1F6c6uBZm_pqGw,2019
|
|
@@ -91,7 +91,7 @@ mistralai_gcp/models/usermessage.py,sha256=r7ggF_g7YWTzodflGe_MFq9wFgAuOigGCBZlI
|
|
|
91
91
|
mistralai_gcp/models/validationerror.py,sha256=6aUfQTDiUrtbNHDIauk4Z6WGNk3qrdVInqnpZ_C41-g,440
|
|
92
92
|
mistralai_gcp/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
|
93
93
|
mistralai_gcp/sdk.py,sha256=1yEfjw36Fa30brslBteskXcWRD9boTS4qBhRlWZKSaM,5999
|
|
94
|
-
mistralai_gcp/sdkconfiguration.py,sha256=
|
|
94
|
+
mistralai_gcp/sdkconfiguration.py,sha256=5pf5xa_T6Sl1YrXSAHOb0-yLJ_jHfplNlTFScMM3Ox8,1678
|
|
95
95
|
mistralai_gcp/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
|
96
96
|
mistralai_gcp/types/basemodel.py,sha256=QoM3vxefEuZ0x2J-XERAakxs4sUcBCIjmP6-rs6ssmo,993
|
|
97
97
|
mistralai_gcp/utils/__init__.py,sha256=aMLOQlnQyBYwogN4z27pmpcn9_HJK1F6c6uBZm_pqGw,2019
|
|
@@ -205,7 +205,7 @@ mistralai/models/wandbintegrationout.py,sha256=AUddq70HUTJVdWl90okbaDis4L2zjTpVI
|
|
|
205
205
|
mistralai/models_.py,sha256=AeHpXtrAy84JureM_Lfzci6oMZN4krT3ThFJSqQXWXA,36480
|
|
206
206
|
mistralai/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
|
207
207
|
mistralai/sdk.py,sha256=3ThlAmKsx-IV7Wl-GQ1KXB-Xwh3U8T8s7moE_zCF6A8,4326
|
|
208
|
-
mistralai/sdkconfiguration.py,sha256=
|
|
208
|
+
mistralai/sdkconfiguration.py,sha256=u7K210UYw5m1Obsk5x3KCowqvFUnJtuGTJ0sGy8h0xg,1666
|
|
209
209
|
mistralai/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
|
210
210
|
mistralai/types/basemodel.py,sha256=QoM3vxefEuZ0x2J-XERAakxs4sUcBCIjmP6-rs6ssmo,993
|
|
211
211
|
mistralai/utils/__init__.py,sha256=IbgjxIFuR637hA2Deveyz-3T2NnBFCmronIXPih3kKk,2072
|
|
@@ -222,7 +222,7 @@ mistralai/utils/security.py,sha256=hDSGaqL9eQxBPcjYreGBGCuSCDVEbl8s6PEOJhu8s7k,5
|
|
|
222
222
|
mistralai/utils/serializers.py,sha256=YRBVvAQ9Ywl2N2DanYlEKc2tKys2xcsiUY_lfG0lG10,4132
|
|
223
223
|
mistralai/utils/url.py,sha256=Bvu71MYt9NJFYOmPcWVylrdUf3QtytbjqllNkWTCRHE,5195
|
|
224
224
|
mistralai/utils/values.py,sha256=KauGimRv4_lfIfijquDLWd1v4HbqnQiG8Rn61Stdxbg,3294
|
|
225
|
-
mistralai-0.
|
|
226
|
-
mistralai-0.
|
|
227
|
-
mistralai-0.
|
|
228
|
-
mistralai-0.
|
|
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,,
|
|
@@ -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 = "0.
|
|
32
|
-
gen_version: str = "2.382.
|
|
33
|
-
user_agent: str = "speakeasy-sdk/python 0.
|
|
31
|
+
sdk_version: str = "1.0.0rc1"
|
|
32
|
+
gen_version: str = "2.382.2"
|
|
33
|
+
user_agent: str = "speakeasy-sdk/python 1.0.0rc1 2.382.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
|
|
|
@@ -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 = "0.
|
|
32
|
-
gen_version: str = "2.382.
|
|
33
|
-
user_agent: str = "speakeasy-sdk/python 0.
|
|
31
|
+
sdk_version: str = "1.0.0rc1"
|
|
32
|
+
gen_version: str = "2.382.2"
|
|
33
|
+
user_agent: str = "speakeasy-sdk/python 1.0.0rc1 2.382.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
|
|
|
File without changes
|
|
File without changes
|