fixie-ai / ai-jsx

The AI Application Framework for Javascript
https://docs.ai-jsx.com
MIT License
1.03k stars 76 forks source link

Change function parameters to be JSON Schema #536

Closed petersalas closed 5 months ago

petersalas commented 5 months ago

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.)

vercel[bot] commented 5 months ago

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