a77a16c494
Add support for object-style entries in fallback_models arrays, enabling per-model configuration of variant, reasoningEffort, temperature, top_p, maxTokens, and thinking settings. - Zod schema for FallbackModelObject with full validation - normalizeFallbackModels() and flattenToFallbackModelStrings() utilities - Provider-agnostic model resolution pipeline with fallback chain - Session prompt params state management - Fallback chain construction with prefix-match lookup - Integration across delegate-task, background-agent, and plugin layers
17 lines
330 B
TypeScript
17 lines
330 B
TypeScript
/**
|
|
* Canonical set of recognised variant / effort tokens.
|
|
* Used by parseFallbackModelEntry (space-suffix detection) and
|
|
* flattenToFallbackModelStrings (inline-variant stripping).
|
|
*/
|
|
export const KNOWN_VARIANTS = new Set([
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh",
|
|
"max",
|
|
"minimal",
|
|
"none",
|
|
"auto",
|
|
"thinking",
|
|
])
|