Skip to content

smelt.model

Tier: UiHost — Requires a terminal UI; calling these from headless mode raises.

Model selector. smelt.model() reads the active model key, smelt.model(v) switches, smelt.model.list() returns the available models.

smelt.model.list

fun(): table

Return an array of { key, name, provider } records for every model the active config can switch to.

smelt.model.preferred

fun(name: any, value: any): any