Skip to content

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 ​

KeyPurpose
aliasesBuilt-in named presets; presets can extend other presets.
customAliasesUser-defined presets merged over built-ins.
overridesBuilt-in rules that apply configuration by model match.
customOverridesUser-defined overrides appended to built-ins.
modelDefinitionsMetadata registry: display name, tier, family, visibility, features.
modelIdResolutionsRules mapping requested names/tiers to concrete model IDs.
classifierIdResolutionsResolutions for classifier tiers used internally.
modelChainsAvailability 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:

  1. Merge alias maps as built-in aliases, then customAliases, then runtime aliases — the last wins.
  2. Concatenate override arrays as built-in, custom, then runtime overrides.
  3. 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.
  4. Apply overrides sorted by level ascending, specificity ascending, and config order ascending. Overrides can match model, overrideScope, and isRetry.
  5. Resolve model IDs through modelIdResolutions using the first matching context condition, then default. A name without an entry is returned as-is.
  6. 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 ​

json
{
  "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 for terminal, transient, not_found, and unknown failures (prompt or silent),
  • 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.

  • 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.

Built with VitePress. Powered by NVIDIA NIM.