From 1338061e8bf5124c6ffdf29bdde963db4c6e4140 Mon Sep 17 00:00:00 2001 From: Guillaume Dumont Date: Mon, 12 Jan 2026 15:02:15 +0100 Subject: [PATCH 1/4] Switch the Azure and GCP SDKs to uv --- .speakeasy/gen.yaml | 2 +- packages/mistralai_azure/.speakeasy/gen.yaml | 6 +++++- packages/mistralai_gcp/.speakeasy/gen.yaml | 15 ++++++++++++++- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 85ac8dac..bf732c1e 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -21,7 +21,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false python: - version: 1.10.0 + version: 1.10.1 additionalDependencies: dev: pytest: ^8.2.2 diff --git a/packages/mistralai_azure/.speakeasy/gen.yaml b/packages/mistralai_azure/.speakeasy/gen.yaml index 63e2da75..e3ee03f4 100644 --- a/packages/mistralai_azure/.speakeasy/gen.yaml +++ b/packages/mistralai_azure/.speakeasy/gen.yaml @@ -21,11 +21,14 @@ generation: generateNewTests: false skipResponseBodyAssertions: false python: - version: 1.6.0 + version: 1.7.1 additionalDependencies: dev: pytest: ^8.2.2 pytest-asyncio: ^0.23.7 + allowedRedefinedBuiltins: + - id + - object authors: - Mistral baseErrorName: MistralAzureError @@ -52,6 +55,7 @@ python: methodArguments: infer-optional-args moduleName: "" outputModelSuffix: output + packageManager: poetry packageName: mistralai_azure pytestFilterWarnings: [] pytestTimeout: 0 diff --git a/packages/mistralai_gcp/.speakeasy/gen.yaml b/packages/mistralai_gcp/.speakeasy/gen.yaml index d7be7fed..3a05084a 100644 --- a/packages/mistralai_gcp/.speakeasy/gen.yaml +++ b/packages/mistralai_gcp/.speakeasy/gen.yaml @@ -4,6 +4,7 @@ generation: maintainOpenAPIOrder: true usageSnippets: optionalPropertyRendering: withExample + sdkInitStyle: constructor useClassNamesForArrayFields: true fixes: nameResolutionDec2023: true @@ -11,11 +12,16 @@ generation: parameterOrderingFeb2024: true requestResponseComponentNamesFeb2024: true securityFeb2025: false + sharedErrorComponentsApr2025: false auth: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false + tests: + generateTests: true + generateNewTests: false + skipResponseBodyAssertions: false python: - version: 1.6.0 + version: 2.0.1 additionalDependencies: dev: pytest: ^8.2.2 @@ -23,8 +29,12 @@ python: main: google-auth: ^2.31.0 requests: ^2.32.3 + allowedRedefinedBuiltins: + - id + - object authors: - Mistral + baseErrorName: MistralGcpError clientServerStatusCodesAsErrors: true defaultErrorName: SDKError description: Python Client SDK for the Mistral AI API in GCP. @@ -46,8 +56,11 @@ python: inputModelSuffix: input maxMethodParams: 15 methodArguments: infer-optional-args + moduleName: "" outputModelSuffix: output + packageManager: poetry packageName: mistralai-gcp + pytestFilterWarnings: [] pytestTimeout: 0 responseFormat: flat templateVersion: v2 From 700c3e495b078c73714ab34fe60132f2b1cc00db Mon Sep 17 00:00:00 2001 From: Guillaume Dumont Date: Mon, 12 Jan 2026 15:08:12 +0100 Subject: [PATCH 2/4] Revert "Switch the Azure and GCP SDKs to uv" This reverts commit 1338061e8bf5124c6ffdf29bdde963db4c6e4140. --- .speakeasy/gen.yaml | 2 +- packages/mistralai_azure/.speakeasy/gen.yaml | 6 +----- packages/mistralai_gcp/.speakeasy/gen.yaml | 15 +-------------- 3 files changed, 3 insertions(+), 20 deletions(-) diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index bf732c1e..85ac8dac 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -21,7 +21,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false python: - version: 1.10.1 + version: 1.10.0 additionalDependencies: dev: pytest: ^8.2.2 diff --git a/packages/mistralai_azure/.speakeasy/gen.yaml b/packages/mistralai_azure/.speakeasy/gen.yaml index e3ee03f4..63e2da75 100644 --- a/packages/mistralai_azure/.speakeasy/gen.yaml +++ b/packages/mistralai_azure/.speakeasy/gen.yaml @@ -21,14 +21,11 @@ generation: generateNewTests: false skipResponseBodyAssertions: false python: - version: 1.7.1 + version: 1.6.0 additionalDependencies: dev: pytest: ^8.2.2 pytest-asyncio: ^0.23.7 - allowedRedefinedBuiltins: - - id - - object authors: - Mistral baseErrorName: MistralAzureError @@ -55,7 +52,6 @@ python: methodArguments: infer-optional-args moduleName: "" outputModelSuffix: output - packageManager: poetry packageName: mistralai_azure pytestFilterWarnings: [] pytestTimeout: 0 diff --git a/packages/mistralai_gcp/.speakeasy/gen.yaml b/packages/mistralai_gcp/.speakeasy/gen.yaml index 3a05084a..d7be7fed 100644 --- a/packages/mistralai_gcp/.speakeasy/gen.yaml +++ b/packages/mistralai_gcp/.speakeasy/gen.yaml @@ -4,7 +4,6 @@ generation: maintainOpenAPIOrder: true usageSnippets: optionalPropertyRendering: withExample - sdkInitStyle: constructor useClassNamesForArrayFields: true fixes: nameResolutionDec2023: true @@ -12,16 +11,11 @@ generation: parameterOrderingFeb2024: true requestResponseComponentNamesFeb2024: true securityFeb2025: false - sharedErrorComponentsApr2025: false auth: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false - tests: - generateTests: true - generateNewTests: false - skipResponseBodyAssertions: false python: - version: 2.0.1 + version: 1.6.0 additionalDependencies: dev: pytest: ^8.2.2 @@ -29,12 +23,8 @@ python: main: google-auth: ^2.31.0 requests: ^2.32.3 - allowedRedefinedBuiltins: - - id - - object authors: - Mistral - baseErrorName: MistralGcpError clientServerStatusCodesAsErrors: true defaultErrorName: SDKError description: Python Client SDK for the Mistral AI API in GCP. @@ -56,11 +46,8 @@ python: inputModelSuffix: input maxMethodParams: 15 methodArguments: infer-optional-args - moduleName: "" outputModelSuffix: output - packageManager: poetry packageName: mistralai-gcp - pytestFilterWarnings: [] pytestTimeout: 0 responseFormat: flat templateVersion: v2 From 38eb0a56ec07925278ddb11b98691ed53f8f98f0 Mon Sep 17 00:00:00 2001 From: Guillaume Dumont Date: Mon, 12 Jan 2026 15:10:47 +0100 Subject: [PATCH 3/4] Only changing the package manager --- packages/mistralai_azure/.speakeasy/gen.yaml | 1 + packages/mistralai_gcp/.speakeasy/gen.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/mistralai_azure/.speakeasy/gen.yaml b/packages/mistralai_azure/.speakeasy/gen.yaml index 63e2da75..045e6139 100644 --- a/packages/mistralai_azure/.speakeasy/gen.yaml +++ b/packages/mistralai_azure/.speakeasy/gen.yaml @@ -52,6 +52,7 @@ python: methodArguments: infer-optional-args moduleName: "" outputModelSuffix: output + packageManager: uv packageName: mistralai_azure pytestFilterWarnings: [] pytestTimeout: 0 diff --git a/packages/mistralai_gcp/.speakeasy/gen.yaml b/packages/mistralai_gcp/.speakeasy/gen.yaml index d7be7fed..a82160ed 100644 --- a/packages/mistralai_gcp/.speakeasy/gen.yaml +++ b/packages/mistralai_gcp/.speakeasy/gen.yaml @@ -47,6 +47,7 @@ python: maxMethodParams: 15 methodArguments: infer-optional-args outputModelSuffix: output + packageManager: uv packageName: mistralai-gcp pytestTimeout: 0 responseFormat: flat From eb0541483d7daf6ebbe8c2eb9e1f0b2a01a7d0f2 Mon Sep 17 00:00:00 2001 From: Guillaume Dumont Date: Mon, 12 Jan 2026 15:59:05 +0100 Subject: [PATCH 4/4] Adding pyproject.toml to all .genignore files This aligns the behavior of GCP/Azure SDKs with the main one. --- packages/mistralai_azure/.genignore | 1 + packages/mistralai_gcp/.genignore | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/mistralai_azure/.genignore b/packages/mistralai_azure/.genignore index 513646da..ba7f2350 100644 --- a/packages/mistralai_azure/.genignore +++ b/packages/mistralai_azure/.genignore @@ -1,3 +1,4 @@ +pyproject.toml src/mistralai_azure/sdk.py README.md USAGE.md diff --git a/packages/mistralai_gcp/.genignore b/packages/mistralai_gcp/.genignore index ea10bc8e..76043176 100644 --- a/packages/mistralai_gcp/.genignore +++ b/packages/mistralai_gcp/.genignore @@ -1,3 +1,4 @@ +pyproject.toml src/mistralai_gcp/sdk.py README.md USAGE.md