hermes-agent/hermes_cli
Dev User 3221818b6e fix: respect OPENAI_BASE_URL when resolving API key priority
When base_url points to a non-OpenRouter endpoint (e.g. Z.ai),
OPENROUTER_API_KEY incorrectly takes priority over OPENAI_API_KEY,
sending the wrong credentials. This causes 401 errors on the main
inference path and forces users to comment out OPENROUTER_API_KEY,
which then breaks auxiliary clients (compression, vision).

Fix: check whether base_url contains "openrouter" and swap the key
priority accordingly. Also adds GLM-4.7 and GLM-5 context lengths
to DEFAULT_CONTEXT_LENGTHS.
2026-03-05 08:25:16 +00:00
..
__init__.py Hermes Agent UX Improvements 2026-02-22 02:16:11 -08:00
auth.py Fix nous refresh token rotation failure in case where api key mint/retrieval fails 2026-03-02 17:18:15 +11:00
banner.py feat(mcp): banner integration, /reload-mcp command, resources & prompts 2026-03-02 19:15:59 -08:00
callbacks.py refactor: reorganize agent and CLI structure for improved clarity 2026-02-21 23:17:18 -08:00
codex_models.py refactor(auth): transition Codex OAuth tokens to Hermes auth store 2026-03-01 19:59:24 -08:00
colors.py Cleanup time! 2026-02-20 23:23:32 -08:00
commands.py feat(cli): add /usage command to display session token usage 2026-03-01 00:23:19 -08:00
config.py feat: add container resource configuration prompts in setup wizard 2026-03-04 03:29:05 -08:00
cron.py refactor: streamline cron job handling and update CLI commands 2026-02-21 16:21:19 -08:00
doctor.py Merge remote-tracking branch 'origin/main' into codex/align-codex-provider-conventions-mainrepo 2026-02-26 10:56:29 -08:00
gateway.py feat: add detailed setup instructions for Telegram, Discord, and Slack platforms 2026-03-03 20:05:15 -08:00
main.py feat: add interactive setup for messaging platforms in gateway CLI 2026-03-03 18:57:33 -08:00
models.py Update model version in hermes_cli to use openai/gpt-5.3-codex 2026-02-25 13:26:14 -08:00
pairing.py Cleanup time! 2026-02-20 23:23:32 -08:00
runtime_provider.py fix: respect OPENAI_BASE_URL when resolving API key priority 2026-03-05 08:25:16 +00:00
setup.py feat: add backend validation for required binaries in setup wizard 2026-03-04 14:49:23 -08:00
skills_hub.py Cleanup time! 2026-02-20 23:23:32 -08:00
status.py refactor(cli): Finalize OpenAI Codex Integration with OAuth 2026-02-28 21:47:51 -08:00
tools_config.py feat: enhance Home Assistant integration with service discovery and setup 2026-03-03 05:16:53 -08:00
uninstall.py Cleanup time! 2026-02-20 23:23:32 -08:00