modelConfigs is the most detailed settings object in M31A. It controls how a requested model name becomes a concrete NVIDIA NIM model request, including aliases, tier resolution, and fallback behavior. The generated defaults are in packages/core/src/config/defaultModelConfigs.ts.
Top-level keys
| Key | Purpose |
|---|---|
aliases | Built-in named presets; presets can extend other presets. |
customAliases | User-defined presets merged over built-ins. |
overrides | Built-in rules that apply configuration by model match. |
customOverrides | User-defined overrides appended to built-ins. |
modelDefinitions | Metadata registry: display name, tier, family, visibility, features. |
modelIdResolutions | Rules mapping requested names/tiers to concrete model IDs. |
classifierIdResolutions | Resolutions for classifier tiers used internally. |
modelChains | Availability and fallback chains with retry actions. |
Built-in aliases
The default alias graph includes base, chat-base, flash-base, classifier, prompt-completion, fast-ack-helper, edit-corrector, summarizer-default, summarizer-shell, web-search, web-fetch, web-fetch-fallback, loop-detection, loop-detection-double-check, llm-edit-fixer, next-speaker-checker, context-snapshotter, chat-compression-default, and agent-history-provider-summarizer.
Aliases such as chat-base extend base, adding generation settings like temperature, top-p, top-k, and thinking budgets. The default model is nvidia/nemotron-3-ultra-550b-a55b.
Resolution order
The service in packages/core/src/services/modelConfigService.ts resolves a model request in this order:
- Merge alias maps as built-in aliases, then
customAliases, then runtime aliases — the last wins. - Concatenate override arrays as built-in, custom, then runtime overrides.
- Build the alias chain from the requested alias through each
extends, with cycle detection and a maximum depth of 100, then reverse it and deep-merge from root to leaf. Arrays are replaced, not concatenated. - Apply overrides sorted by level ascending, specificity ascending, and config order ascending. Overrides can match
model,overrideScope, andisRetry. - Resolve model IDs through
modelIdResolutionsusing the first matching context condition, thendefault. A name without an entry is returned as-is. - Select a fallback chain and skip models currently marked unavailable.
An unknown chat model falls back to the chat-base configuration while keeping the requested model name.
Defining a custom alias
{
"modelConfigs": {
"customAliases": {
"precise": {
"extends": "base",
"modelConfig": {
"model": "nvidia/nemotron-3-ultra-550b-a55b",
"generateContentConfig": {"temperature": 0, "topP": 1}
}
}
}
}
}Select it with m31a -m precise or model.name in settings.
Definitions and resolutions
modelDefinitions records metadata such as displayName, tier (auto, pro, flash, flash-lite), family, isPreview, isVisible, and feature flags such as thinking. modelIdResolutions maps a requested name or tier to a concrete model for a given context; each entry provides a default model id.
Chains and fallbacks
modelChains defines ordered lists of candidate models. Each entry can set:
model— the model id,isLastResort— whether this is the terminal candidate,maxAttempts— per-candidate attempts,actions— behavior forterminal,transient,not_found, andunknownfailures (promptorsilent),stateTransitions— next state for each failure class.
Built-in chains are default, auto-default, and lite. auto-default allows three attempts and retries transient failures silently. Chain selection favors lite for flash-lite requests, the configured alias chain for auto/dynamic requests, and a single-model chain otherwise. Plan Mode forces all actions to silent. Availability tracking uses terminal states for quota or capacity failures and sticky_retry for retry-once-per-turn failures.
Related settings
model.name— the active model.model.thinkingEffort— reasoning budget.model.contextWindow— override for custom deployments.general.plan.modelRouting— route between tiers in Plan Mode.
Next steps
See Authentication, Settings, and Model resolution.