Commit 6475b1c
authored
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.sh1 parent ac2ad23 commit 6475b1c
File tree
272 files changed
+2960
-2658
lines changed- .speakeasy
- docs
- models
- sdks
- agents
- batchjobs
- betaagents
- chat
- classifiers
- conversations
- finetuningjobs
- models
- examples
- azure
- mistral
- chat
- classifier
- scripts
- src/mistralai
- client
- models
- extra
- mcp
- run
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 changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
29 | | - | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| 56 | + | |
| 57 | + | |
53 | 58 | | |
54 | 59 | | |
55 | 60 | | |
| |||
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
71 | | - | |
| 76 | + | |
72 | 77 | | |
73 | 78 | | |
74 | 79 | | |
| |||
0 commit comments