Closed uriva closed 1 month ago
Unfortunately we can't just accept a zod object because of recursive schemas, so I don't think it's feasible to change the type.
I agree this error message is not very helpful though, I've reported this back to the OpenAI API team.
Confirm this is a feature request for the Node library and not the underlying OpenAI API.
Describe the feature or improvement you're requesting
it is easy to get it wrong by inputting
z.boolean()
which will later fail in ta cryptic http error