Skip to content

Commit 493cea8

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.568.2
1 parent a61dc37 commit 493cea8

File tree

70 files changed

+1935
-69
lines changed

Some content is hidden

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

70 files changed

+1935
-69
lines changed

.speakeasy/gen.lock

Lines changed: 59 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
lockVersion: 2.0.0
22
id: 2d045ec7-2ebb-4f4d-ad25-40953b132161
33
management:
4-
docChecksum: 82cf79b2dee6811d91e2912113c21d3a
4+
docChecksum: 3ded9717d39dd1d0880fef10c713583c
55
docVersion: 1.0.0
66
speakeasyVersion: 1.568.2
77
generationVersion: 2.634.2
8-
releaseVersion: 1.9.2
9-
configChecksum: 1ca921f44508650d65ccf46783910ff3
8+
releaseVersion: 1.9.3
9+
configChecksum: 0f65a9bdd8df5ae03eaaaea3ab055bf1
1010
repoURL: https://github.com/mistralai/client-python.git
1111
installationURL: https://github.com/mistralai/client-python.git
1212
published: true
1313
features:
1414
python:
1515
additionalDependencies: 1.0.0
16+
additionalProperties: 1.0.1
1617
constsAndDefaults: 1.0.5
1718
core: 5.19.3
1819
customCodeRegions: 0.1.1
@@ -89,6 +90,10 @@ generatedFiles:
8990
- docs/models/assistantmessage.md
9091
- docs/models/assistantmessagecontent.md
9192
- docs/models/assistantmessagerole.md
93+
- docs/models/audiochunk.md
94+
- docs/models/audiochunktype.md
95+
- docs/models/audiotranscriptionrequest.md
96+
- docs/models/audiotranscriptionrequeststream.md
9297
- docs/models/basemodelcard.md
9398
- docs/models/batcherror.md
9499
- docs/models/batchjobin.md
@@ -320,6 +325,7 @@ generatedFiles:
320325
- docs/models/messageoutputeventrole.md
321326
- docs/models/messageoutputeventtype.md
322327
- docs/models/messages.md
328+
- docs/models/metadata.md
323329
- docs/models/metricout.md
324330
- docs/models/mistralpromptmode.md
325331
- docs/models/modelcapabilities.md
@@ -375,6 +381,10 @@ generatedFiles:
375381
- docs/models/systemmessagecontent.md
376382
- docs/models/textchunk.md
377383
- docs/models/textchunktype.md
384+
- docs/models/thinkchunk.md
385+
- docs/models/thinkchunktype.md
386+
- docs/models/thinking.md
387+
- docs/models/timestampgranularity.md
378388
- docs/models/tool.md
379389
- docs/models/toolcall.md
380390
- docs/models/toolchoice.md
@@ -398,6 +408,15 @@ generatedFiles:
398408
- docs/models/tools.md
399409
- docs/models/tooltypes.md
400410
- docs/models/trainingfile.md
411+
- docs/models/transcriptionresponse.md
412+
- docs/models/transcriptionsegmentchunk.md
413+
- docs/models/transcriptionstreamdone.md
414+
- docs/models/transcriptionstreamevents.md
415+
- docs/models/transcriptionstreameventsdata.md
416+
- docs/models/transcriptionstreameventtypes.md
417+
- docs/models/transcriptionstreamlanguage.md
418+
- docs/models/transcriptionstreamsegmentdelta.md
419+
- docs/models/transcriptionstreamtextdelta.md
401420
- docs/models/two.md
402421
- docs/models/type.md
403422
- docs/models/unarchiveftmodelout.md
@@ -420,6 +439,7 @@ generatedFiles:
420439
- docs/models/websearchtooltype.md
421440
- docs/sdks/accesses/README.md
422441
- docs/sdks/agents/README.md
442+
- docs/sdks/audio/README.md
423443
- docs/sdks/batch/README.md
424444
- docs/sdks/beta/README.md
425445
- docs/sdks/chat/README.md
@@ -437,6 +457,7 @@ generatedFiles:
437457
- docs/sdks/mistraljobs/README.md
438458
- docs/sdks/models/README.md
439459
- docs/sdks/ocr/README.md
460+
- docs/sdks/transcriptions/README.md
440461
- poetry.toml
441462
- py.typed
442463
- scripts/prepare_readme.py
@@ -448,6 +469,7 @@ generatedFiles:
448469
- src/mistralai/_version.py
449470
- src/mistralai/accesses.py
450471
- src/mistralai/agents.py
472+
- src/mistralai/audio.py
451473
- src/mistralai/basesdk.py
452474
- src/mistralai/batch.py
453475
- src/mistralai/beta.py
@@ -489,6 +511,9 @@ generatedFiles:
489511
- src/mistralai/models/apiendpoint.py
490512
- src/mistralai/models/archiveftmodelout.py
491513
- src/mistralai/models/assistantmessage.py
514+
- src/mistralai/models/audiochunk.py
515+
- src/mistralai/models/audiotranscriptionrequest.py
516+
- src/mistralai/models/audiotranscriptionrequeststream.py
492517
- src/mistralai/models/basemodelcard.py
493518
- src/mistralai/models/batcherror.py
494519
- src/mistralai/models/batchjobin.py
@@ -668,6 +693,8 @@ generatedFiles:
668693
- src/mistralai/models/ssetypes.py
669694
- src/mistralai/models/systemmessage.py
670695
- src/mistralai/models/textchunk.py
696+
- src/mistralai/models/thinkchunk.py
697+
- src/mistralai/models/timestampgranularity.py
671698
- src/mistralai/models/tool.py
672699
- src/mistralai/models/toolcall.py
673700
- src/mistralai/models/toolchoice.py
@@ -681,6 +708,14 @@ generatedFiles:
681708
- src/mistralai/models/toolreferencechunk.py
682709
- src/mistralai/models/tooltypes.py
683710
- src/mistralai/models/trainingfile.py
711+
- src/mistralai/models/transcriptionresponse.py
712+
- src/mistralai/models/transcriptionsegmentchunk.py
713+
- src/mistralai/models/transcriptionstreamdone.py
714+
- src/mistralai/models/transcriptionstreamevents.py
715+
- src/mistralai/models/transcriptionstreameventtypes.py
716+
- src/mistralai/models/transcriptionstreamlanguage.py
717+
- src/mistralai/models/transcriptionstreamsegmentdelta.py
718+
- src/mistralai/models/transcriptionstreamtextdelta.py
684719
- src/mistralai/models/unarchiveftmodelout.py
685720
- src/mistralai/models/updateftmodelin.py
686721
- src/mistralai/models/uploadfileout.py
@@ -696,6 +731,7 @@ generatedFiles:
696731
- src/mistralai/py.typed
697732
- src/mistralai/sdk.py
698733
- src/mistralai/sdkconfiguration.py
734+
- src/mistralai/transcriptions.py
699735
- src/mistralai/types/__init__.py
700736
- src/mistralai/types/basemodel.py
701737
- src/mistralai/utils/__init__.py
@@ -751,7 +787,7 @@ examples:
751787
application/json: {}
752788
responses:
753789
"200":
754-
application/json: {"id": "<id>", "object": "model", "created": 124166, "owned_by": "<value>", "root": "<value>", "archived": true, "capabilities": {"completion_chat": true, "completion_fim": false, "function_calling": false, "fine_tuning": false, "classification": false}, "max_context_length": 32768, "job": "c4f8ef9a-6612-4f49-88fa-a80eb8116e46", "model_type": "completion"}
790+
application/json: {"id": "<id>", "object": "model", "created": 124166, "owned_by": "<value>", "workspace_id": "<id>", "root": "<value>", "root_version": "<value>", "archived": true, "capabilities": {"completion_chat": true, "completion_fim": false, "function_calling": false, "fine_tuning": false, "classification": false}, "max_context_length": 32768, "job": "c4f8ef9a-6612-4f49-88fa-a80eb8116e46", "model_type": "completion"}
755791
jobs_api_routes_fine_tuning_archive_fine_tuned_model:
756792
speakeasy-default-jobs-api-routes-fine-tuning-archive-fine-tuned-model:
757793
parameters:
@@ -1027,33 +1063,33 @@ examples:
10271063
jobs_api_routes_batch_create_batch_job:
10281064
speakeasy-default-jobs-api-routes-batch-create-batch-job:
10291065
requestBody:
1030-
application/json: {"input_files": ["fe3343a2-3b8d-404b-ba32-a78dede2614a"], "endpoint": "/v1/moderations", "model": "Altima", "timeout_hours": 24}
1066+
application/json: {"input_files": ["fe3343a2-3b8d-404b-ba32-a78dede2614a"], "endpoint": "/v1/moderations", "timeout_hours": 24}
10311067
responses:
10321068
"200":
1033-
application/json: {"id": "<id>", "object": "batch", "input_files": ["7b2553d8-e17f-4df5-a862-a1678f6b5271", "8c618d9f-7d82-42ba-a284-d57d84f50a58", "c042f996-e842-441d-ae47-4e0850334e41"], "endpoint": "<value>", "model": "Taurus", "errors": [{"message": "<value>", "count": 1}], "status": "SUCCESS", "created_at": 395527, "total_requests": 166919, "completed_requests": 258552, "succeeded_requests": 480980, "failed_requests": 684176}
1069+
application/json: {"id": "<id>", "object": "batch", "input_files": ["7b2553d8-e17f-4df5-a862-a1678f6b5271", "8c618d9f-7d82-42ba-a284-d57d84f50a58", "c042f996-e842-441d-ae47-4e0850334e41"], "endpoint": "<value>", "errors": [{"message": "<value>", "count": 1}], "status": "SUCCESS", "created_at": 395527, "total_requests": 166919, "completed_requests": 258552, "succeeded_requests": 480980, "failed_requests": 684176}
10341070
jobs_api_routes_batch_get_batch_job:
10351071
speakeasy-default-jobs-api-routes-batch-get-batch-job:
10361072
parameters:
10371073
path:
10381074
job_id: "4017dc9f-b629-42f4-9700-8c681b9e7f0f"
10391075
responses:
10401076
"200":
1041-
application/json: {"id": "<id>", "object": "batch", "input_files": ["11b83f16-f2f9-4de4-a81f-203fff419c99"], "endpoint": "<value>", "model": "Accord", "errors": [], "status": "TIMEOUT_EXCEEDED", "created_at": 900958, "total_requests": 458292, "completed_requests": 184893, "succeeded_requests": 104800, "failed_requests": 836210}
1077+
application/json: {"id": "<id>", "object": "batch", "input_files": ["11b83f16-f2f9-4de4-a81f-203fff419c99"], "endpoint": "<value>", "errors": [], "status": "TIMEOUT_EXCEEDED", "created_at": 900958, "total_requests": 458292, "completed_requests": 184893, "succeeded_requests": 104800, "failed_requests": 836210}
10421078
jobs_api_routes_batch_cancel_batch_job:
10431079
speakeasy-default-jobs-api-routes-batch-cancel-batch-job:
10441080
parameters:
10451081
path:
10461082
job_id: "4fb29d1c-535b-4f0a-a1cb-2167f86da569"
10471083
responses:
10481084
"200":
1049-
application/json: {"id": "<id>", "object": "batch", "input_files": ["8fd9d88a-66be-43fd-a816-ba509ca3ca85"], "endpoint": "<value>", "model": "PT Cruiser", "errors": [], "status": "TIMEOUT_EXCEEDED", "created_at": 608251, "total_requests": 12693, "completed_requests": 203340, "succeeded_requests": 189291, "failed_requests": 969057}
1085+
application/json: {"id": "<id>", "object": "batch", "input_files": ["8fd9d88a-66be-43fd-a816-ba509ca3ca85"], "endpoint": "<value>", "errors": [], "status": "TIMEOUT_EXCEEDED", "created_at": 608251, "total_requests": 12693, "completed_requests": 203340, "succeeded_requests": 189291, "failed_requests": 969057}
10501086
chat_completion_v1_chat_completions_post:
10511087
speakeasy-default-chat-completion-v1-chat-completions-post:
10521088
requestBody:
10531089
application/json: {"model": "mistral-small-latest", "stream": false, "messages": [{"content": "Who is the best French painter? Answer in one short sentence.", "role": "user"}]}
10541090
responses:
10551091
"200":
1056-
application/json: {"id": "cmpl-e5cc70bb28c444948073e77776eb30ef", "object": "chat.completion", "model": "mistral-small-latest", "usage": {"prompt_tokens": 16, "completion_tokens": 34, "total_tokens": 50}, "created": 1702256327, "choices": []}
1092+
application/json: {"id": "cmpl-e5cc70bb28c444948073e77776eb30ef", "object": "chat.completion", "model": "mistral-small-latest", "usage": {"prompt_tokens": 0, "completion_tokens": 0, "total_tokens": 0}, "created": 1702256327, "choices": []}
10571093
"422":
10581094
application/json: {}
10591095
stream_chat:
@@ -1069,7 +1105,7 @@ examples:
10691105
application/json: {"model": "codestral-2405", "top_p": 1, "stream": false, "prompt": "def", "suffix": "return a+b"}
10701106
responses:
10711107
"200":
1072-
application/json: {"id": "cmpl-e5cc70bb28c444948073e77776eb30ef", "object": "chat.completion", "model": "codestral-latest", "usage": {"prompt_tokens": 16, "completion_tokens": 34, "total_tokens": 50}, "created": 1702256327, "choices": []}
1108+
application/json: {"id": "cmpl-e5cc70bb28c444948073e77776eb30ef", "object": "chat.completion", "model": "codestral-latest", "usage": {"prompt_tokens": 0, "completion_tokens": 0, "total_tokens": 0}, "created": 1702256327, "choices": []}
10731109
"422":
10741110
application/json: {}
10751111
stream_fim:
@@ -1085,7 +1121,7 @@ examples:
10851121
application/json: {"stream": false, "messages": [{"content": "Who is the best French painter? Answer in one short sentence.", "role": "user"}], "agent_id": "<id>"}
10861122
responses:
10871123
"200":
1088-
application/json: {"id": "cmpl-e5cc70bb28c444948073e77776eb30ef", "object": "chat.completion", "model": "mistral-small-latest", "usage": {"prompt_tokens": 16, "completion_tokens": 34, "total_tokens": 50}, "created": 1702256327, "choices": []}
1124+
application/json: {"id": "cmpl-e5cc70bb28c444948073e77776eb30ef", "object": "chat.completion", "model": "mistral-small-latest", "usage": {"prompt_tokens": 0, "completion_tokens": 0, "total_tokens": 0}, "created": 1702256327, "choices": []}
10891125
"422":
10901126
application/json: {}
10911127
stream_agents:
@@ -1101,7 +1137,7 @@ examples:
11011137
application/json: {"model": "mistral-embed", "input": ["Embed this sentence.", "As well as this one."]}
11021138
responses:
11031139
"200":
1104-
application/json: {"id": "cmpl-e5cc70bb28c444948073e77776eb30ef", "object": "chat.completion", "model": "mistral-small-latest", "usage": {"prompt_tokens": 16, "completion_tokens": 34, "total_tokens": 50}, "data": [{"object": "embedding", "embedding": [0.1, 0.2, 0.3], "index": 0}, {"object": "embedding", "embedding": [0.4, 0.5, 0.6], "index": 1}]}
1140+
application/json: {"id": "cmpl-e5cc70bb28c444948073e77776eb30ef", "object": "chat.completion", "model": "mistral-small-latest", "usage": {"prompt_tokens": 0, "completion_tokens": 0, "total_tokens": 0}, "data": [{"object": "embedding", "embedding": [0.1, 0.2, 0.3], "index": 0}, {"object": "embedding", "embedding": [0.4, 0.5, 0.6], "index": 1}]}
11051141
"422":
11061142
application/json: {}
11071143
moderations_v1_moderations_post:
@@ -1342,5 +1378,16 @@ examples:
13421378
application/json: {"library_id": "7f9c6af4-e362-4cf1-9363-0409d51c2dfa", "org_id": "6b2cac3a-b29c-4d8f-bebb-0db06ec1bf97", "role": "<value>", "share_with_type": "<value>", "share_with_uuid": "618c78f1-41ca-45c3-8ef2-7d78898c7061"}
13431379
"422":
13441380
application/json: {}
1381+
audio_api_v1_transcriptions_post:
1382+
speakeasy-default-audio-api-v1-transcriptions-post:
1383+
requestBody:
1384+
multipart/form-data: {"model": "Model X", "stream": false}
1385+
responses:
1386+
"200":
1387+
application/json: {"model": "Beetle", "text": "<value>", "usage": {"prompt_tokens": 0, "completion_tokens": 0, "total_tokens": 0}, "language": "<value>"}
1388+
audio_api_v1_transcriptions_post_stream:
1389+
speakeasy-default-audio-api-v1-transcriptions-post-stream:
1390+
requestBody:
1391+
multipart/form-data: {"model": "Camry", "stream": true}
13451392
examplesVersion: 1.0.2
13461393
generatedTests: {}

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ generation:
2121
generateNewTests: false
2222
skipResponseBodyAssertions: false
2323
python:
24-
version: 1.9.2
24+
version: 1.9.3
2525
additionalDependencies:
2626
dev:
2727
pytest: ^8.2.2

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ sources:
1414
- latest
1515
mistral-openapi:
1616
sourceNamespace: mistral-openapi
17-
sourceRevisionDigest: sha256:2ab1acc41424ca9be28ef867168aeb32af9fc7129b0a91494c0cd24d68c30345
18-
sourceBlobDigest: sha256:029ae17d555b02220397bba95308ba545c4733db81e65258be7baf9991d10c3a
17+
sourceRevisionDigest: sha256:29bb772e0bf49712044d224eea583dd85d6117feaf17f658d8448ab8a11a7e00
18+
sourceBlobDigest: sha256:a67269ed15165c327a51c24013ede9694a5f7f3969972c0d650abbf3b8e64a85
1919
tags:
2020
- latest
21-
- speakeasy-sdk-regen-1751557705
21+
- speakeasy-sdk-regen-1753262939
2222
targets:
2323
mistralai-azure-sdk:
2424
source: mistral-azure-source
@@ -37,10 +37,10 @@ targets:
3737
mistralai-sdk:
3838
source: mistral-openapi
3939
sourceNamespace: mistral-openapi
40-
sourceRevisionDigest: sha256:2ab1acc41424ca9be28ef867168aeb32af9fc7129b0a91494c0cd24d68c30345
41-
sourceBlobDigest: sha256:029ae17d555b02220397bba95308ba545c4733db81e65258be7baf9991d10c3a
40+
sourceRevisionDigest: sha256:29bb772e0bf49712044d224eea583dd85d6117feaf17f658d8448ab8a11a7e00
41+
sourceBlobDigest: sha256:a67269ed15165c327a51c24013ede9694a5f7f3969972c0d650abbf3b8e64a85
4242
codeSamplesNamespace: mistral-openapi-code-samples
43-
codeSamplesRevisionDigest: sha256:b45de481b3d77689a76a406421d4625dc37cc17bf90bab2f7d6e78f3eec77a9c
43+
codeSamplesRevisionDigest: sha256:1fd9897fdd851557c592b8fd46232518359401d15a6574933c43be63ec2edb53
4444
workflow:
4545
workflowVersion: 1.0.0
4646
speakeasyVersion: 1.568.2

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,14 @@ The documentation for the GCP SDK is available [here](packages/mistralai_gcp/REA
434434
* [complete](docs/sdks/agents/README.md#complete) - Agents Completion
435435
* [stream](docs/sdks/agents/README.md#stream) - Stream Agents completion
436436

437+
### [audio](docs/sdks/audio/README.md)
438+
439+
440+
#### [audio.transcriptions](docs/sdks/transcriptions/README.md)
441+
442+
* [complete](docs/sdks/transcriptions/README.md#complete) - Create Transcription
443+
* [stream](docs/sdks/transcriptions/README.md#stream) - Create streaming transcription (SSE)
444+
437445
### [batch](docs/sdks/batch/README.md)
438446

439447

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,4 +258,14 @@ Based on:
258258
### Generated
259259
- [python v1.9.2] .
260260
### Releases
261-
- [PyPI v1.9.2] https://pypi.org/project/mistralai/1.9.2 - .
261+
- [PyPI v1.9.2] https://pypi.org/project/mistralai/1.9.2 - .
262+
263+
## 2025-07-23 09:28:44
264+
### Changes
265+
Based on:
266+
- OpenAPI Doc
267+
- Speakeasy CLI 1.568.2 (2.634.2) https://github.com/speakeasy-api/speakeasy
268+
### Generated
269+
- [python v1.9.3] .
270+
### Releases
271+
- [PyPI v1.9.3] https://pypi.org/project/mistralai/1.9.3 - .

docs/models/audiochunk.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# AudioChunk
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- |
8+
| `input_audio` | *str* | :heavy_check_mark: | N/A |
9+
| `type` | [Optional[models.AudioChunkType]](../models/audiochunktype.md) | :heavy_minus_sign: | N/A |

docs/models/audiochunktype.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# AudioChunkType
2+
3+
4+
## Values
5+
6+
| Name | Value |
7+
| ------------- | ------------- |
8+
| `INPUT_AUDIO` | input_audio |

0 commit comments

Comments
 (0)