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 { ModelSelector } from "@/components/spectrumui/blocks/ai-assistants/model-selector"import type { ModelOption } from "@/components/spectrumui/blocks/ai-assistants/types"const models: ModelOption[] = [ { id: "fast", name: "Fast", description: "Quick replies for everyday tasks" }, { id: "balanced", name: "Balanced", description: "A good mix of speed and depth", badge: "Popular" }, { id: "pro", name: "Pro", description: "Best for complex reasoning", badge: "New" }, { id: "legacy", name: "Legacy", description: "Unavailable on your plan", disabled: true },]export default function ModelSelectorDemo() { return ( <div className="flex w-full max-w-md flex-col gap-4"> <ModelSelector models={models} value="balanced" /> <ModelSelector models={models.slice(0, 3)} variant="Segmented" value="pro" /> </div> )}