Skip to content
Discussion options

You must be logged in to vote

Models don't have full support for all Zod schemas. There are several layers involved: Zod to JSON schema, and then the JSON schema support that the LLM provider offers / the LLM supports. Ideally the top level should be an object. Even with that though, there are limitations (especially in the union case, or when schemas get large)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@lgrammel
Comment options

Answer selected by risotto-master
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants