Skip to content

fix(config): accept 'model' key as alias for 'default' in model config#3603

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-ea354159
Mar 28, 2026
Merged

fix(config): accept 'model' key as alias for 'default' in model config#3603
teknium1 merged 1 commit into
mainfrom
hermes/hermes-ea354159

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Salvage of #3544 by @ygd58 — extended the fix to cover all three config consumers instead of just one.

Problem

Users intuitively write model: { model: my-model } instead of model: { default: my-model } in config.yaml. The model key was silently ignored, causing fallback to the hardcoded default model.

Fix

The original PR (#3544) only fixed runtime_provider.py. This salvage applies the alias at all three read sites:

  1. hermes_cli/runtime_provider.py_get_model_config(): normalizes model → default early
  2. cli.pyHermesCLI.__init__(): model_config.get("default") or model_config.get("model")
  3. gateway/run.py — both _resolve_model() and hygiene pre-compression: same fallback

Also updated:

  • cli-config.yaml.example — comment noting both keys work
  • website/docs/user-guide/configuration.md — tip box about the alias

Fixes #3535

Tests

  • 56 runtime_provider + cli_init tests pass

Users intuitively write model: { model: my-model } instead of
model: { default: my-model } and it silently falls back to the
hardcoded default. Now both spellings work across all three config
consumers: runtime_provider, CLI, and gateway.

Co-authored-by: ygd58 <ygd58@users.noreply.github.com>
@teknium1 teknium1 merged commit e4480ff into main Mar 28, 2026
5 checks passed
angelburgosrosado pushed a commit to angelburgosrosado/hermes-agent that referenced this pull request Apr 27, 2026
NousResearch#3603)

Users intuitively write model: { model: my-model } instead of
model: { default: my-model } and it silently falls back to the
hardcoded default. Now both spellings work across all three config
consumers: runtime_provider, CLI, and gateway.

Co-authored-by: ygd58 <ygd58@users.noreply.github.com>
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
NousResearch#3603)

Users intuitively write model: { model: my-model } instead of
model: { default: my-model } and it silently falls back to the
hardcoded default. Now both spellings work across all three config
consumers: runtime_provider, CLI, and gateway.

Co-authored-by: ygd58 <ygd58@users.noreply.github.com>
olympus-terminal pushed a commit to olympus-terminal/hermes-agent that referenced this pull request May 16, 2026
NousResearch#3603)

Users intuitively write model: { model: my-model } instead of
model: { default: my-model } and it silently falls back to the
hardcoded default. Now both spellings work across all three config
consumers: runtime_provider, CLI, and gateway.

Co-authored-by: ygd58 <ygd58@users.noreply.github.com>
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
NousResearch#3603)

Users intuitively write model: { model: my-model } instead of
model: { default: my-model } and it silently falls back to the
hardcoded default. Now both spellings work across all three config
consumers: runtime_provider, CLI, and gateway.

Co-authored-by: ygd58 <ygd58@users.noreply.github.com>
Egavasyug pushed a commit to Egavasyug/hermes-agent that referenced this pull request Jun 10, 2026
NousResearch#3603)

Users intuitively write model: { model: my-model } instead of
model: { default: my-model } and it silently falls back to the
hardcoded default. Now both spellings work across all three config
consumers: runtime_provider, CLI, and gateway.

Co-authored-by: ygd58 <ygd58@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: config.yaml model.model key is silently ignored — falls back to hardcoded default

2 participants