Integration
Install into a React and Tailwind 4 shadcn project. Preserve the consumer's @/lib/utils helper and install the shadcn primitives named by the upstream payload. This item declares ai, @ai-sdk/openai, zod, @ai-sdk/react, use-stick-to-bottom, react-markdown, remark-gfm, shiki, marked, remark-breaks. Install those packages at versions compatible with the consuming application.
Behavior to verify
Exercise the empty conversation, prompt submission, streaming response, cancellation, failure, and retry states. Keep model credentials and validation on the server.