how to make the instructor validation more relaxed? #526
Unanswered
esteininger
asked this question in
Q&A
Replies: 3 comments 10 replies
-
make the field optional |
Beta Was this translation helpful? Give feedback.
8 replies
-
i just want some sort of conditional where if the value returned from the LLM != any of the enums, it returns "None". this would be valuable for a bunch of different use cases. |
Beta Was this translation helpful? Give feedback.
1 reply
-
when converting the data model to json using data model generator there is a diff causing instructor to not accept the literals. here’s a gist: https://gist.github.com/esteininger/9b056989de9a0502c978d4bc7bbdfb54 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i want it to not throw an error if just one field is missing. how do i do this?
Beta Was this translation helpful? Give feedback.
All reactions