vercel / ai

Build AI-powered applications with React, Svelte, Vue, and Solid
https://sdk.vercel.ai/docs
Other
8.59k stars 1.21k forks source link

Integration with TypeChat #360

Closed joulev closed 1 month ago

joulev commented 11 months ago

TypeChat was released a few hours ago.

Is there any plan for ai to integrate with it? From what I know of TypeChat at the moment after a few minutes of skimming through the docs, I think it would be really cool to be able to use it with ai without significant configurations.

MaxLeiter commented 11 months ago

We're definitely interested in at least something accomplishing a similar goal. how would you like to use it with the AI SDK @joulev?

joulev commented 11 months ago

Hmm I'm not quite sure... I don't have any particular API design in mind, but I would definitely love to be able to use the AI SDK with typed JSON response. I wholly trust the Vercel team to design an intuitive and simple API here, just like how you guys have been able to do exactly that in the SDK 💪.

lgrammel commented 1 month ago

We ended up using Zod / JSON schema for getting typed responses from LLM.