You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* chore: update gen.yaml with recommended v2 Speakeasy configs
- Add input and dir to allowedRedefinedBuiltins
- Add asyncPaginationSep2025 and conflictResistantModelImportsFeb2026 fixFlags
- Set imports.paths.errors to "errors"
- Increase maxMethodParams from 15 to 999
- Change multipartArrayFormat from legacy to standard
* chore: sync pylintrc allowed-redefined-builtins with gen.yaml
Add input and dir to match allowedRedefinedBuiltins in gen.yaml config.
* chore: regenerate spec
* fix: update code for renamed model classes
- Filter UnknownAgentTool in agent update (context.py)
- Update examples for renamed classes:
- BatchRequest, UserMessage: import from models module
- ClassifierTrainingParametersIn -> ClassifierTrainingParameters
- ClassifierJobOut -> ClassifierFineTuningJob
- Add type narrowing for ClassifierFineTuningJobDetails
Copy file name to clipboardExpand all lines: README.md
+25-21Lines changed: 25 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,9 +27,7 @@ $ source ~/.zshenv
27
27
<!-- Start Summary [summary] -->
28
28
## Summary
29
29
30
-
Mistral AI API: Dora OpenAPI schema
31
-
32
-
Our Chat Completion and Embeddings APIs specification. Create your account on [La Plateforme](https://console.mistral.ai) to get access and read the [docs](https://docs.mistral.ai) to learn how to use it.
30
+
Mistral AI API: Our Chat Completion and Embeddings APIs specification. Create your account on [La Plateforme](https://console.mistral.ai) to get access and read the [docs](https://docs.mistral.ai) to learn how to use it.
33
31
<!-- End Summary [summary] -->
34
32
35
33
<!-- Start Table of Contents [toc] -->
@@ -161,8 +159,8 @@ with Mistral(
161
159
162
160
res = mistral.chat.complete(model="mistral-large-latest", messages=[
163
161
{
164
-
"content": "Who is the best French painter? Answer in one short sentence.",
165
162
"role": "user",
163
+
"content": "Who is the best French painter? Answer in one short sentence.",
166
164
},
167
165
], stream=False, response_format={
168
166
"type": "text",
@@ -190,8 +188,8 @@ async def main():
190
188
191
189
res =await mistral.chat.complete_async(model="mistral-large-latest", messages=[
192
190
{
193
-
"content": "Who is the best French painter? Answer in one short sentence.",
194
191
"role": "user",
192
+
"content": "Who is the best French painter? Answer in one short sentence.",
195
193
},
196
194
], stream=False, response_format={
197
195
"type": "text",
@@ -269,8 +267,8 @@ with Mistral(
269
267
270
268
res = mistral.agents.complete(messages=[
271
269
{
272
-
"content": "Who is the best French painter? Answer in one short sentence.",
273
270
"role": "user",
271
+
"content": "Who is the best French painter? Answer in one short sentence.",
**Inherit from [`MistralError`](./src/mistralai/client/models/mistralerror.py)**:
772
-
*[`HTTPValidationError`](./src/mistralai/client/models/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 53 of 75 methods.*
773
-
*[`ResponseValidationError`](./src/mistralai/client/models/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute.
775
+
**Inherit from [`MistralError`](./src/mistralai/client/errors/mistralerror.py)**:
776
+
*[`HTTPValidationError`](./src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 53 of 75 methods.*
777
+
*[`ResponseValidationError`](./src/mistralai/client/errors/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute.
0 commit comments