Chat · Components
ModelPicker
No summary has been written for ModelPicker. Everything below is generated from the declaration shipped in 0.57.40 and describes the real contract.Public export
typescript
import { ModelPicker } from '@happyvertical/smrt-chat/svelte';- Import path
@happyvertical/smrt-chat/svelte- Props
- 5
- Props described
- 5 of 5
- Bindable state
- 0
- Callback events
- 1
- Verified release
- 0.57.40
Props
NameTypeRequiredDescription
modelsModelOption[]NoFull candidate model catalog; defaults to `DEFAULT_MODEL_OPTIONS`.allowedModelIdsstring[]NoAllow-list of model ids; empty/omitted means all `models` are offered.valuestringYesThe selected model id; bindable.onchange(modelId: string) => voidNoFired with the newly selected model id.ariaLabelstringNoAccessible name for the underlying `<select>` (#2904 review, cycle-3 second final F2 — the control previously had no aria-label, id, or wrapping `FormGroup`, so axe/screen readers saw an unnamed combobox). Defaults to an i18n'd "Model" label; override when a host embeds this picker somewhere the generic default isn't descriptive enough.Bindable state
This component has no bindable public state.
Callback events
onchange(modelId: string) => void