This project is a straightforward demonstration that utilizes Vercel AI SDK v3.0 to implement Generative UI. It's developed based on the sample code provided in the official documentation.
- Clone the repository
git clone https://github.com/miurla/gen-ui-demo
- Go to the project folder
cd gen-ui-demo
- Install packages
pnpm install
- Setup your .env.local file. And set your own OpenAI API Key.
cp .env.example .env.local
- Run the development server:
pnpm dev
Open http://localhost:3000 with your browser to see the result.
To learn more about Generative UI, take a look at the following resources: