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

Add phone number and zip code custom types #849

Merged
merged 1 commit into from
Apr 30, 2024
Merged

Conversation

rlouf
Copy link
Member

@rlouf rlouf commented Apr 30, 2024

This PR adds custom Pydantic types for phone numbers and zip code. This is meant to be a simple demonstration of how we can leverage custom pydantic types to help users who do not want to write regular expressions.

@rlouf rlouf added enhancement structured generation Linked to structured generation labels Apr 30, 2024
@rlouf rlouf merged commit 1eb9a04 into dottxt-ai:main Apr 30, 2024
5 checks passed
@rlouf rlouf deleted the extra-types branch April 30, 2024 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement structured generation Linked to structured generation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant