Skip to content

Function: modelsForClass()

modelsForClass(cls): readonly string[]

Static fallback model ids for a chat class, drawn from the small built-in FALLBACK_MODEL_NAMES list and ordered best-first by family rank. Sync and workspace-independent: this is the fallback opinion used to seed default lists or when the live catalogue is unreachable - live resolution prefers the classified workspace catalogue. Returns [] for ModelClass.Embedding (the floor is chat-only).

"chat-thinking" | "chat-balanced" | "chat-fast" | "embedding"

readonly string[]