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 { AiResponseStream } from "@/components/motiq/ai-response-stream"export default function AiResponseStreamDemo() { return ( <AiResponseStream className="max-w-lg" assistantName="Assistant" state="complete" segments={[ { type: "text", text: "Use a Map when keys are not strings, and lookups stay O(1)." }, { type: "citation", sourceId: "1" }, { type: "text", text: " Here is a quick example:\n\n" }, { type: "code", lang: "ts", code: "const cache = new Map<number, string>()\ncache.set(1, 'one')" }, { type: "text", text: "\n\nIt keeps insertion order, which makes it handy for LRU caches." }, { type: "citation", sourceId: "2" }, ]} sources={[ { id: "1", title: "MDN: Map", snippet: "Key-value pairs with any value type as key." }, { id: "2", title: "ECMAScript spec", snippet: "Map preserves insertion order." }, ]} /> )}