Skip to content

Commit 6f80af2

Browse files
github-actions[bot]speakeasybotamenasria
authored
chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK 1.5.1 (#188)
* ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.477.0 * Add OCR example * Add OCR example with file upload * Even with TS example * Fix example url --------- Co-authored-by: speakeasybot <[email protected]> Co-authored-by: Alexandre Menasria <[email protected]>
1 parent 48bb243 commit 6f80af2

Some content is hidden

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

62 files changed

+1181
-355
lines changed

.speakeasy/gen.lock

+35-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 2d045ec7-2ebb-4f4d-ad25-40953b132161
33
management:
4-
docChecksum: 553c31591e8dc33a58cb75f348c3aa72
4+
docChecksum: 81cc8be96362e2f1cb145b08a2e6c4fa
55
docVersion: 0.0.2
66
speakeasyVersion: 1.477.0
77
generationVersion: 2.497.0
8-
releaseVersion: 1.5.0
9-
configChecksum: 9a5649c5c372dc5fd2fde38a0faee40e
8+
releaseVersion: 1.5.1
9+
configChecksum: ef3439d915c5d16e7cfb88fe2bf94907
1010
repoURL: https://github.com/mistralai/client-python.git
1111
installationURL: https://github.com/mistralai/client-python.git
1212
published: true
@@ -68,8 +68,6 @@ generatedFiles:
6868
- docs/models/batchjobsout.md
6969
- docs/models/batchjobsoutobject.md
7070
- docs/models/batchjobstatus.md
71-
- docs/models/chatclassificationrequest.md
72-
- docs/models/chatclassificationrequestinputs.md
7371
- docs/models/chatcompletionchoice.md
7472
- docs/models/chatcompletionrequest.md
7573
- docs/models/chatcompletionrequesttoolchoice.md
@@ -78,6 +76,8 @@ generatedFiles:
7876
- docs/models/chatcompletionstreamrequestmessages.md
7977
- docs/models/chatcompletionstreamrequeststop.md
8078
- docs/models/chatcompletionstreamrequesttoolchoice.md
79+
- docs/models/chatmoderationrequest.md
80+
- docs/models/chatmoderationrequestinputs.md
8181
- docs/models/checkpointout.md
8282
- docs/models/classificationobject.md
8383
- docs/models/classificationrequest.md
@@ -99,6 +99,8 @@ generatedFiles:
9999
- docs/models/detailedjoboutobject.md
100100
- docs/models/detailedjoboutrepositories.md
101101
- docs/models/detailedjoboutstatus.md
102+
- docs/models/document.md
103+
- docs/models/documenturlchunk.md
102104
- docs/models/embeddingrequest.md
103105
- docs/models/embeddingresponse.md
104106
- docs/models/embeddingresponsedata.md
@@ -166,9 +168,14 @@ generatedFiles:
166168
- docs/models/modelcapabilities.md
167169
- docs/models/modellist.md
168170
- docs/models/object.md
171+
- docs/models/ocrimageobject.md
172+
- docs/models/ocrpagedimensions.md
173+
- docs/models/ocrpageobject.md
174+
- docs/models/ocrrequest.md
175+
- docs/models/ocrresponse.md
176+
- docs/models/ocrusageinfo.md
169177
- docs/models/one.md
170178
- docs/models/prediction.md
171-
- docs/models/predictiontype.md
172179
- docs/models/queryparamstatus.md
173180
- docs/models/referencechunk.md
174181
- docs/models/referencechunktype.md
@@ -227,6 +234,7 @@ generatedFiles:
227234
- docs/sdks/mistral/README.md
228235
- docs/sdks/mistraljobs/README.md
229236
- docs/sdks/models/README.md
237+
- docs/sdks/ocr/README.md
230238
- poetry.toml
231239
- py.typed
232240
- pylintrc
@@ -261,11 +269,11 @@ generatedFiles:
261269
- src/mistralai/models/batchjobout.py
262270
- src/mistralai/models/batchjobsout.py
263271
- src/mistralai/models/batchjobstatus.py
264-
- src/mistralai/models/chatclassificationrequest.py
265272
- src/mistralai/models/chatcompletionchoice.py
266273
- src/mistralai/models/chatcompletionrequest.py
267274
- src/mistralai/models/chatcompletionresponse.py
268275
- src/mistralai/models/chatcompletionstreamrequest.py
276+
- src/mistralai/models/chatmoderationrequest.py
269277
- src/mistralai/models/checkpointout.py
270278
- src/mistralai/models/classificationobject.py
271279
- src/mistralai/models/classificationrequest.py
@@ -279,6 +287,7 @@ generatedFiles:
279287
- src/mistralai/models/deletemodelout.py
280288
- src/mistralai/models/deltamessage.py
281289
- src/mistralai/models/detailedjobout.py
290+
- src/mistralai/models/documenturlchunk.py
282291
- src/mistralai/models/embeddingrequest.py
283292
- src/mistralai/models/embeddingresponse.py
284293
- src/mistralai/models/embeddingresponsedata.py
@@ -327,6 +336,12 @@ generatedFiles:
327336
- src/mistralai/models/metricout.py
328337
- src/mistralai/models/modelcapabilities.py
329338
- src/mistralai/models/modellist.py
339+
- src/mistralai/models/ocrimageobject.py
340+
- src/mistralai/models/ocrpagedimensions.py
341+
- src/mistralai/models/ocrpageobject.py
342+
- src/mistralai/models/ocrrequest.py
343+
- src/mistralai/models/ocrresponse.py
344+
- src/mistralai/models/ocrusageinfo.py
330345
- src/mistralai/models/prediction.py
331346
- src/mistralai/models/referencechunk.py
332347
- src/mistralai/models/responseformat.py
@@ -357,6 +372,7 @@ generatedFiles:
357372
- src/mistralai/models/wandbintegration.py
358373
- src/mistralai/models/wandbintegrationout.py
359374
- src/mistralai/models_.py
375+
- src/mistralai/ocr.py
360376
- src/mistralai/py.typed
361377
- src/mistralai/sdk.py
362378
- src/mistralai/sdkconfiguration.py
@@ -607,7 +623,7 @@ examples:
607623
embeddings_v1_embeddings_post:
608624
speakeasy-default-embeddings-v1-embeddings-post:
609625
requestBody:
610-
application/json: {"input": ["Embed this sentence.", "As well as this one."], "model": "mistral-embed"}
626+
application/json: {"model": "mistral-embed", "input": ["Embed this sentence.", "As well as this one."]}
611627
responses:
612628
"200":
613629
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}]}
@@ -616,7 +632,7 @@ examples:
616632
moderations_v1_moderations_post:
617633
speakeasy-default-moderations-v1-moderations-post:
618634
requestBody:
619-
application/json: {"input": ["<value>"]}
635+
application/json: {"model": "V90", "input": ["<value>"]}
620636
responses:
621637
"200":
622638
application/json: {"id": "mod-e5cc70bb28c444948073e77776eb30ef"}
@@ -625,11 +641,20 @@ examples:
625641
moderations_chat_v1_chat_moderations_post:
626642
speakeasy-default-moderations-chat-v1-chat-moderations-post:
627643
requestBody:
628-
application/json: {"input": [[{"content": "<value>", "role": "tool"}, {"content": "<value>", "role": "tool"}, {"content": "<value>", "role": "tool"}], [{"prefix": false, "role": "assistant"}, {"content": "<value>", "role": "user"}, {"prefix": false, "role": "assistant"}]], "model": "Roadster"}
644+
application/json: {"model": "Roadster", "input": [[{"content": "<value>", "role": "tool"}, {"content": "<value>", "role": "tool"}, {"content": "<value>", "role": "tool"}], [{"prefix": false, "role": "assistant"}, {"content": "<value>", "role": "user"}, {"prefix": false, "role": "assistant"}]], "truncate_for_context_length": false}
629645
responses:
630646
"200":
631647
application/json: {"id": "mod-e5cc70bb28c444948073e77776eb30ef"}
632648
"422":
633649
application/json: {}
650+
ocr_v1_ocr_post:
651+
speakeasy-default-ocr-v1-ocr-post:
652+
requestBody:
653+
application/json: {"model": "Focus", "document": {"document_url": "https://dutiful-horst.org"}}
654+
responses:
655+
"200":
656+
application/json: {"pages": [], "model": "A4", "usage_info": {"pages_processed": 442675}}
657+
"422":
658+
application/json: {}
634659
examplesVersion: 1.0.0
635660
generatedTests: {}

.speakeasy/gen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ generation:
1313
oAuth2ClientCredentialsEnabled: true
1414
oAuth2PasswordEnabled: false
1515
python:
16-
version: 1.5.0
16+
version: 1.5.1
1717
additionalDependencies:
1818
dev:
1919
pytest: ^8.2.2

.speakeasy/workflow.lock

+7-6
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ sources:
1414
- latest
1515
mistral-openapi:
1616
sourceNamespace: mistral-openapi
17-
sourceRevisionDigest: sha256:af4a2854e017abc0ec9e4b557186611dcd69468d82d5ac7f81bfbe49165fc18d
18-
sourceBlobDigest: sha256:9f1bbc418fba3c7b5031bacdf9d431aff476fb4b2aa3838ed50fb3922563703c
17+
sourceRevisionDigest: sha256:bdfe3bd4e867529e1821e0f195c2d5832083f7699315f4a42d6b5551bd7847a3
18+
sourceBlobDigest: sha256:7e8a475b75404d724fc7936bd6f585b8e5226d3dca00ab4b69807b53fb63151b
1919
tags:
2020
- latest
21+
- speakeasy-sdk-regen-1741279153
2122
targets:
2223
mistralai-azure-sdk:
2324
source: mistral-azure-source
@@ -36,13 +37,13 @@ targets:
3637
mistralai-sdk:
3738
source: mistral-openapi
3839
sourceNamespace: mistral-openapi
39-
sourceRevisionDigest: sha256:af4a2854e017abc0ec9e4b557186611dcd69468d82d5ac7f81bfbe49165fc18d
40-
sourceBlobDigest: sha256:9f1bbc418fba3c7b5031bacdf9d431aff476fb4b2aa3838ed50fb3922563703c
40+
sourceRevisionDigest: sha256:bdfe3bd4e867529e1821e0f195c2d5832083f7699315f4a42d6b5551bd7847a3
41+
sourceBlobDigest: sha256:7e8a475b75404d724fc7936bd6f585b8e5226d3dca00ab4b69807b53fb63151b
4142
codeSamplesNamespace: mistral-openapi-code-samples
42-
codeSamplesRevisionDigest: sha256:cbf9b277d16c47816fc5d63b4c69cf0fbd1fe99d424c34ab465d2b61fcc6e5e8
43+
codeSamplesRevisionDigest: sha256:ba10be893f3e6dae275eb8fb09a688f3652de81eebd314427f28c274800edc48
4344
workflow:
4445
workflowVersion: 1.0.0
45-
speakeasyVersion: latest
46+
speakeasyVersion: 1.477.0
4647
sources:
4748
mistral-azure-source:
4849
inputs:

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,10 @@ The documentation for the GCP SDK is available [here](packages/mistralai_gcp/REA
442442
* [archive](docs/sdks/models/README.md#archive) - Archive Fine Tuned Model
443443
* [unarchive](docs/sdks/models/README.md#unarchive) - Unarchive Fine Tuned Model
444444

445+
### [ocr](docs/sdks/ocr/README.md)
446+
447+
* [process](docs/sdks/ocr/README.md#process) - OCR
448+
445449
</details>
446450
<!-- End Available Resources and Operations [operations] -->
447451

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,14 @@ Based on:
158158
### Generated
159159
- [python v1.5.0] .
160160
### Releases
161-
- [PyPI v1.5.0] https://pypi.org/project/mistralai/1.5.0 - .
161+
- [PyPI v1.5.0] https://pypi.org/project/mistralai/1.5.0 - .
162+
163+
## 2025-03-06 16:38:57
164+
### Changes
165+
Based on:
166+
- OpenAPI Doc
167+
- Speakeasy CLI 1.477.0 (2.497.0) https://github.com/speakeasy-api/speakeasy
168+
### Generated
169+
- [python v1.5.1] .
170+
### Releases
171+
- [PyPI v1.5.1] https://pypi.org/project/mistralai/1.5.1 - .

docs/models/assistantmessage.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
8-
| `content` | [OptionalNullable[models.AssistantMessageContent]](../models/assistantmessagecontent.md) | :heavy_minus_sign: | N/A |
9-
| `tool_calls` | List[[models.ToolCall](../models/toolcall.md)] | :heavy_minus_sign: | N/A |
10-
| `prefix` | *Optional[bool]* | :heavy_minus_sign: | N/A |
11-
| `role` | [Optional[models.AssistantMessageRole]](../models/assistantmessagerole.md) | :heavy_minus_sign: | N/A |
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
8+
| `content` | [OptionalNullable[models.AssistantMessageContent]](../models/assistantmessagecontent.md) | :heavy_minus_sign: | N/A |
9+
| `tool_calls` | List[[models.ToolCall](../models/toolcall.md)] | :heavy_minus_sign: | N/A |
10+
| `prefix` | *Optional[bool]* | :heavy_minus_sign: | Set this to `true` when adding an assistant message as prefix to condition the model response. The role of the prefix message is to force the model to start its answer by the content of the message. |
11+
| `role` | [Optional[models.AssistantMessageRole]](../models/assistantmessagerole.md) | :heavy_minus_sign: | N/A |

docs/models/chatclassificationrequest.md

-9
This file was deleted.

0 commit comments

Comments
 (0)