-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
generateObject: Object literal may only specify known properties, and 'schema' does not exist in type #3201
Comments
Try updating your @ai-sdk/openai package - mine seemed to be stuck at 0.0.36 and this resolved it for me. |
Thanks for the comment, I'm on |
In the code snippet, the The error message comes from the attempt to match the one declared last in the library, which doesn't have a |
@jonriegel thanks for the comment. I looked into the definition files after your reply and I see it too. But I don't know how to translate it to code. Any suggestions? |
Description
Hello!
I'm migrating from
zod-gpt
to useai
instead. It's working in every single case, except one where I do this:(reproduction below)
It gives me the following error:
What do I need to do to solve this?
Code example
Additional context
I've also tried
as const
Instead ofsatisfies
and not having anything at all. Same issue"ai": "3.4.9",
The text was updated successfully, but these errors were encountered: