hermes - 💡(How to fix) Fix [Bug] delegate_task ignores delegation.base_url — subagent always inherits parent model

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Workaround

Using execute_code with direct urllib calls, but bypasses subagent toolset/session.

Code Example

delegation:
  api_key: <custom_api_key>
  base_url: https://ark.cn-beijing.volces.com/api/v3
  model: ep-20260516214802-kvxlt
RAW_BUFFERClick to expand / collapse

Environment

  • Hermes Agent: latest (install.sh)
  • OS: macOS 12.7.6
  • Python: 3.11

Config (delegation section)

delegation:
  api_key: <custom_api_key>
  base_url: https://ark.cn-beijing.volces.com/api/v3
  model: ep-20260516214802-kvxlt

Expected

When delegation.base_url is set, subagents use that endpoint instead of inheriting parent model.

Actual

Subagents always use parent model (deepseek-v4-pro). Logs: provider=deepseek base_url=https://api.deepseek.com/v1

Debugging

  • load_config() correctly reads delegation config
  • _resolve_delegation_credentials() returns provider="custom" with correct creds
  • build_child_agent() receives correct override* params
  • No env var interference
  • Gateway force-reinstalled, pycache cleared
  • Tested provider="" / "openai" / "custom:doubao" — all ignored
  • Direct API call to doubao works (execute_code), proving endpoint is reachable

Workaround

Using execute_code with direct urllib calls, but bypasses subagent toolset/session.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix [Bug] delegate_task ignores delegation.base_url — subagent always inherits parent model