ChatModelPicker
Unpublished development API. This package is under development and is not available as a published release.
The options, controlled value and labels of the composer's model picker.
import type { ChatModelPicker } from '@threadplane/react/chat';Declaration
export interface ChatModelPicker {
readonly disabled?: boolean;
readonly label?: string;
readonly onValueChange: (value: string) => void;
readonly options: readonly SelectOption[];
readonly placeholder?: string;
readonly value: string;
}Members
disabled
readonly disabled?: boolean;label
Names the list for assistive technology. Defaults to "Model".
readonly label?: string;onValueChange
readonly onValueChange: (value: string) => void;options
readonly options: readonly SelectOption[];placeholder
Shown while no option matches value. Defaults to "Choose a model".
readonly placeholder?: string;value
The chosen option's value; one that matches no option shows placeholder.
readonly value: string;