feat: models command #1

Merged
xiaonuo merged 2 commits from feat/models-command into main 2026-04-21 02:42:02 +00:00

2 Commits

Author SHA1 Message Date
d78116ed26 fix: read api_key_env from .env file for provider auth
Supports api_key_env field in custom_providers config, reads
from process.env first then falls back to ~/.hermes/.env.

Signed-off-by: Xiaonuo <xiaonuo@shazhou.work>
2026-04-21 10:22:55 +08:00
f195e6a8aa feat: models command — providers/list/test/status/switch with --aux and --tg support
- models providers: list configured custom providers
- models list [provider]: fetch and display available models from /v1/models
- models test [provider]: connectivity check with latency
- models status: show current main + auxiliary model config
- models switch: change provider/model for main or auxiliary tasks
  - --aux <task>: target specific auxiliary tasks (repeatable)
  - --tg: switch via Telegram /model command (current session)
  - --global: persistent switch (with --tg)

Signed-off-by: Xiaonuo <xiaonuo@shazhou.work>
2026-04-21 10:09:47 +08:00