Skip to content

Commit 7970744

Browse files
github-actions[bot]speakeasybotdumontg
authored
chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK [v1] 1.12.1 (#344)
* ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.685.0 * Fixing the version in pyproject.toml and removing opentelemetry-semantic-conventions --------- Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: Guillaume Dumont <guillaume.dumont@mistral.ai>
1 parent 7b87477 commit 7970744

16 files changed

Lines changed: 86 additions & 46 deletions

File tree

.speakeasy/gen.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ management:
55
docVersion: 1.0.0
66
speakeasyVersion: 1.685.0
77
generationVersion: 2.794.1
8-
releaseVersion: 1.12.0
9-
configChecksum: 862d9a8667674972c091f9db84d42ba0
8+
releaseVersion: 1.12.1
9+
configChecksum: c8d27e04a1f2d19a5b8a6a99ce76a2dd
1010
repoURL: https://github.com/mistralai/client-python.git
1111
installationURL: https://github.com/mistralai/client-python.git
1212
published: true
1313
persistentEdits:
14-
generation_id: 00cab5ea-60fa-456d-ad3f-1ae32427d619
15-
pristine_commit_hash: b6e4b5c0cd6a42df18b2e7aa44ac696d48576d06
16-
pristine_tree_hash: b358b046bcef8a5f9b8898d98a4d9fbf82b52e6e
14+
generation_id: 3ed96bab-ac8a-4fd4-8026-5b87231208b3
15+
pristine_commit_hash: eb99847421dc744e1dfdbdde54e3dd8716f2236d
16+
pristine_tree_hash: 38af455e65a632821535f056231acfd646e6ec78
1717
features:
1818
python:
1919
additionalDependencies: 1.0.0
@@ -1869,8 +1869,8 @@ trackedFiles:
18691869
pristine_git_object: 6d0f3e1166cb0271f89f5ba83441c88199d7a432
18701870
src/mistralai/_version.py:
18711871
id: 37b53ba66d7f
1872-
last_write_checksum: sha1:a4d76992b028e2d138e2f7f6d3087c2a606a21c7
1873-
pristine_git_object: 6ee91593a9fbcd6c53eae810c1c2d0120f56262e
1872+
last_write_checksum: sha1:82043be53989cf0e3677bb42f395971d7cfde06f
1873+
pristine_git_object: 02ead608278cede5f55e00917bc91198f77e9157
18741874
src/mistralai/accesses.py:
18751875
id: 98cb4addd052
18761876
last_write_checksum: sha1:5d9d495274d67b1343ba99d755c1c01c64c2ead1

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ generation:
2626
generateNewTests: false
2727
skipResponseBodyAssertions: false
2828
python:
29-
version: 1.12.0
29+
version: 1.12.1
3030
additionalDependencies:
3131
dev:
3232
pytest: ^8.2.2

.speakeasy/workflow.lock

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ speakeasyVersion: 1.685.0
22
sources:
33
mistral-azure-source:
44
sourceNamespace: mistral-openapi-azure
5-
sourceRevisionDigest: sha256:544a7fd4d099e72a9a12681b326d44201f1b163e4df2f5fd643d831167255d84
6-
sourceBlobDigest: sha256:41c72401329a30983907c32a60063da8ccd82137cf79d7f452089b5b83bb9d92
5+
sourceRevisionDigest: sha256:323b2b01aa853e3deba99c1886287115e99f4d74363c5fcf1e8bd79a5ba317b8
6+
sourceBlobDigest: sha256:bc07d2a4d5f52134bc3e9a16af2d2bd7ec63ca074793ff465a701fc484bff656
77
tags:
88
- latest
99
mistral-google-cloud-source:
1010
sourceNamespace: mistral-openapi-google-cloud
11-
sourceRevisionDigest: sha256:e3dd3079347edf744151936aaee4ec0ce3eeeb8f46b5c7f31f8e224221e879d4
12-
sourceBlobDigest: sha256:7a525230930debff23fec4e92e3ad2a57889ea46de86cc96d519615709ae8a16
11+
sourceRevisionDigest: sha256:bcf3b68254cc72e69c457440d3b900cc2e231c0beaf5e87a93c14e8358cb3220
12+
sourceBlobDigest: sha256:7d46ff27a32d41a91266b2633ba15151b9d7a30b39a2a039d24d8d56a03acc00
1313
tags:
1414
- latest
1515
mistral-openapi:
@@ -22,24 +22,24 @@ targets:
2222
mistralai-azure-sdk:
2323
source: mistral-azure-source
2424
sourceNamespace: mistral-openapi-azure
25-
sourceRevisionDigest: sha256:544a7fd4d099e72a9a12681b326d44201f1b163e4df2f5fd643d831167255d84
26-
sourceBlobDigest: sha256:41c72401329a30983907c32a60063da8ccd82137cf79d7f452089b5b83bb9d92
25+
sourceRevisionDigest: sha256:323b2b01aa853e3deba99c1886287115e99f4d74363c5fcf1e8bd79a5ba317b8
26+
sourceBlobDigest: sha256:bc07d2a4d5f52134bc3e9a16af2d2bd7ec63ca074793ff465a701fc484bff656
2727
codeSamplesNamespace: mistral-openapi-azure-code-samples
28-
codeSamplesRevisionDigest: sha256:57821a9bf6cfe7001dfcbcaa2f17b233b98c2f79e2d7588540c41750f10b9c05
28+
codeSamplesRevisionDigest: sha256:5148ec755a5ae48826a8b0b099271811fcca88df7d93a085c50db3a23c2ef64e
2929
mistralai-gcp-sdk:
3030
source: mistral-google-cloud-source
3131
sourceNamespace: mistral-openapi-google-cloud
32-
sourceRevisionDigest: sha256:e3dd3079347edf744151936aaee4ec0ce3eeeb8f46b5c7f31f8e224221e879d4
33-
sourceBlobDigest: sha256:7a525230930debff23fec4e92e3ad2a57889ea46de86cc96d519615709ae8a16
32+
sourceRevisionDigest: sha256:bcf3b68254cc72e69c457440d3b900cc2e231c0beaf5e87a93c14e8358cb3220
33+
sourceBlobDigest: sha256:7d46ff27a32d41a91266b2633ba15151b9d7a30b39a2a039d24d8d56a03acc00
3434
codeSamplesNamespace: mistral-openapi-google-cloud-code-samples
35-
codeSamplesRevisionDigest: sha256:404d5964361b3ced085b11e4b8408c36a4a92efe12a97f7497919efdf7594f6f
35+
codeSamplesRevisionDigest: sha256:4e5111fb2966963f3bb87ca2dff7dd55c1c25734d193e37f70b5c9802fb3ae59
3636
mistralai-sdk:
3737
source: mistral-openapi
3838
sourceNamespace: mistral-openapi
3939
sourceRevisionDigest: sha256:4e49849eba5334a3fe4a3d081baa9afdecd8f41dfc4c2a5115bc19ead4d92d13
4040
sourceBlobDigest: sha256:3ab3c61ac6a4e9fab37d924d516838ca27dd7e57a1b5e9059d4db2ef29efec56
4141
codeSamplesNamespace: mistral-openapi-code-samples
42-
codeSamplesRevisionDigest: sha256:8fa56ecd9dd6e5f831fb96c4cfd00c65f617a03ff67f876d75ecdf28cb5bbf3c
42+
codeSamplesRevisionDigest: sha256:6bc422bff2423139af8960acdc8a1b2ea98615f012659e05a4ac7c1e312eb863
4343
workflow:
4444
workflowVersion: 1.0.0
4545
speakeasyVersion: 1.685.0

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,4 +368,14 @@ Based on:
368368
### Generated
369369
- [python v1.12.0] .
370370
### Releases
371-
- [PyPI v1.12.0] https://pypi.org/project/mistralai/1.12.0 - .
371+
- [PyPI v1.12.0] https://pypi.org/project/mistralai/1.12.0 - .
372+
373+
## 2026-02-10 13:37:02
374+
### Changes
375+
Based on:
376+
- OpenAPI Doc
377+
- Speakeasy CLI 1.685.0 (2.794.1) https://github.com/speakeasy-api/speakeasy
378+
### Generated
379+
- [python v1.12.1] .
380+
### Releases
381+
- [PyPI v1.12.1] https://pypi.org/project/mistralai/1.12.1 - .

packages/mistralai_azure/.speakeasy/gen.lock

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
lockVersion: 2.0.0
22
id: dc40fa48-2c4d-46ad-ac8b-270749770f34
33
management:
4-
docChecksum: eb0d097e3bdb7c0784f34ca2af2ce554
4+
docChecksum: ade191d4634cb219a41d38f7e9078630
55
docVersion: 1.0.0
66
speakeasyVersion: 1.685.0
77
generationVersion: 2.794.1
@@ -12,9 +12,9 @@ management:
1212
installationURL: https://github.com/mistralai/client-python.git#subdirectory=packages/mistralai_azure
1313
published: true
1414
persistentEdits:
15-
generation_id: 0d580549-db09-4078-890b-62de0e5fe937
16-
pristine_commit_hash: b561cb140a25a721f54d0aad3c9a03d419c8fc19
17-
pristine_tree_hash: d122bdae045ddf46c910e2f5da53d78da18ef009
15+
generation_id: 7de9be19-b27f-4222-afb1-35e11deb09f7
16+
pristine_commit_hash: 60113d2c49489b846001fc39393d643b2709bb25
17+
pristine_tree_hash: 50ed42d2e4b3d4ecd639935cd1511220354a41d7
1818
features:
1919
python:
2020
additionalDependencies: 1.0.0
@@ -197,8 +197,8 @@ trackedFiles:
197197
pristine_git_object: 1d394500e8ffdd140457575568fc2ce465a1cc3a
198198
docs/models/mistralpromptmode.md:
199199
id: d17d5db4d3b6
200-
last_write_checksum: sha1:5ccd31d3804f70b6abb0e5a00bda57b9102225e3
201-
pristine_git_object: 7416e2037c507d19ac02aed914da1208a2fed0a1
200+
last_write_checksum: sha1:abcb7205c5086169c7d9449d15ac142448a7d258
201+
pristine_git_object: c3409d03b9646e21a3793372d06dcae6fef95463
202202
docs/models/ocrimageobject.md:
203203
id: b72f3c5853b2
204204
last_write_checksum: sha1:90c5158dec6a7b31c858677b6a8efa1e3cabd504
@@ -213,8 +213,8 @@ trackedFiles:
213213
pristine_git_object: 02473d44f73485fd7b7f0031d51bfac835d4036e
214214
docs/models/ocrrequest.md:
215215
id: 6862a3fc2d0f
216-
last_write_checksum: sha1:f32fcc5916f9eedf7adfaa60beda30a9ec42f32e
217-
pristine_git_object: 76e4da925937fd4bdd42307f116a74d4dbf2bea3
216+
last_write_checksum: sha1:9311e2c87f8f4512c35a717d3b063f2861f878d4
217+
pristine_git_object: 87929e53f8a74823b82ecce56d15f22228134fa6
218218
docs/models/ocrresponse.md:
219219
id: 30042328fb78
220220
last_write_checksum: sha1:8e4a4ae404ea752f3e9f1108c2a5f89ed6cfb143
@@ -485,8 +485,8 @@ trackedFiles:
485485
pristine_git_object: c5bf17528c7cf25bac8f8874f58692c601fcdd76
486486
src/mistralai_azure/models/mistralpromptmode.py:
487487
id: f62a521bcdae
488-
last_write_checksum: sha1:fcb16c10986bd6946f79b9e330a4be9f26f7e724
489-
pristine_git_object: 22fb643896688b68af238f6ac75cf41a00b0511b
488+
last_write_checksum: sha1:82190bc14d2e51440723176cb8108791485c1180
489+
pristine_git_object: 77230b7e5e61cc662fdc52c72e8b817a15e183c3
490490
src/mistralai_azure/models/no_response_error.py:
491491
id: 54523e14f29b
492492
last_write_checksum: sha1:7f326424a7d5ae1bcd5c89a0d6b3dbda9138942f
@@ -505,8 +505,8 @@ trackedFiles:
505505
pristine_git_object: e95718001e07bb89ba2fc9094f88b894572148bb
506506
src/mistralai_azure/models/ocrrequest.py:
507507
id: 4e574d5fb9be
508-
last_write_checksum: sha1:6ca937598dd92c6c6ab7b8d59363595a3e8760e9
509-
pristine_git_object: 565a0a30a7f9fae374c14fb5fcb0f19385cf05e4
508+
last_write_checksum: sha1:1b03dc8b392069f6b142228e74179c8341b09ffa
509+
pristine_git_object: e9c23afcdd7440660f17c7819406d7e603eabbec
510510
src/mistralai_azure/models/ocrresponse.py:
511511
id: 326a4d9fab25
512512
last_write_checksum: sha1:cf597498a5841a56bbd1aeb8478bd57a01d93cb1
@@ -601,8 +601,8 @@ trackedFiles:
601601
pristine_git_object: 4caff4a6b74aeb322bf42cd2070b7bd576ca834a
602602
src/mistralai_azure/ocr.py:
603603
id: 77e2e0f594ad
604-
last_write_checksum: sha1:a455095c62c2dfad071d70682c2f57e7d64934db
605-
pristine_git_object: da823f816dda9d462a795e9b946d5634ff6d48e2
604+
last_write_checksum: sha1:7daae9b0c14093d6d0bc0258b0bce008cb845a1e
605+
pristine_git_object: 31e27f6eaa6dcc2b8450656d4a59dd4a7a50a29a
606606
src/mistralai_azure/py.typed:
607607
id: 98df238e554c
608608
last_write_checksum: sha1:8efc425ffe830805ffcc0f3055871bdcdc542c60

packages/mistralai_azure/docs/models/mistralpromptmode.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# MistralPromptMode
22

3+
Available options to the prompt_mode argument on the chat completion endpoint.
4+
Values represent high-level intent. Assignment to actual SPs is handled internally.
5+
System prompt may include knowledge cutoff date, model capabilities, tone to use, safety guidelines, etc.
6+
37

48
## Values
59

packages/mistralai_azure/docs/models/ocrrequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
| `image_min_size` | *OptionalNullable[int]* | :heavy_minus_sign: | Minimum height and width of image to extract | |
1515
| `bbox_annotation_format` | [OptionalNullable[models.ResponseFormat]](../models/responseformat.md) | :heavy_minus_sign: | Structured output class for extracting useful information from each extracted bounding box / image from document. Only json_schema is valid for this field | {<br/>"type": "text"<br/>} |
1616
| `document_annotation_format` | [OptionalNullable[models.ResponseFormat]](../models/responseformat.md) | :heavy_minus_sign: | Structured output class for extracting useful information from the entire document. Only json_schema is valid for this field | {<br/>"type": "text"<br/>} |
17+
| `document_annotation_prompt` | *OptionalNullable[str]* | :heavy_minus_sign: | Optional prompt to guide the model in extracting structured output from the entire document. A document_annotation_format must be provided. | |
1718
| `table_format` | [OptionalNullable[models.TableFormat]](../models/tableformat.md) | :heavy_minus_sign: | N/A | |
1819
| `extract_header` | *Optional[bool]* | :heavy_minus_sign: | N/A | |
1920
| `extract_footer` | *Optional[bool]* | :heavy_minus_sign: | N/A | |

packages/mistralai_azure/src/mistralai_azure/models/mistralpromptmode.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@
66

77

88
MistralPromptMode = Union[Literal["reasoning",], UnrecognizedStr]
9+
r"""Available options to the prompt_mode argument on the chat completion endpoint.
10+
Values represent high-level intent. Assignment to actual SPs is handled internally.
11+
System prompt may include knowledge cutoff date, model capabilities, tone to use, safety guidelines, etc.
12+
"""

packages/mistralai_azure/src/mistralai_azure/models/ocrrequest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ class OCRRequestTypedDict(TypedDict):
5151
r"""Structured output class for extracting useful information from each extracted bounding box / image from document. Only json_schema is valid for this field"""
5252
document_annotation_format: NotRequired[Nullable[ResponseFormatTypedDict]]
5353
r"""Structured output class for extracting useful information from the entire document. Only json_schema is valid for this field"""
54+
document_annotation_prompt: NotRequired[Nullable[str]]
55+
r"""Optional prompt to guide the model in extracting structured output from the entire document. A document_annotation_format must be provided."""
5456
table_format: NotRequired[Nullable[TableFormat]]
5557
extract_header: NotRequired[bool]
5658
extract_footer: NotRequired[bool]
@@ -82,6 +84,9 @@ class OCRRequest(BaseModel):
8284
document_annotation_format: OptionalNullable[ResponseFormat] = UNSET
8385
r"""Structured output class for extracting useful information from the entire document. Only json_schema is valid for this field"""
8486

87+
document_annotation_prompt: OptionalNullable[str] = UNSET
88+
r"""Optional prompt to guide the model in extracting structured output from the entire document. A document_annotation_format must be provided."""
89+
8590
table_format: OptionalNullable[TableFormat] = UNSET
8691

8792
extract_header: Optional[bool] = None
@@ -98,6 +103,7 @@ def serialize_model(self, handler):
98103
"image_min_size",
99104
"bbox_annotation_format",
100105
"document_annotation_format",
106+
"document_annotation_prompt",
101107
"table_format",
102108
"extract_header",
103109
"extract_footer",
@@ -110,6 +116,7 @@ def serialize_model(self, handler):
110116
"image_min_size",
111117
"bbox_annotation_format",
112118
"document_annotation_format",
119+
"document_annotation_prompt",
113120
"table_format",
114121
]
115122
null_default_fields = []

0 commit comments

Comments
 (0)