AI SDK UI

AI SDK UI is designed to help you build interactive chat, completion, and assistant applications with ease. It is framework-agnostic toolkit, streamlining the integration of advanced AI functionalities into your applications.

AI SDK UI contains the following hooks:

UI Framework Support

AI SDK UI supports the following frameworks: React, Svelte, Vue.js, Angular, and SolidJS.

Here is a comparison of the supported functions across these frameworks:

useChatuseCompletionuseObject
React @ai-sdk/react
Vue.js @ai-sdk/vue
Svelte @ai-sdk/svelte Chat Completion StructuredObject
Angular @ai-sdk/angular Chat Completion StructuredObject
SolidJS (community)

Contributions are welcome to implement missing features for non-React frameworks.