Skip to content

Conversation

@fern-support
Copy link
Collaborator

@fern-support fern-support commented Oct 23, 2025

Brings in change from fern-api/fern#10038

This fixes an issue where e.g. tool-calls and end-of-call-report payloads get deserialized into ServerMessageAssistantRequest, the first union member even when the discriminant is properly applied. This was happening due to the payloads being (only slightly) invalid, and the union deserialization logic going through Pydantic validation.

@github-actions
Copy link
Contributor

@fern-support fern-support changed the title Make ServerMessage a discriminated union Upgrade fern python generator Oct 24, 2025
@github-actions
Copy link
Contributor

@sahilsuman933 sahilsuman933 merged commit 6c26066 into main Oct 24, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants