Skip to content

[Bug]: fallback_model config format broken in v0.60 — manual config editing causes 401/AttributeError #4091

Closed

Description

@BigBossRabbit

Bug Description

Version: v0.60

Description:

The fallback_model section in ~/.hermes/config.yaml does not work when configured manually following the comments in the config file itself. The comments show a list format with - but the code expects a plain object, causing an AttributeError: 'list' object has no attribute 'get' in config.py line 1457.

Additionally, even after fixing the list vs object format, manually setting OPEN_ROUTER_API_KEY in ~/.hermes/.env is not picked up correctly, resulting in persistent HTTP 401 "User not found" errors from OpenRouter despite a valid key.

The only working solution is running hermes setup which writes the config in a format the code actually accepts.

Steps to Reproduce

Edit ~/.hermes/config.yaml and add fallback_model following the commented example in the file
Add OPEN_ROUTER_API_KEY to ~/.hermes/.env manually
Restart gateway — fallback fails with 401
Run hermes setup instead — works immediately

Expected Behavior

Manual config editing should work as documented in the config file comments

Actual Behavior

AttributeError: 'list' object has no attribute 'get' and persistent 401 on fallback provider despite valid API key

Affected Component

Configuration (config.yaml, .env, hermes setup)

Messaging Platform (if gateway-related)

No response

Operating System

macOS 26.3.1

Python Version

3.11.3

Hermes Version

0.6.0

Relevant Logs / Traceback

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

Either fix the config comments to match what the code expects, or make save_config handle both list and object formats for fallback_model

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Activity

  1. added a commit that references this issue on Apr 23, 2026
    a14fb3a
  2. added a commit that references this issue on May 1, 2026
    5fc885b
  3. added a commit that references this issue on May 14, 2026
    1745ce0
  4. added a commit that references this issue on Jun 2, 2026
    3331cd5
  5. added a commit that references this issue on Jul 2, 2026
    c0f6183
  6. added a commit that references this issue on Aug 26, 2026
    a1f43b4
  7. added a commit that references this issue on Sep 3, 2026
    305463c
  8. added a commit that references this issue on Oct 6, 2026
    477837c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions