Skip to content
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

clarify which zod features are supported #1017

Open
1 task done
uriva opened this issue Aug 28, 2024 · 3 comments
Open
1 task done

clarify which zod features are supported #1017

uriva opened this issue Aug 28, 2024 · 3 comments

Comments

@uriva
Copy link

uriva commented Aug 28, 2024

Confirm this is a feature request for the Node library and not the underlying OpenAI API.

  • This is a feature request for the Node library

Describe the feature or improvement you're requesting

I would like to be able to use the zod enum field, and comments, and have the AI conform to these.

Additional context

No response

@RobertCraigie
Copy link
Collaborator

zod enums and descriptions (using z.describe()) should be supported, can you share a snippet that isn't working for you?

@uriva
Copy link
Author

uriva commented Sep 3, 2024

oh ok. I wasn't sure.
In that case maybe the docs should mention it?

@uriva
Copy link
Author

uriva commented Sep 4, 2024

seems like not all zod features are supported, e.g. union

@uriva uriva changed the title support zod enums and comments clarify which zod features are supported Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants