Skip to content

Commit 9227633

Browse files
google-genai-botcopybara-github
authored andcommitted
feat(python): preserve unknown fields and open-union variants in Interactions models
Enable `preserveUnknownFields` and `modelSerializationMethods` in the Python SDK. Unknown fields are kept at every nesting level, in responses and in requests: unknown request fields are forwarded instead of silently dropped, so unsupported options such as `transcription_config.diarization` are rejected by the API rather than ignored (googleapis/python-genai#3162), and fields missing from the SDK schema reach the API. Unknown steps, content blocks and annotations round-trip as the payload the server sent, including stateless multi-turn history sent back as SDK objects or as stored dicts; known variants with invalid payloads still raise locally. FUTURE_COPYBARA_INTEGRATE_REVIEW=#1027 from googleapis:release-please--branches--main 0a6adea PiperOrigin-RevId: 1009673588
1 parent 1a33369 commit 9227633

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/workflows/test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches:
88
- main
99
env:
10-
SPEAKEASY_VERSION: v2.952.4
10+
SPEAKEASY_VERSION: v2.955.0
1111
jobs:
1212
go_tests_latest:
1313
runs-on: windows-latest

0 commit comments

Comments
 (0)