Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make pydantic model serialization consistent regardless of surrogates. #1405

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

obi1kenobi
Copy link
Collaborator

Without this code, Pydantic models containing surrogates get serialized differently than models that don't contain surrogates. This leads to a less smooth user experience in LangSmith for users whose data contains surrogates.

With this fix, Pydantic models and other tricky Python data types are always serialized in the same way, regardless of whether they contain surrogates or not.

Without this code, Pydantic models containing surrogates get serialized differently than models that don't contain surrogates. This leads to a less smooth user experience in LangSmith for users whose data contains surrogates.

With this fix, Pydantic models and other tricky Python data types are always serialized in the same way, regardless of whether they contain surrogates or not.
@obi1kenobi obi1kenobi force-pushed the pg/consistent_pydantic_serialization branch from bb68539 to d82c363 Compare January 10, 2025 00:04
@obi1kenobi obi1kenobi merged commit 843d55d into main Jan 10, 2025
9 checks passed
@obi1kenobi obi1kenobi deleted the pg/consistent_pydantic_serialization branch January 10, 2025 00:29
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.

2 participants