Tune
import { Chips, Tune } from '@hanzo/ui/chat'
No examples yet.
Types
export interface Mind {
model: string
models: ModelCatalogEntry[]
loading: boolean
error: string | null
/** A list shown from before, because this read failed. */
note: string
/** The plan grants only Enso Auto: anything else is an upgrade, never a pick. */
free: boolean
pick: (id: string) => void
/**
* Another maker's models are paid from the prepaid balance on any plan, so on Free
* they are not an upgrade: with this, one the balance cannot pay for says Top up and
* choosing it calls `topUp`. Absent, they follow `free` as before.
*/
funded?: (id: string) => boolean
/** The balance, as the billing API states it. */
balance?: string
/** The way to the top-up, given the model chosen if one was. */
topUp?: (id?: string) => void
}export interface Modes<T extends string = string> {
value: T
/** A method, so a surface's own union (`'auto' | 'plan'`) is a `Modes` without a cast. */
set(mode: T): void
items: readonly Way<T>[]
}export interface Chip {
id: string
label: string
icon?: ReactNode
on?: boolean
onPress: () => void
}Exports
ChipsTunetype Chiptype Mindtype Modes