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 { ComposerAddAttachment, ComposerAttachments } from "@/components/assistant-ui/elements/attachment.aui"import { AssistantRuntimeProvider, ComposerPrimitive, useLocalRuntime, type ChatModelAdapter } from "@assistant-ui/react"const adapter: ChatModelAdapter = { async *run() { yield { content: [{ type: "text", text: "" }] } },}export default function AttachmentDemo() { const runtime = useLocalRuntime(adapter) return ( <AssistantRuntimeProvider runtime={runtime}> <ComposerPrimitive.Root className="w-full max-w-md rounded-2xl border bg-background p-2 shadow-sm"> <ComposerAttachments /> <div className="flex items-center gap-2"> <ComposerAddAttachment /> <ComposerPrimitive.Input placeholder="Ask a question..." className="min-h-9 flex-1 resize-none bg-transparent px-2 py-1.5 text-sm outline-none placeholder:text-muted-foreground" /> </div> </ComposerPrimitive.Root> </AssistantRuntimeProvider> )}