Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ management:
docVersion: 1.0.0
speakeasyVersion: 1.685.0
generationVersion: 2.794.1
releaseVersion: 1.12.0
configChecksum: 862d9a8667674972c091f9db84d42ba0
releaseVersion: 1.12.1
configChecksum: c8d27e04a1f2d19a5b8a6a99ce76a2dd
repoURL: https://github.com/mistralai/client-python.git
installationURL: https://github.com/mistralai/client-python.git
published: true
persistentEdits:
generation_id: 00cab5ea-60fa-456d-ad3f-1ae32427d619
pristine_commit_hash: b6e4b5c0cd6a42df18b2e7aa44ac696d48576d06
pristine_tree_hash: b358b046bcef8a5f9b8898d98a4d9fbf82b52e6e
generation_id: 37ba4c89-7b7d-495d-a6f1-d6a096d5155c
pristine_commit_hash: 25b4fe2f9fd312bb71ab66ad91c0edb00c9fe801
pristine_tree_hash: 38af455e65a632821535f056231acfd646e6ec78
features:
python:
additionalDependencies: 1.0.0
Expand Down Expand Up @@ -1869,8 +1869,8 @@ trackedFiles:
pristine_git_object: 6d0f3e1166cb0271f89f5ba83441c88199d7a432
src/mistralai/_version.py:
id: 37b53ba66d7f
last_write_checksum: sha1:a4d76992b028e2d138e2f7f6d3087c2a606a21c7
pristine_git_object: 6ee91593a9fbcd6c53eae810c1c2d0120f56262e
last_write_checksum: sha1:82043be53989cf0e3677bb42f395971d7cfde06f
pristine_git_object: 02ead608278cede5f55e00917bc91198f77e9157
src/mistralai/accesses.py:
id: 98cb4addd052
last_write_checksum: sha1:5d9d495274d67b1343ba99d755c1c01c64c2ead1
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
python:
version: 1.12.0
version: 1.12.1
additionalDependencies:
dev:
pytest: ^8.2.2
Expand Down
22 changes: 11 additions & 11 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ speakeasyVersion: 1.685.0
sources:
mistral-azure-source:
sourceNamespace: mistral-openapi-azure
sourceRevisionDigest: sha256:544a7fd4d099e72a9a12681b326d44201f1b163e4df2f5fd643d831167255d84
sourceBlobDigest: sha256:41c72401329a30983907c32a60063da8ccd82137cf79d7f452089b5b83bb9d92
sourceRevisionDigest: sha256:323b2b01aa853e3deba99c1886287115e99f4d74363c5fcf1e8bd79a5ba317b8
sourceBlobDigest: sha256:bc07d2a4d5f52134bc3e9a16af2d2bd7ec63ca074793ff465a701fc484bff656
tags:
- latest
mistral-google-cloud-source:
sourceNamespace: mistral-openapi-google-cloud
sourceRevisionDigest: sha256:e3dd3079347edf744151936aaee4ec0ce3eeeb8f46b5c7f31f8e224221e879d4
sourceBlobDigest: sha256:7a525230930debff23fec4e92e3ad2a57889ea46de86cc96d519615709ae8a16
sourceRevisionDigest: sha256:bcf3b68254cc72e69c457440d3b900cc2e231c0beaf5e87a93c14e8358cb3220
sourceBlobDigest: sha256:7d46ff27a32d41a91266b2633ba15151b9d7a30b39a2a039d24d8d56a03acc00
tags:
- latest
mistral-openapi:
Expand All @@ -22,24 +22,24 @@ targets:
mistralai-azure-sdk:
source: mistral-azure-source
sourceNamespace: mistral-openapi-azure
sourceRevisionDigest: sha256:544a7fd4d099e72a9a12681b326d44201f1b163e4df2f5fd643d831167255d84
sourceBlobDigest: sha256:41c72401329a30983907c32a60063da8ccd82137cf79d7f452089b5b83bb9d92
sourceRevisionDigest: sha256:323b2b01aa853e3deba99c1886287115e99f4d74363c5fcf1e8bd79a5ba317b8
sourceBlobDigest: sha256:bc07d2a4d5f52134bc3e9a16af2d2bd7ec63ca074793ff465a701fc484bff656
codeSamplesNamespace: mistral-openapi-azure-code-samples
codeSamplesRevisionDigest: sha256:57821a9bf6cfe7001dfcbcaa2f17b233b98c2f79e2d7588540c41750f10b9c05
codeSamplesRevisionDigest: sha256:24fd10bc884ec8595f6d2f4fe7293dc8f14a77123661142ebad1b7946258288b
mistralai-gcp-sdk:
source: mistral-google-cloud-source
sourceNamespace: mistral-openapi-google-cloud
sourceRevisionDigest: sha256:e3dd3079347edf744151936aaee4ec0ce3eeeb8f46b5c7f31f8e224221e879d4
sourceBlobDigest: sha256:7a525230930debff23fec4e92e3ad2a57889ea46de86cc96d519615709ae8a16
sourceRevisionDigest: sha256:bcf3b68254cc72e69c457440d3b900cc2e231c0beaf5e87a93c14e8358cb3220
sourceBlobDigest: sha256:7d46ff27a32d41a91266b2633ba15151b9d7a30b39a2a039d24d8d56a03acc00
codeSamplesNamespace: mistral-openapi-google-cloud-code-samples
codeSamplesRevisionDigest: sha256:404d5964361b3ced085b11e4b8408c36a4a92efe12a97f7497919efdf7594f6f
codeSamplesRevisionDigest: sha256:528619a34f139fd948ce16e3217c53e91aa6b998f2a246af949aaf4c1424e609
mistralai-sdk:
source: mistral-openapi
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:4e49849eba5334a3fe4a3d081baa9afdecd8f41dfc4c2a5115bc19ead4d92d13
sourceBlobDigest: sha256:3ab3c61ac6a4e9fab37d924d516838ca27dd7e57a1b5e9059d4db2ef29efec56
codeSamplesNamespace: mistral-openapi-code-samples
codeSamplesRevisionDigest: sha256:8fa56ecd9dd6e5f831fb96c4cfd00c65f617a03ff67f876d75ecdf28cb5bbf3c
codeSamplesRevisionDigest: sha256:d53938b6897611d9540054654fbacf97c5467e902ca5562ccd3eff05afe45f70
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.685.0
Expand Down
34 changes: 17 additions & 17 deletions packages/mistralai_azure/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
lockVersion: 2.0.0
id: dc40fa48-2c4d-46ad-ac8b-270749770f34
management:
docChecksum: eb0d097e3bdb7c0784f34ca2af2ce554
docChecksum: ade191d4634cb219a41d38f7e9078630
docVersion: 1.0.0
speakeasyVersion: 1.685.0
generationVersion: 2.794.1
releaseVersion: 1.8.1
configChecksum: 0448ba634aa36625c6ac276e17e3b3b5
configChecksum: c5f5d0f264b3bb27cada85a3cb49fbf1
repoURL: https://github.com/mistralai/client-python.git
repoSubDirectory: packages/mistralai_azure
installationURL: https://github.com/mistralai/client-python.git#subdirectory=packages/mistralai_azure
published: true
persistentEdits:
generation_id: 0d580549-db09-4078-890b-62de0e5fe937
pristine_commit_hash: b561cb140a25a721f54d0aad3c9a03d419c8fc19
pristine_tree_hash: d122bdae045ddf46c910e2f5da53d78da18ef009
generation_id: 31021774-68f5-4341-8b09-0943446e1d8f
pristine_commit_hash: 5388f51a2966df9aad93502bb0fb24952d369f5f
pristine_tree_hash: bc64632c3e5bb7f80fe9e4bb5975a24c6f833f57
features:
python:
additionalDependencies: 1.0.0
Expand Down Expand Up @@ -197,8 +197,8 @@ trackedFiles:
pristine_git_object: 1d394500e8ffdd140457575568fc2ce465a1cc3a
docs/models/mistralpromptmode.md:
id: d17d5db4d3b6
last_write_checksum: sha1:5ccd31d3804f70b6abb0e5a00bda57b9102225e3
pristine_git_object: 7416e2037c507d19ac02aed914da1208a2fed0a1
last_write_checksum: sha1:abcb7205c5086169c7d9449d15ac142448a7d258
pristine_git_object: c3409d03b9646e21a3793372d06dcae6fef95463
docs/models/ocrimageobject.md:
id: b72f3c5853b2
last_write_checksum: sha1:90c5158dec6a7b31c858677b6a8efa1e3cabd504
Expand All @@ -213,8 +213,8 @@ trackedFiles:
pristine_git_object: 02473d44f73485fd7b7f0031d51bfac835d4036e
docs/models/ocrrequest.md:
id: 6862a3fc2d0f
last_write_checksum: sha1:f32fcc5916f9eedf7adfaa60beda30a9ec42f32e
pristine_git_object: 76e4da925937fd4bdd42307f116a74d4dbf2bea3
last_write_checksum: sha1:9311e2c87f8f4512c35a717d3b063f2861f878d4
pristine_git_object: 87929e53f8a74823b82ecce56d15f22228134fa6
docs/models/ocrresponse.md:
id: 30042328fb78
last_write_checksum: sha1:8e4a4ae404ea752f3e9f1108c2a5f89ed6cfb143
Expand Down Expand Up @@ -385,8 +385,8 @@ trackedFiles:
pristine_git_object: 0c22d7ebccdd64097033454b7c698d10ee59987d
src/mistralai_azure/_version.py:
id: 7711a0bb1da3
last_write_checksum: sha1:9a446d67d6a86cdf9d9e3447c1c09a4f719b2c9b
pristine_git_object: 79277f9a358b4c851363e11e1e8f534779e9f271
last_write_checksum: sha1:2fefcf368efd864a32ee9e3f9ce09eff1853e5b0
pristine_git_object: 58d84eac23f97136fefae4c465a36fe35465440f
src/mistralai_azure/basesdk.py:
id: 7d825dbc7d6e
last_write_checksum: sha1:4070786599952b3c603d1384d87d7b92bb13b974
Expand Down Expand Up @@ -485,8 +485,8 @@ trackedFiles:
pristine_git_object: c5bf17528c7cf25bac8f8874f58692c601fcdd76
src/mistralai_azure/models/mistralpromptmode.py:
id: f62a521bcdae
last_write_checksum: sha1:fcb16c10986bd6946f79b9e330a4be9f26f7e724
pristine_git_object: 22fb643896688b68af238f6ac75cf41a00b0511b
last_write_checksum: sha1:82190bc14d2e51440723176cb8108791485c1180
pristine_git_object: 77230b7e5e61cc662fdc52c72e8b817a15e183c3
src/mistralai_azure/models/no_response_error.py:
id: 54523e14f29b
last_write_checksum: sha1:7f326424a7d5ae1bcd5c89a0d6b3dbda9138942f
Expand All @@ -505,8 +505,8 @@ trackedFiles:
pristine_git_object: e95718001e07bb89ba2fc9094f88b894572148bb
src/mistralai_azure/models/ocrrequest.py:
id: 4e574d5fb9be
last_write_checksum: sha1:6ca937598dd92c6c6ab7b8d59363595a3e8760e9
pristine_git_object: 565a0a30a7f9fae374c14fb5fcb0f19385cf05e4
last_write_checksum: sha1:1b03dc8b392069f6b142228e74179c8341b09ffa
pristine_git_object: e9c23afcdd7440660f17c7819406d7e603eabbec
src/mistralai_azure/models/ocrresponse.py:
id: 326a4d9fab25
last_write_checksum: sha1:cf597498a5841a56bbd1aeb8478bd57a01d93cb1
Expand Down Expand Up @@ -601,8 +601,8 @@ trackedFiles:
pristine_git_object: 4caff4a6b74aeb322bf42cd2070b7bd576ca834a
src/mistralai_azure/ocr.py:
id: 77e2e0f594ad
last_write_checksum: sha1:a455095c62c2dfad071d70682c2f57e7d64934db
pristine_git_object: da823f816dda9d462a795e9b946d5634ff6d48e2
last_write_checksum: sha1:7daae9b0c14093d6d0bc0258b0bce008cb845a1e
pristine_git_object: 31e27f6eaa6dcc2b8450656d4a59dd4a7a50a29a
src/mistralai_azure/py.typed:
id: 98df238e554c
last_write_checksum: sha1:8efc425ffe830805ffcc0f3055871bdcdc542c60
Expand Down
4 changes: 4 additions & 0 deletions packages/mistralai_azure/docs/models/mistralpromptmode.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# MistralPromptMode

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


## Values

Expand Down
1 change: 1 addition & 0 deletions packages/mistralai_azure/docs/models/ocrrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
| `image_min_size` | *OptionalNullable[int]* | :heavy_minus_sign: | Minimum height and width of image to extract | |
| `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/>} |
| `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/>} |
| `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. | |
| `table_format` | [OptionalNullable[models.TableFormat]](../models/tableformat.md) | :heavy_minus_sign: | N/A | |
| `extract_header` | *Optional[bool]* | :heavy_minus_sign: | N/A | |
| `extract_footer` | *Optional[bool]* | :heavy_minus_sign: | N/A | |
2 changes: 1 addition & 1 deletion packages/mistralai_azure/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "mistralai_azure"
version = "1.8.0"
version = "1.8.1"
description = "Python Client SDK for the Mistral AI API in Azure."
authors = [{ name = "Mistral" }]
requires-python = ">=3.10"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@


MistralPromptMode = Union[Literal["reasoning",], UnrecognizedStr]
r"""Available options to the prompt_mode argument on the chat completion endpoint.
Values represent high-level intent. Assignment to actual SPs is handled internally.
System prompt may include knowledge cutoff date, model capabilities, tone to use, safety guidelines, etc.
"""
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ class OCRRequestTypedDict(TypedDict):
r"""Structured output class for extracting useful information from each extracted bounding box / image from document. Only json_schema is valid for this field"""
document_annotation_format: NotRequired[Nullable[ResponseFormatTypedDict]]
r"""Structured output class for extracting useful information from the entire document. Only json_schema is valid for this field"""
document_annotation_prompt: NotRequired[Nullable[str]]
r"""Optional prompt to guide the model in extracting structured output from the entire document. A document_annotation_format must be provided."""
table_format: NotRequired[Nullable[TableFormat]]
extract_header: NotRequired[bool]
extract_footer: NotRequired[bool]
Expand Down Expand Up @@ -82,6 +84,9 @@ class OCRRequest(BaseModel):
document_annotation_format: OptionalNullable[ResponseFormat] = UNSET
r"""Structured output class for extracting useful information from the entire document. Only json_schema is valid for this field"""

document_annotation_prompt: OptionalNullable[str] = UNSET
r"""Optional prompt to guide the model in extracting structured output from the entire document. A document_annotation_format must be provided."""

table_format: OptionalNullable[TableFormat] = UNSET

extract_header: Optional[bool] = None
Expand All @@ -98,6 +103,7 @@ def serialize_model(self, handler):
"image_min_size",
"bbox_annotation_format",
"document_annotation_format",
"document_annotation_prompt",
"table_format",
"extract_header",
"extract_footer",
Expand All @@ -110,6 +116,7 @@ def serialize_model(self, handler):
"image_min_size",
"bbox_annotation_format",
"document_annotation_format",
"document_annotation_prompt",
"table_format",
]
null_default_fields = []
Expand Down
Loading
Loading