Skip to content

Commit 845ce11

Browse files
chore: regenerate SDK with speakeasy
1 parent 8819e8f commit 845ce11

162 files changed

Lines changed: 6716 additions & 1464 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.env.local
12
.idea
23
**/__pycache__/
34
**/.speakeasy/temp/

.speakeasy/gen.lock

Lines changed: 3658 additions & 748 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,32 @@ generation:
1616
auth:
1717
oAuth2ClientCredentialsEnabled: true
1818
oAuth2PasswordEnabled: false
19+
hoistGlobalSecurity: true
20+
schemas:
21+
allOfMergeStrategy: shallowMerge
22+
requestBodyFieldName: ""
23+
persistentEdits: {}
1924
tests:
2025
generateTests: true
2126
generateNewTests: false
2227
skipResponseBodyAssertions: false
2328
python:
24-
version: 1.10.0
29+
version: 1.11.0
2530
additionalDependencies:
2631
dev:
2732
pytest: ^8.2.2
2833
pytest-asyncio: ^0.23.7
34+
main:
35+
mistral-workflows: ^1.2.2
2936
allowedRedefinedBuiltins:
3037
- id
3138
- object
39+
asyncMode: both
3240
authors:
3341
- Mistral
3442
baseErrorName: MistralError
3543
clientServerStatusCodesAsErrors: true
44+
constFieldCasing: upper
3645
defaultErrorName: SDKError
3746
description: Python Client SDK for the Mistral AI API.
3847
enableCustomCodeRegions: true
@@ -51,14 +60,19 @@ python:
5160
operations: ""
5261
shared: ""
5362
webhooks: ""
63+
inferUnionDiscriminators: true
5464
inputModelSuffix: input
65+
license: ""
5566
maxMethodParams: 15
5667
methodArguments: infer-optional-args
5768
moduleName: ""
69+
multipartArrayFormat: legacy
5870
outputModelSuffix: output
5971
packageManager: uv
6072
packageName: mistralai
73+
preApplyUnionDiscriminators: false
6174
pytestFilterWarnings: []
6275
pytestTimeout: 0
6376
responseFormat: flat
77+
sseFlatResponse: false
6478
templateVersion: v2

.speakeasy/workflow.lock

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.606.10
1+
speakeasyVersion: 1.683.1
22
sources:
33
mistral-azure-source:
44
sourceNamespace: mistral-openapi-azure
@@ -18,7 +18,6 @@ sources:
1818
sourceBlobDigest: sha256:f0caa06fb9bcadc35b097aa5ff69bb5020937652df311722b5e44a282bd95d6d
1919
tags:
2020
- latest
21-
- speakeasy-sdk-regen-1765914268
2221
targets:
2322
mistralai-azure-sdk:
2423
source: mistral-azure-source
@@ -40,7 +39,7 @@ targets:
4039
sourceRevisionDigest: sha256:cb63bd997cefe7b3b36e91a475df57cb779bf79f183340e0713d8ffb16a2dabc
4140
sourceBlobDigest: sha256:f0caa06fb9bcadc35b097aa5ff69bb5020937652df311722b5e44a282bd95d6d
4241
codeSamplesNamespace: mistral-openapi-code-samples
43-
codeSamplesRevisionDigest: sha256:b1eacff97275a14ab0c2143e07bdfa4f4bd58f5370b2f106bcc6ada92b754d08
42+
codeSamplesRevisionDigest: sha256:9bb041f76008838d352cc0430f21f652bc595d8ddd28f80f36ab1ac143c194ae
4443
workflow:
4544
workflowVersion: 1.0.0
4645
speakeasyVersion: 1.606.10

README.md

Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,15 @@ Mistral AI API: Our Chat Completion and Embeddings APIs specification. Create yo
5858
>
5959
> Once a Python version reaches its [official end of life date](https://devguide.python.org/versions/), a 3-month grace period is provided for users to upgrade. Following this grace period, the minimum python version supported in the SDK will be updated.
6060
61-
The SDK can be installed with either *pip* or *uv* package managers.
61+
The SDK can be installed with *uv*, *pip*, or *poetry* package managers.
62+
63+
### uv
64+
65+
*uv* is a fast Python package installer and resolver, designed as a drop-in replacement for pip and pip-tools. It's recommended for its speed and modern Python tooling capabilities.
66+
67+
```bash
68+
uv add mistralai
69+
```
6270

6371
### PIP
6472

@@ -68,12 +76,12 @@ The SDK can be installed with either *pip* or *uv* package managers.
6876
pip install mistralai
6977
```
7078

71-
### UV
79+
### Poetry
7280

73-
*UV* is an extremely fast Python package and project manager. You can use it to add the SDK to your project:
81+
*Poetry* is a modern tool that simplifies dependency management and package publishing by using a single `pyproject.toml` file to handle project metadata and dependencies.
7482

7583
```bash
76-
uv add mistralai
84+
poetry add mistralai
7785
```
7886

7987
### Shell and script usage with `uv`
@@ -89,7 +97,7 @@ It's also possible to write a standalone Python script without needing to set up
8997
```python
9098
#!/usr/bin/env -S uv run --script
9199
# /// script
92-
# requires-python = ">=3.10"
100+
# requires-python = ">=3.9"
93101
# dependencies = [
94102
# "mistralai",
95103
# ]
@@ -152,6 +160,7 @@ with Mistral(
152160
</br>
153161

154162
The same SDK client can also be used to make asynchronous requests by importing asyncio.
163+
155164
```python
156165
# Asynchronous Example
157166
import asyncio
@@ -205,6 +214,7 @@ with Mistral(
205214
</br>
206215

207216
The same SDK client can also be used to make asynchronous requests by importing asyncio.
217+
208218
```python
209219
# Asynchronous Example
210220
import asyncio
@@ -258,6 +268,7 @@ with Mistral(
258268
</br>
259269

260270
The same SDK client can also be used to make asynchronous requests by importing asyncio.
271+
261272
```python
262273
# Asynchronous Example
263274
import asyncio
@@ -311,6 +322,7 @@ with Mistral(
311322
</br>
312323

313324
The same SDK client can also be used to make asynchronous requests by importing asyncio.
325+
314326
```python
315327
# Asynchronous Example
316328
import asyncio
@@ -436,33 +448,24 @@ The documentation for the GCP SDK is available [here](packages/mistralai_gcp/REA
436448
<details open>
437449
<summary>Available methods</summary>
438450

439-
### [agents](docs/sdks/agents/README.md)
451+
### [Agents](docs/sdks/agents/README.md)
440452

441453
* [complete](docs/sdks/agents/README.md#complete) - Agents Completion
442454
* [stream](docs/sdks/agents/README.md#stream) - Stream Agents completion
443455

444-
### [audio](docs/sdks/audio/README.md)
445-
446-
447-
#### [audio.transcriptions](docs/sdks/transcriptions/README.md)
456+
### [Audio.Transcriptions](docs/sdks/transcriptions/README.md)
448457

449458
* [complete](docs/sdks/transcriptions/README.md#complete) - Create Transcription
450459
* [stream](docs/sdks/transcriptions/README.md#stream) - Create Streaming Transcription (SSE)
451460

452-
### [batch](docs/sdks/batch/README.md)
453-
454-
455-
#### [batch.jobs](docs/sdks/mistraljobs/README.md)
461+
### [Batch.Jobs](docs/sdks/mistraljobs/README.md)
456462

457463
* [list](docs/sdks/mistraljobs/README.md#list) - Get Batch Jobs
458464
* [create](docs/sdks/mistraljobs/README.md#create) - Create Batch Job
459465
* [get](docs/sdks/mistraljobs/README.md#get) - Get Batch Job
460466
* [cancel](docs/sdks/mistraljobs/README.md#cancel) - Cancel Batch Job
461467

462-
### [beta](docs/sdks/beta/README.md)
463-
464-
465-
#### [beta.agents](docs/sdks/mistralagents/README.md)
468+
### [Beta.Agents](docs/sdks/mistralagents/README.md)
466469

467470
* [create](docs/sdks/mistralagents/README.md#create) - Create a agent that can be used within a conversation.
468471
* [list](docs/sdks/mistralagents/README.md#list) - List agent entities.
@@ -471,7 +474,7 @@ The documentation for the GCP SDK is available [here](packages/mistralai_gcp/REA
471474
* [delete](docs/sdks/mistralagents/README.md#delete) - Delete an agent entity.
472475
* [update_version](docs/sdks/mistralagents/README.md#update_version) - Update an agent version.
473476

474-
#### [beta.conversations](docs/sdks/conversations/README.md)
477+
### [Beta.Conversations](docs/sdks/conversations/README.md)
475478

476479
* [start](docs/sdks/conversations/README.md#start) - Create a conversation and append entries to it.
477480
* [list](docs/sdks/conversations/README.md#list) - List all created conversations.
@@ -485,21 +488,21 @@ The documentation for the GCP SDK is available [here](packages/mistralai_gcp/REA
485488
* [append_stream](docs/sdks/conversations/README.md#append_stream) - Append new entries to an existing conversation.
486489
* [restart_stream](docs/sdks/conversations/README.md#restart_stream) - Restart a conversation starting from a given entry.
487490

488-
#### [beta.libraries](docs/sdks/libraries/README.md)
491+
### [Beta.Libraries](docs/sdks/libraries/README.md)
489492

490493
* [list](docs/sdks/libraries/README.md#list) - List all libraries you have access to.
491494
* [create](docs/sdks/libraries/README.md#create) - Create a new Library.
492495
* [get](docs/sdks/libraries/README.md#get) - Detailed information about a specific Library.
493496
* [delete](docs/sdks/libraries/README.md#delete) - Delete a library and all of it's document.
494497
* [update](docs/sdks/libraries/README.md#update) - Update a library.
495498

496-
#### [beta.libraries.accesses](docs/sdks/accesses/README.md)
499+
#### [Beta.Libraries.Accesses](docs/sdks/accesses/README.md)
497500

498501
* [list](docs/sdks/accesses/README.md#list) - List all of the access to this library.
499502
* [update_or_create](docs/sdks/accesses/README.md#update_or_create) - Create or update an access level.
500503
* [delete](docs/sdks/accesses/README.md#delete) - Delete an access level.
501504

502-
#### [beta.libraries.documents](docs/sdks/documents/README.md)
505+
#### [Beta.Libraries.Documents](docs/sdks/documents/README.md)
503506

504507
* [list](docs/sdks/documents/README.md#list) - List documents in a given library.
505508
* [upload](docs/sdks/documents/README.md#upload) - Upload a new document.
@@ -512,23 +515,23 @@ The documentation for the GCP SDK is available [here](packages/mistralai_gcp/REA
512515
* [extracted_text_signed_url](docs/sdks/documents/README.md#extracted_text_signed_url) - Retrieve the signed URL of text extracted from a given document.
513516
* [reprocess](docs/sdks/documents/README.md#reprocess) - Reprocess a document.
514517

515-
### [chat](docs/sdks/chat/README.md)
518+
### [Chat](docs/sdks/chat/README.md)
516519

517520
* [complete](docs/sdks/chat/README.md#complete) - Chat Completion
518521
* [stream](docs/sdks/chat/README.md#stream) - Stream chat completion
519522

520-
### [classifiers](docs/sdks/classifiers/README.md)
523+
### [Classifiers](docs/sdks/classifiers/README.md)
521524

522525
* [moderate](docs/sdks/classifiers/README.md#moderate) - Moderations
523526
* [moderate_chat](docs/sdks/classifiers/README.md#moderate_chat) - Chat Moderations
524527
* [classify](docs/sdks/classifiers/README.md#classify) - Classifications
525528
* [classify_chat](docs/sdks/classifiers/README.md#classify_chat) - Chat Classifications
526529

527-
### [embeddings](docs/sdks/embeddings/README.md)
530+
### [Embeddings](docs/sdks/embeddings/README.md)
528531

529532
* [create](docs/sdks/embeddings/README.md#create) - Embeddings
530533

531-
### [files](docs/sdks/files/README.md)
534+
### [Files](docs/sdks/files/README.md)
532535

533536
* [upload](docs/sdks/files/README.md#upload) - Upload File
534537
* [list](docs/sdks/files/README.md#list) - List Files
@@ -537,24 +540,20 @@ The documentation for the GCP SDK is available [here](packages/mistralai_gcp/REA
537540
* [download](docs/sdks/files/README.md#download) - Download File
538541
* [get_signed_url](docs/sdks/files/README.md#get_signed_url) - Get Signed Url
539542

540-
### [fim](docs/sdks/fim/README.md)
543+
### [Fim](docs/sdks/fim/README.md)
541544

542545
* [complete](docs/sdks/fim/README.md#complete) - Fim Completion
543546
* [stream](docs/sdks/fim/README.md#stream) - Stream fim completion
544547

545-
### [fine_tuning](docs/sdks/finetuning/README.md)
546-
547-
548-
#### [fine_tuning.jobs](docs/sdks/jobs/README.md)
548+
### [FineTuning.Jobs](docs/sdks/jobs/README.md)
549549

550550
* [list](docs/sdks/jobs/README.md#list) - Get Fine Tuning Jobs
551551
* [create](docs/sdks/jobs/README.md#create) - Create Fine Tuning Job
552552
* [get](docs/sdks/jobs/README.md#get) - Get Fine Tuning Job
553553
* [cancel](docs/sdks/jobs/README.md#cancel) - Cancel Fine Tuning Job
554554
* [start](docs/sdks/jobs/README.md#start) - Start Fine Tuning Job
555555

556-
557-
### [models](docs/sdks/models/README.md)
556+
### [Models](docs/sdks/models/README.md)
558557

559558
* [list](docs/sdks/models/README.md#list) - List Models
560559
* [retrieve](docs/sdks/models/README.md#retrieve) - Retrieve Model
@@ -563,7 +562,7 @@ The documentation for the GCP SDK is available [here](packages/mistralai_gcp/REA
563562
* [archive](docs/sdks/models/README.md#archive) - Archive Fine Tuned Model
564563
* [unarchive](docs/sdks/models/README.md#unarchive) - Unarchive Fine Tuned Model
565564

566-
### [ocr](docs/sdks/ocr/README.md)
565+
### [Ocr](docs/sdks/ocr/README.md)
567566

568567
* [process](docs/sdks/ocr/README.md#process) - OCR
569568

USAGE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ with Mistral(
2929
</br>
3030

3131
The same SDK client can also be used to make asynchronous requests by importing asyncio.
32+
3233
```python
3334
# Asynchronous Example
3435
import asyncio
@@ -82,6 +83,7 @@ with Mistral(
8283
</br>
8384

8485
The same SDK client can also be used to make asynchronous requests by importing asyncio.
86+
8587
```python
8688
# Asynchronous Example
8789
import asyncio
@@ -135,6 +137,7 @@ with Mistral(
135137
</br>
136138

137139
The same SDK client can also be used to make asynchronous requests by importing asyncio.
140+
138141
```python
139142
# Asynchronous Example
140143
import asyncio
@@ -188,6 +191,7 @@ with Mistral(
188191
</br>
189192

190193
The same SDK client can also be used to make asynchronous requests by importing asyncio.
194+
191195
```python
192196
# Asynchronous Example
193197
import asyncio

docs/sdks/accesses/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# Accesses
2-
(*beta.libraries.accesses*)
1+
# Beta.Libraries.Accesses
32

43
## Overview
54

docs/sdks/agents/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Agents
2-
(*agents*)
32

43
## Overview
54

docs/sdks/chat/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Chat
2-
(*chat*)
32

43
## Overview
54

docs/sdks/classifiers/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Classifiers
2-
(*classifiers*)
32

43
## Overview
54

0 commit comments

Comments
 (0)