molecule-ai-workspace-templ.../scripts
Hongming Wang ae3bf3196e fix(hermes): align env vars with upstream + add 12 missing providers
Three small but real cleanups against hermes-agent v0.12.0
(NousResearch/hermes-agent, 2026-04-30):

1. Rename HERMES_DEFAULT_MODEL -> HERMES_INFERENCE_MODEL (upstream's
   actual env name). Reads BOTH for one release cycle so workspace-server
   (which still writes the legacy name) doesn't break — drop the legacy
   fallback after workspace-server is updated in a follow-up PR.

2. Drop HERMES_API_KEY from start.sh's .env heredoc. That var only feeds
   hermes-agent's TUI gateway bridge, NOT any LLM provider. Provider
   credentials go through OPENROUTER_API_KEY / OPENAI_API_KEY / etc.

3. Add 12 missing provider prefixes to derive-provider.sh so model slugs
   like xai/grok-4, bedrock/anthropic.claude-sonnet-4, lmstudio/local,
   copilot/gpt-4o, etc., route to the correct provider instead of
   falling through to "auto".

New tests/test_derive_provider.sh — 26 sh-style assertions covering the
legacy fallback, the precedence rule, all 12 new providers, and a few
regression cases for adjacent prefixes (minimax vs minimax-oauth, qwen
vs qwen-oauth, alibaba vs alibaba-coding-plan).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 19:23:43 -07:00
..
derive-provider.sh fix(hermes): align env vars with upstream + add 12 missing providers 2026-05-02 19:23:43 -07:00
e2e_full_chain.py test(e2e): full-chain local validation against real hermes gateway subprocess 2026-05-02 04:08:27 -07:00
load-workspace-config.sh fix(start.sh): read provider/model from /configs/config.yaml (Option B PR-4) 2026-04-30 23:52:00 -07:00
test-derive-provider.sh fix(derive-provider): prefer custom provider when OPENAI_API_KEY set for openai/* models 2026-04-23 18:27:43 -07:00
test-install-prefix-strip.sh fix(install): decouple openai/ prefix strip from HERMES_CUSTOM_* auto-fill 2026-04-23 23:27:33 -07:00
test-load-workspace-config.sh fix(start.sh): read provider/model from /configs/config.yaml (Option B PR-4) 2026-04-30 23:52:00 -07:00