Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
import { SendIcon } from "lucide-react"import { AiChat, AiChatBody, AiChatFooter, AiChatHeader } from "@/components/elements/ai-chat"import { Button } from "@/components/ui/button"import { Input } from "@/components/ui/input"export default function ChatDemo() { return ( <AiChat status="ready" className="h-[400px] w-full max-w-lg overflow-hidden"> <AiChatHeader> <span className="text-sm font-medium">Chat</span> <span className="text-xs text-muted-foreground">Ready</span> </AiChatHeader> <AiChatBody className="flex flex-col gap-3 overflow-y-auto p-4"> <div className="max-w-[80%] self-end rounded-lg bg-primary px-3 py-2 text-sm text-primary-foreground"> Can you summarize the quarterly report? </div> <div className="max-w-[80%] self-start rounded-lg bg-muted px-3 py-2 text-sm"> Revenue grew 12% this quarter, driven by strong renewals in the enterprise segment. </div> </AiChatBody> <AiChatFooter> <form className="flex items-center gap-2" onSubmit={(e) => e.preventDefault()}> <Input placeholder="Ask a question..." className="flex-1" /> <Button type="submit" size="icon" aria-label="Send"> <SendIcon /> </Button> </form> </AiChatFooter> </AiChat> )}