From 50a19cbedd76dd703d61c84e05e60eb2d4057416 Mon Sep 17 00:00:00 2001 From: Guillaume Dumont Date: Tue, 10 Feb 2026 11:42:13 +0100 Subject: [PATCH 1/4] Remove explicit dependency on opentelemetry-semantic-conventions --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 2cb90876..b28c1ba2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,6 @@ dependencies = [ "opentelemetry-sdk (>=1.33.1,<2.0.0)", "opentelemetry-api (>=1.33.1,<2.0.0)", "opentelemetry-exporter-otlp-proto-http (>=1.37.0,<2.0.0)", - "opentelemetry-semantic-conventions (>=0.59b0,<0.60)", ] [project.optional-dependencies] From fe43b34f2021224872bc2293e056566ddf8de983 Mon Sep 17 00:00:00 2001 From: Guillaume Dumont Date: Tue, 10 Feb 2026 11:50:15 +0100 Subject: [PATCH 2/4] Regenerate the SDK with speakeasy --- .speakeasy/gen.lock | 14 ++++---- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 22 ++++++------ packages/mistralai_azure/.speakeasy/gen.lock | 36 +++++++++---------- packages/mistralai_azure/.speakeasy/gen.yaml | 2 +- .../docs/models/mistralpromptmode.md | 4 +++ .../mistralai_azure/docs/models/ocrrequest.md | 1 + packages/mistralai_azure/pyproject.toml | 2 +- .../src/mistralai_azure/_version.py | 4 +-- .../models/mistralpromptmode.py | 4 +++ .../src/mistralai_azure/models/ocrrequest.py | 7 ++++ .../src/mistralai_azure/ocr.py | 6 ++++ packages/mistralai_gcp/.speakeasy/gen.lock | 24 ++++++------- packages/mistralai_gcp/.speakeasy/gen.yaml | 2 +- .../docs/models/mistralpromptmode.md | 4 +++ packages/mistralai_gcp/pyproject.toml | 2 +- .../src/mistralai_gcp/_version.py | 4 +-- .../mistralai_gcp/models/mistralpromptmode.py | 4 +++ pyproject.toml | 1 + src/mistralai/_version.py | 4 +-- 20 files changed, 90 insertions(+), 59 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index f6c0f0a2..8341ffa0 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -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 @@ -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 diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 0cc6f059..43398b9d 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -26,7 +26,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false python: - version: 1.12.0 + version: 1.12.1 additionalDependencies: dev: pytest: ^8.2.2 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index bb904c64..3758cd4d 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -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: @@ -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 diff --git a/packages/mistralai_azure/.speakeasy/gen.lock b/packages/mistralai_azure/.speakeasy/gen.lock index 45ed9b17..658e64a8 100644 --- a/packages/mistralai_azure/.speakeasy/gen.lock +++ b/packages/mistralai_azure/.speakeasy/gen.lock @@ -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 + releaseVersion: 1.8.2 + 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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/packages/mistralai_azure/.speakeasy/gen.yaml b/packages/mistralai_azure/.speakeasy/gen.yaml index e2be4d84..4d676cfe 100644 --- a/packages/mistralai_azure/.speakeasy/gen.yaml +++ b/packages/mistralai_azure/.speakeasy/gen.yaml @@ -26,7 +26,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false python: - version: 1.8.1 + version: 1.8.2 additionalDependencies: dev: pytest: ^8.2.2 diff --git a/packages/mistralai_azure/docs/models/mistralpromptmode.md b/packages/mistralai_azure/docs/models/mistralpromptmode.md index 7416e203..c3409d03 100644 --- a/packages/mistralai_azure/docs/models/mistralpromptmode.md +++ b/packages/mistralai_azure/docs/models/mistralpromptmode.md @@ -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 diff --git a/packages/mistralai_azure/docs/models/ocrrequest.md b/packages/mistralai_azure/docs/models/ocrrequest.md index 76e4da92..87929e53 100644 --- a/packages/mistralai_azure/docs/models/ocrrequest.md +++ b/packages/mistralai_azure/docs/models/ocrrequest.md @@ -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 | {
"type": "text"
} | | `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 | {
"type": "text"
} | +| `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 | | \ No newline at end of file diff --git a/packages/mistralai_azure/pyproject.toml b/packages/mistralai_azure/pyproject.toml index d129a290..83275c4b 100644 --- a/packages/mistralai_azure/pyproject.toml +++ b/packages/mistralai_azure/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mistralai_azure" -version = "1.8.0" +version = "1.8.2" description = "Python Client SDK for the Mistral AI API in Azure." authors = [{ name = "Mistral" }] requires-python = ">=3.10" diff --git a/packages/mistralai_azure/src/mistralai_azure/_version.py b/packages/mistralai_azure/src/mistralai_azure/_version.py index 79277f9a..58d84eac 100644 --- a/packages/mistralai_azure/src/mistralai_azure/_version.py +++ b/packages/mistralai_azure/src/mistralai_azure/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "mistralai_azure" -__version__: str = "1.8.1" +__version__: str = "1.8.2" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.794.1" -__user_agent__: str = "speakeasy-sdk/python 1.8.1 2.794.1 1.0.0 mistralai_azure" +__user_agent__: str = "speakeasy-sdk/python 1.8.2 2.794.1 1.0.0 mistralai_azure" try: if __package__ is not None: diff --git a/packages/mistralai_azure/src/mistralai_azure/models/mistralpromptmode.py b/packages/mistralai_azure/src/mistralai_azure/models/mistralpromptmode.py index 22fb6438..77230b7e 100644 --- a/packages/mistralai_azure/src/mistralai_azure/models/mistralpromptmode.py +++ b/packages/mistralai_azure/src/mistralai_azure/models/mistralpromptmode.py @@ -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. +""" diff --git a/packages/mistralai_azure/src/mistralai_azure/models/ocrrequest.py b/packages/mistralai_azure/src/mistralai_azure/models/ocrrequest.py index 565a0a30..e9c23afc 100644 --- a/packages/mistralai_azure/src/mistralai_azure/models/ocrrequest.py +++ b/packages/mistralai_azure/src/mistralai_azure/models/ocrrequest.py @@ -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] @@ -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 @@ -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", @@ -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 = [] diff --git a/packages/mistralai_azure/src/mistralai_azure/ocr.py b/packages/mistralai_azure/src/mistralai_azure/ocr.py index da823f81..31e27f6e 100644 --- a/packages/mistralai_azure/src/mistralai_azure/ocr.py +++ b/packages/mistralai_azure/src/mistralai_azure/ocr.py @@ -25,6 +25,7 @@ def process( document_annotation_format: OptionalNullable[ Union[models.ResponseFormat, models.ResponseFormatTypedDict] ] = UNSET, + document_annotation_prompt: OptionalNullable[str] = UNSET, table_format: OptionalNullable[models.TableFormat] = UNSET, extract_header: Optional[bool] = None, extract_footer: Optional[bool] = None, @@ -44,6 +45,7 @@ def process( :param image_min_size: Minimum height and width of image to extract :param bbox_annotation_format: Structured output class for extracting useful information from each extracted bounding box / image from document. Only json_schema is valid for this field :param document_annotation_format: Structured output class for extracting useful information from the entire document. Only json_schema is valid for this field + :param document_annotation_prompt: Optional prompt to guide the model in extracting structured output from the entire document. A document_annotation_format must be provided. :param table_format: :param extract_header: :param extract_footer: @@ -76,6 +78,7 @@ def process( document_annotation_format=utils.get_pydantic_model( document_annotation_format, OptionalNullable[models.ResponseFormat] ), + document_annotation_prompt=document_annotation_prompt, table_format=table_format, extract_header=extract_header, extract_footer=extract_footer, @@ -155,6 +158,7 @@ async def process_async( document_annotation_format: OptionalNullable[ Union[models.ResponseFormat, models.ResponseFormatTypedDict] ] = UNSET, + document_annotation_prompt: OptionalNullable[str] = UNSET, table_format: OptionalNullable[models.TableFormat] = UNSET, extract_header: Optional[bool] = None, extract_footer: Optional[bool] = None, @@ -174,6 +178,7 @@ async def process_async( :param image_min_size: Minimum height and width of image to extract :param bbox_annotation_format: Structured output class for extracting useful information from each extracted bounding box / image from document. Only json_schema is valid for this field :param document_annotation_format: Structured output class for extracting useful information from the entire document. Only json_schema is valid for this field + :param document_annotation_prompt: Optional prompt to guide the model in extracting structured output from the entire document. A document_annotation_format must be provided. :param table_format: :param extract_header: :param extract_footer: @@ -206,6 +211,7 @@ async def process_async( document_annotation_format=utils.get_pydantic_model( document_annotation_format, OptionalNullable[models.ResponseFormat] ), + document_annotation_prompt=document_annotation_prompt, table_format=table_format, extract_header=extract_header, extract_footer=extract_footer, diff --git a/packages/mistralai_gcp/.speakeasy/gen.lock b/packages/mistralai_gcp/.speakeasy/gen.lock index 0bf3209f..f921459e 100644 --- a/packages/mistralai_gcp/.speakeasy/gen.lock +++ b/packages/mistralai_gcp/.speakeasy/gen.lock @@ -1,20 +1,20 @@ lockVersion: 2.0.0 id: ec60f2d8-7869-45c1-918e-773d41a8cf74 management: - docChecksum: a7d9a161ca71328c62514af87c72bd88 + docChecksum: cd98e63252e8d40a0793f292ac77766d docVersion: 1.0.0 speakeasyVersion: 1.685.0 generationVersion: 2.794.1 - releaseVersion: 1.8.0 - configChecksum: 42a1e5752a774fcdb0a5949bd6535933 + releaseVersion: 1.8.1 + configChecksum: 5d5778d84d2ffd375bd55db65515df4d repoURL: https://github.com/mistralai/client-python.git repoSubDirectory: packages/mistralai_gcp installationURL: https://github.com/mistralai/client-python.git#subdirectory=packages/mistralai_gcp published: true persistentEdits: - generation_id: 749d4ba0-3c79-459a-a407-b84537a057da - pristine_commit_hash: ae909165077818f36014ef4d28edaa3572c8cc64 - pristine_tree_hash: f04041c3f961a8702dfa1eaa1185b1b605875f82 + generation_id: 498bd941-cc21-4104-89c0-107653a9b55a + pristine_commit_hash: dcb2f729c689de44d9801e29aed9d7d57241dec9 + pristine_tree_hash: 94f12d5c1756cdf8a3abdf2dd076b4d3ec763540 features: python: additionalDependencies: 1.0.0 @@ -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/prediction.md: id: 3c70b2262201 last_write_checksum: sha1:ca8a77219e6113f2358a5363e935288d90df0725 @@ -353,8 +353,8 @@ trackedFiles: pristine_git_object: f8088f4c26d3ae27202c716c80c391d4daed4156 src/mistralai_gcp/_version.py: id: 4e2b8c406f49 - last_write_checksum: sha1:18c7db41065d76e733dc84c997f2a7808892a7c7 - pristine_git_object: a170f0ab6d229979b9077477809b10f2774a0144 + last_write_checksum: sha1:ba34db91bfd04a4fbc34f567796e7a9d0871717f + pristine_git_object: 74a7b261dc76572304e54d404b09b09c232664e7 src/mistralai_gcp/basesdk.py: id: b84fa6111b69 last_write_checksum: sha1:41381dd799bd5e1f8a15bb65a0672dc6cc4796c4 @@ -461,8 +461,8 @@ trackedFiles: pristine_git_object: fec729a590b2ea981e01f4af99d8b36ba52b4664 src/mistralai_gcp/models/mistralpromptmode.py: id: d2ba58ed5184 - last_write_checksum: sha1:8518548e80dcd8798ee72c2557c473327ba9289b - pristine_git_object: 1440f6ea9d18139ce5f10eb38d951b0995f74a20 + last_write_checksum: sha1:6fb8323de88682846a2a09e68550f3508a29f1f5 + pristine_git_object: a5cc534f8c53bc87b8451aac1b2a79e695530e71 src/mistralai_gcp/models/no_response_error.py: id: 7a773ba0687f last_write_checksum: sha1:7f326424a7d5ae1bcd5c89a0d6b3dbda9138942f diff --git a/packages/mistralai_gcp/.speakeasy/gen.yaml b/packages/mistralai_gcp/.speakeasy/gen.yaml index 2aacaa62..bbfcc820 100644 --- a/packages/mistralai_gcp/.speakeasy/gen.yaml +++ b/packages/mistralai_gcp/.speakeasy/gen.yaml @@ -26,7 +26,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false python: - version: 1.8.0 + version: 1.8.1 additionalDependencies: dev: pytest: ^8.2.2 diff --git a/packages/mistralai_gcp/docs/models/mistralpromptmode.md b/packages/mistralai_gcp/docs/models/mistralpromptmode.md index 7416e203..c3409d03 100644 --- a/packages/mistralai_gcp/docs/models/mistralpromptmode.md +++ b/packages/mistralai_gcp/docs/models/mistralpromptmode.md @@ -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 diff --git a/packages/mistralai_gcp/pyproject.toml b/packages/mistralai_gcp/pyproject.toml index df3e43ae..b9dd6af4 100644 --- a/packages/mistralai_gcp/pyproject.toml +++ b/packages/mistralai_gcp/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mistralai-gcp" -version = "1.8.0" +version = "1.8.1" description = "Python Client SDK for the Mistral AI API in GCP." authors = [{ name = "Mistral" }] requires-python = ">=3.10" diff --git a/packages/mistralai_gcp/src/mistralai_gcp/_version.py b/packages/mistralai_gcp/src/mistralai_gcp/_version.py index a170f0ab..74a7b261 100644 --- a/packages/mistralai_gcp/src/mistralai_gcp/_version.py +++ b/packages/mistralai_gcp/src/mistralai_gcp/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "mistralai-gcp" -__version__: str = "1.8.0" +__version__: str = "1.8.1" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.794.1" -__user_agent__: str = "speakeasy-sdk/python 1.8.0 2.794.1 1.0.0 mistralai-gcp" +__user_agent__: str = "speakeasy-sdk/python 1.8.1 2.794.1 1.0.0 mistralai-gcp" try: if __package__ is not None: diff --git a/packages/mistralai_gcp/src/mistralai_gcp/models/mistralpromptmode.py b/packages/mistralai_gcp/src/mistralai_gcp/models/mistralpromptmode.py index 1440f6ea..a5cc534f 100644 --- a/packages/mistralai_gcp/src/mistralai_gcp/models/mistralpromptmode.py +++ b/packages/mistralai_gcp/src/mistralai_gcp/models/mistralpromptmode.py @@ -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. +""" diff --git a/pyproject.toml b/pyproject.toml index b28c1ba2..2cb90876 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,6 +16,7 @@ dependencies = [ "opentelemetry-sdk (>=1.33.1,<2.0.0)", "opentelemetry-api (>=1.33.1,<2.0.0)", "opentelemetry-exporter-otlp-proto-http (>=1.37.0,<2.0.0)", + "opentelemetry-semantic-conventions (>=0.59b0,<0.60)", ] [project.optional-dependencies] diff --git a/src/mistralai/_version.py b/src/mistralai/_version.py index 6ee91593..02ead608 100644 --- a/src/mistralai/_version.py +++ b/src/mistralai/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "mistralai" -__version__: str = "1.12.0" +__version__: str = "1.12.1" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.794.1" -__user_agent__: str = "speakeasy-sdk/python 1.12.0 2.794.1 1.0.0 mistralai" +__user_agent__: str = "speakeasy-sdk/python 1.12.1 2.794.1 1.0.0 mistralai" try: if __package__ is not None: From 5d26b834676ef00eeddd2d300416b6d9bdbfe799 Mon Sep 17 00:00:00 2001 From: Guillaume Dumont Date: Tue, 10 Feb 2026 11:50:15 +0100 Subject: [PATCH 3/4] Regenerate the SDK with speakeasy --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 2cb90876..bb8a0b7c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mistralai" -version = "1.12.0" +version = "1.12.1" description = "Python Client SDK for the Mistral AI API." authors = [{ name = "Mistral" }] requires-python = ">=3.10" From b372214c4c72177b7175477560278fb614cab9b9 Mon Sep 17 00:00:00 2001 From: Guillaume Dumont Date: Tue, 10 Feb 2026 11:58:13 +0100 Subject: [PATCH 4/4] Aligning versions between Azure and GCP --- packages/mistralai_azure/.speakeasy/gen.lock | 2 +- packages/mistralai_azure/.speakeasy/gen.yaml | 2 +- packages/mistralai_azure/pyproject.toml | 2 +- packages/mistralai_azure/src/mistralai_azure/_version.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/mistralai_azure/.speakeasy/gen.lock b/packages/mistralai_azure/.speakeasy/gen.lock index 658e64a8..a6858b8a 100644 --- a/packages/mistralai_azure/.speakeasy/gen.lock +++ b/packages/mistralai_azure/.speakeasy/gen.lock @@ -5,7 +5,7 @@ management: docVersion: 1.0.0 speakeasyVersion: 1.685.0 generationVersion: 2.794.1 - releaseVersion: 1.8.2 + releaseVersion: 1.8.1 configChecksum: c5f5d0f264b3bb27cada85a3cb49fbf1 repoURL: https://github.com/mistralai/client-python.git repoSubDirectory: packages/mistralai_azure diff --git a/packages/mistralai_azure/.speakeasy/gen.yaml b/packages/mistralai_azure/.speakeasy/gen.yaml index 4d676cfe..e2be4d84 100644 --- a/packages/mistralai_azure/.speakeasy/gen.yaml +++ b/packages/mistralai_azure/.speakeasy/gen.yaml @@ -26,7 +26,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false python: - version: 1.8.2 + version: 1.8.1 additionalDependencies: dev: pytest: ^8.2.2 diff --git a/packages/mistralai_azure/pyproject.toml b/packages/mistralai_azure/pyproject.toml index 83275c4b..c7831b45 100644 --- a/packages/mistralai_azure/pyproject.toml +++ b/packages/mistralai_azure/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mistralai_azure" -version = "1.8.2" +version = "1.8.1" description = "Python Client SDK for the Mistral AI API in Azure." authors = [{ name = "Mistral" }] requires-python = ">=3.10" diff --git a/packages/mistralai_azure/src/mistralai_azure/_version.py b/packages/mistralai_azure/src/mistralai_azure/_version.py index 58d84eac..79277f9a 100644 --- a/packages/mistralai_azure/src/mistralai_azure/_version.py +++ b/packages/mistralai_azure/src/mistralai_azure/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "mistralai_azure" -__version__: str = "1.8.2" +__version__: str = "1.8.1" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.794.1" -__user_agent__: str = "speakeasy-sdk/python 1.8.2 2.794.1 1.0.0 mistralai_azure" +__user_agent__: str = "speakeasy-sdk/python 1.8.1 2.794.1 1.0.0 mistralai_azure" try: if __package__ is not None: