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

Change function parameters to be JSON Schema #536

Merged
merged 2 commits into from
Jan 22, 2024

Conversation

petersalas
Copy link
Contributor

Previously the function definitions were typed as either Zod or JSON Schema-ish (with some differences around required). Rather than have a layer of conversion logic (getParametersSchema) this makes the input types explicitly JSON Schema. This facilitates integration with other types, e.g. OpenAPI specs. (Callers using Zod must now do the conversion themselves, e.g. with zod-to-json-schema.)

Copy link

vercel bot commented Jan 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ai-jsx-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 22, 2024 7:53pm
ai-jsx-nextjs-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 22, 2024 7:53pm
ai-jsx-tutorial-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 22, 2024 7:53pm

Copy link
Contributor

@farzadab farzadab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@petersalas petersalas merged commit 4ce9b17 into main Jan 22, 2024
6 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants