A CLI tool to add React-AI-Assist chat UI components to your React project. You can adjust the components to your own project.
npx add-ai-chat
The CLI will prompt you for:
- Target directory for the components
- Whether you're using TypeScript
Your project should have these dependencies:
- react
- react-ai-assist
- tailwindcss
- @nextui-org/react
- framer-motion
- @iconify/react
- next-themes
- html2canvas
- AiAssistant
- ScreenshotWrapper
jsx;
import { AiAssistant } from './components/assistant';
function App() {
return (
<AiAssistant
modelProvider="openai"
model="gpt-4"
apiKey="your-api-key"
welcomeMessage="Hello! How can I help you today?"
/>
);
}