| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Signed-off-by: AnneY <evangeline-lun@foxmail.com>
Signed-off-by: AnneY <evangeline-lun@foxmail.com>
There was a problem hiding this comment.
I think we should split this out into two functions:
Sorry, something went wrong.
Signed-off-by: AnneY <evangeline-lun@foxmail.com>
Signed-off-by: AnneY <evangeline-lun@foxmail.com>
There was a problem hiding this comment.
good job ! I added a small requests
Sorry, something went wrong.
There was a problem hiding this comment.
Nice! Should we also have something that creates from normal dict by looking at the data and "guessing" the type? This would be different from what pydantic can do, and could be a separate PR
Sorry, something went wrong.
Signed-off-by: AnneY <evangeline-lun@foxmail.com>
Signed-off-by: AnneY <evangeline-lun@foxmail.com>
|
📝 Docs are deployed on https://ft-feat-dynamic-creation--jina-docs.netlify.app 🎉 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Goals:
This PR is for issue #1152
In the issue, Pydantic's create_model was mentioned. In order for the function to return a subclass of BaseDocument, we need to pass the parameter __base__.