Vercel AI generateObject: I get the issue of it not satisfying the Zod schema. How to fix?
Unanswered
Havana posted this in #help-forum
HavanaOP
When I use generateObject, I sometimes get the issue of it not satisfying the zod schema. How to fix?
9 Replies
it also happens with me
I keep retrying until I get what I want(be aware of ratelimits)
HavanaOP
That kind of sucks tbh
yes it does
especially when your application depends on it but thats the only way out
HavanaOP
Why is AI so random
HavanaOP
@@ts-ignore is there a way I can see the raw output of the llm? Seeing the text it outputs
@Havana <@510480545160101898> is there a way I can see the raw output of the llm? Seeing the text it outputs
no, the ai sdk parses it through zod