Skip to content

Commit 6475b1c

Browse files
chore: update speakeasy gen.yaml with recommended v2 configs (#345)
* chore: update speakeasy gen.yaml with recommended v2 configs Update generation fixes: - Enable nameResolutionFeb2025, securityFeb2025, sharedErrorComponentsApr2025 - Add methodSignaturesApr2024 and sharedNestedComponentsJan2026 Update python section: - Enable preApplyUnionDiscriminators - Add forwardCompatibleEnumsByDefault: true - Add forwardCompatibleUnionsByDefault: tagged-only - Add flatAdditionalProperties: true Bump version to 2.0.0a2. * chore: regenerate SDK with new speakeasy configs Regenerated with speakeasy v1.685.0 using the updated gen.yaml config. Key changes from the new config flags: - Forward-compatible enums (accept unknown values) - Forward-compatible tagged unions (Unknown variant) - Updated type names from name resolution fixes - Flat additional properties * fix: update extra module and docs for new speakeasy types - Update type references: Tools -> ConversationRequestTool - Remove type= parameter from FunctionTool constructor (now a constant) - Use isinstance() check instead of .type attribute access - Document type name changes in MIGRATION.md * chore: bump version to 2.0.0a2 * fix: fix example types and enable mypy in CI - Rename azure examples from .py.py to .py - Fix message types in azure and mistral examples - Add type annotations where needed for mypy - Enable mypy for examples in lint_custom_code.sh
1 parent ac2ad23 commit 6475b1c

File tree

272 files changed

+2960
-2658
lines changed

Some content is hidden

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

272 files changed

+2960
-2658
lines changed

.speakeasy/gen.lock

Lines changed: 266 additions & 512 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ generation:
88
useClassNamesForArrayFields: true
99
fixes:
1010
nameResolutionDec2023: true
11-
nameResolutionFeb2025: false
11+
nameResolutionFeb2025: true
1212
parameterOrderingFeb2024: true
1313
requestResponseComponentNamesFeb2024: true
14-
securityFeb2025: false
15-
sharedErrorComponentsApr2025: false
14+
securityFeb2025: true
15+
sharedErrorComponentsApr2025: true
16+
methodSignaturesApr2024: true
17+
sharedNestedComponentsJan2026: true
1618
auth:
1719
oAuth2ClientCredentialsEnabled: true
1820
oAuth2PasswordEnabled: false
@@ -26,7 +28,7 @@ generation:
2628
generateNewTests: false
2729
skipResponseBodyAssertions: false
2830
python:
29-
version: 2.0.0a1
31+
version: 2.0.0a2
3032
additionalDependencies:
3133
dev:
3234
pytest: ^8.2.2
@@ -47,9 +49,12 @@ python:
4749
envVarPrefix: MISTRAL
4850
fixFlags:
4951
responseRequiredSep2024: true
52+
flatAdditionalProperties: true
5053
flattenGlobalSecurity: true
5154
flattenRequests: true
5255
flatteningOrder: parameters-first
56+
forwardCompatibleEnumsByDefault: true
57+
forwardCompatibleUnionsByDefault: tagged-only
5358
imports:
5459
option: openapi
5560
paths:
@@ -68,7 +73,7 @@ python:
6873
outputModelSuffix: output
6974
packageManager: uv
7075
packageName: mistralai
71-
preApplyUnionDiscriminators: false
76+
preApplyUnionDiscriminators: true
7277
pytestFilterWarnings: []
7378
pytestTimeout: 0
7479
responseFormat: flat

0 commit comments

Comments
 (0)