Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(assistant-ui-demo): add demoModels.ts for assistant UI demonstration

Steven Enamakel1f8543314847
diff --git a/app/src/pages/dev/assistant-ui-demo/demoModels.ts b/app/src/pages/dev/assistant-ui-demo/demoModels.ts
new file mode 100644
index 0000000000..169458d72a
--- /dev/null
+++ b/app/src/pages/dev/assistant-ui-demo/demoModels.ts
@@ -0,0 +1,33 @@
+/**
+ * Model list for the vendored assistant-ui `base` demo.
+ *
+ * Upstream this comes from the docs site's live model catalogue
+ * (`docsModelOptions()` / `DEFAULT_MODEL_ID`). Here it is a fixed table: the
+ * demo is mock-only, so nothing behind these ids is ever dialled and the list
+ * exists purely to give `ModelSelector` something to render.
+ */
+import type { ModelOption } from '@/components/assistant-ui/model-selector';
+
+export const DEFAULT_MODEL_ID = 'demo-sonnet';
+
+export function demoModelOptions(): readonly ModelOption[] {
+ return [
+ {
+ id: 'demo-sonnet',
+ name: 'Demo Sonnet',
+ description: 'Balanced mock model',
+ efforts: true,
+ },
+ {
+ id: 'demo-opus',
+ name: 'Demo Opus',
+ description: 'Highest quality mock model',
+ efforts: true,
+ },
+ {
+ id: 'demo-haiku',
+ name: 'Demo Haiku',
+ description: 'Fastest mock model',
+ },
+ ];
+}