-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port pydantic v1 models to pydantic v2 (#224)
* Port pydantic v1 models to pydantic v2 * fad * Port pydantic v1 models to pydantic v2 * Port pydantic v1 models to pydantic v2 * update default values, type annotations, validators * Fixes on top of merging main * More typing refactor for consistency * Add todo for fields to fix * Add exception if pydantic v2 sends us obj instead of dict when validating * Fix regex type constraint and rename model_config to embedding_model_config * Refactor primsa store to work with pydantic v2 * resolved conflicts * Fixed pydantic * Removed model_serializer, replaced with model_dump, added enum_values * Fix enum values config and separate model type and module type * Fix frontend types to match up with backend types --------- Co-authored-by: Chirag Jain <[email protected]> Co-authored-by: Prathamesh <[email protected]>
- Loading branch information
1 parent
9243efc
commit 79423c5
Showing
33 changed files
with
573 additions
and
351 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.