Skip to content

Commit 04a2349

Browse files
Nelson-PROIAclaude
andcommitted
feat: regenerate Azure/GCP SDKs as PEP 420 namespace packages (v2.0.0a1)
Regenerate both Azure and GCP SDKs under the new namespace structure: - mistralai.azure.client (was mistralai_azure) - mistralai.gcp.client (was mistralai_gcp) Both SDKs are now bundled into the single mistralai wheel. Old mistralai_azure and mistralai_gcp flat packages are removed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e4024c7 commit 04a2349

File tree

223 files changed

+1796
-1374
lines changed

Some content is hidden

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

223 files changed

+1796
-1374
lines changed

.speakeasy/workflow.lock

Lines changed: 10 additions & 10 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,17 +22,17 @@ 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:0603c8cf10af5a4ad40a719b59b831cf739a694f13e7bf43f63170a1f288b8d2
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:5433d321ae0140deaaf2fd992e9530a6e5876a5ffa9e4ac18c67ae9594ea4b9c
3636
mistralai-sdk:
3737
source: mistral-openapi
3838
sourceNamespace: mistral-openapi

docs/gen-yaml-diff.md

Lines changed: 65 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,77 @@
1-
# gen.yaml Diff: Main vs Azure vs GCP
1+
# gen.yaml Config: Main vs Azure vs GCP
22

3-
## `generation` section
3+
All three SDKs share the same `generation` and `python` config, with only per-target identity fields differing.
44

5-
| Setting | Main | Azure | GCP |
6-
|---------|------|-------|-----|
7-
| `sdkClassName` | `Mistral` | `MistralAzure` | `MistralGCP` |
8-
| `nameResolutionDec2023` | `true` | `true` | `true` |
9-
| `nameResolutionFeb2025` | `true` | `true` | `true` |
10-
| `parameterOrderingFeb2024` | `true` | `true` | `true` |
11-
| `requestResponseComponentNamesFeb2024` | `true` | `true` | `true` |
12-
| `securityFeb2025` | `true` | `true` | `true` |
13-
| `sharedErrorComponentsApr2025` | `true` | `true` | `true` |
14-
| `methodSignaturesApr2024` | `true` | `true` | `true` |
15-
| `sharedNestedComponentsJan2026` | `true` | `true` | `true` |
5+
## Identical across all three
166

17-
## `python` section
7+
```yaml
8+
# generation
9+
configVersion: 2.0.0
10+
maintainOpenAPIOrder: true
11+
usageSnippets:
12+
optionalPropertyRendering: withExample
13+
sdkInitStyle: constructor
14+
useClassNamesForArrayFields: true
15+
fixes:
16+
nameResolutionDec2023: true
17+
nameResolutionFeb2025: true
18+
parameterOrderingFeb2024: true
19+
requestResponseComponentNamesFeb2024: true
20+
securityFeb2025: true
21+
sharedErrorComponentsApr2025: true
22+
methodSignaturesApr2024: true
23+
sharedNestedComponentsJan2026: true
24+
auth:
25+
oAuth2ClientCredentialsEnabled: true
26+
oAuth2PasswordEnabled: false
27+
hoistGlobalSecurity: true
28+
schemas:
29+
allOfMergeStrategy: shallowMerge
30+
tests:
31+
generateTests: true
32+
generateNewTests: false
33+
34+
# python
35+
asyncMode: both
36+
clientServerStatusCodesAsErrors: true
37+
constFieldCasing: upper
38+
defaultErrorName: SDKError
39+
enumFormat: union
40+
fixFlags:
41+
responseRequiredSep2024: true
42+
flatAdditionalProperties: true
43+
flattenGlobalSecurity: true
44+
flattenRequests: true
45+
flatteningOrder: parameters-first
46+
forwardCompatibleEnumsByDefault: true
47+
forwardCompatibleUnionsByDefault: tagged-only
48+
inferUnionDiscriminators: true
49+
maxMethodParams: 15
50+
methodArguments: infer-optional-args
51+
preApplyUnionDiscriminators: true
52+
responseFormat: flat
53+
sseFlatResponse: false
54+
templateVersion: v2
55+
packageManager: uv
56+
```
57+
58+
## Per-target differences
1859
1960
| Setting | Main | Azure | GCP |
2061
|---------|------|-------|-----|
62+
| `sdkClassName` | `Mistral` | `MistralAzure` | `MistralGCP` |
2163
| `version` | `2.0.0a2` | `2.0.0a1` | `2.0.0a1` |
22-
| `additionalDependencies.main` | *none* | *none* | *none* |
64+
| `moduleName` | `mistralai.client` | `mistralai.azure.client` | `mistralai.gcp.client` |
65+
| `packageName` | `mistralai` | `mistralai-azure` | `mistralai-gcp` |
2366
| `baseErrorName` | `MistralError` | `MistralAzureError` | `MistralGcpError` |
2467
| `description` | `...Mistral AI API.` | `...in Azure.` | `...in GCP.` |
2568
| `enableCustomCodeRegions` | `true` | `false` | `false` |
26-
| `envVarPrefix` | `MISTRAL` | *missing* | *missing* |
27-
| `responseRequiredSep2024` | `true` | `true` | `true` |
28-
| `flatAdditionalProperties` | `true` | `true` | `true` |
29-
| `forwardCompatibleEnumsByDefault` | `true` | `true` | `true` |
30-
| `forwardCompatibleUnionsByDefault` | `tagged-only` | `tagged-only` | `tagged-only` |
31-
| `preApplyUnionDiscriminators` | `true` | `true` | `true` |
32-
| `moduleName` | `mistralai.client` | `mistralai.azure.client` | `mistralai.gcp.client` |
33-
| `packageName` | `mistralai` | `mistralai-azure` | `mistralai-gcp` |
34-
35-
## Remaining intentional differences
69+
| `envVarPrefix` | `MISTRAL` | *(absent)* | *(absent)* |
3670

37-
All fix flags and feature flags are now aligned. The only remaining differences are expected per-target values:
71+
### Why these differ
3872

39-
- **`version`** -- Azure/GCP at 2.0.0a1
40-
- **`baseErrorName`** / `description` -- per-target identity
41-
- **`enableCustomCodeRegions`** -- `false` in Azure/GCP (they have no custom code regions)
42-
- **`envVarPrefix`** -- absent in Azure/GCP (only the main SDK reads `MISTRAL_*` env vars)
43-
- **`moduleName`** / `packageName` -- per-target namespace
73+
- **`version`**: Azure/GCP at `2.0.0a1` (first v2 release), main at `2.0.0a2`
74+
- **`moduleName`** / **`packageName`**: each target generates into its own namespace
75+
- **`baseErrorName`** / **`description`**: per-target identity
76+
- **`enableCustomCodeRegions`**: only the main SDK has custom code hooks (`src/mistralai/client/_hooks/`)
77+
- **`envVarPrefix`**: only the main SDK reads `MISTRAL_*` env vars (API key, etc.)

0 commit comments

Comments
 (0)