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

zodResponseFormat should require a zod object, and not any zod type #1092

Open
1 task done
uriva opened this issue Sep 21, 2024 · 0 comments
Open
1 task done

zodResponseFormat should require a zod object, and not any zod type #1092

uriva opened this issue Sep 21, 2024 · 0 comments

Comments

@uriva
Copy link

uriva commented Sep 21, 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

it is easy to get it wrong by inputting z.boolean() which will later fail in ta cryptic http error

400 Invalid schema for response_format 'query': schema must be a JSON Schema of 'type: "object"', got 'type: "None"'.
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

1 participant