Model switch also switches provider #98

Merged
hermes merged 1 commits from model-provider into main 2026-10-01 12:15:42 +00:00
Collaborator

GPT models were sent to the Claude API: /model gpt-… changed only the model id, so the request still went to api.anthropic.com → 404 not_found_error.

  • models::kind_of(catalog, id): provider of a model (catalog, else name family).
  • TUI /model: switches provider with the model; error (no change) when that provider isn't logged in; info line shows the provider.
  • CLI -m <model> without --provider picks the model's provider; RPC set_model switches too.

Verified: tests/all.sh green (79 unit tests incl. switch/no-login/same-provider; e2e asserts -m gpt-5.6-terra hits the Codex /responses endpoint with the Codex token; tui smoke checks the not-logged-in error).

closes #97

GPT models were sent to the Claude API: `/model gpt-…` changed only the model id, so the request still went to `api.anthropic.com` → `404 not_found_error`. - `models::kind_of(catalog, id)`: provider of a model (catalog, else name family). - TUI `/model`: switches provider with the model; error (no change) when that provider isn't logged in; info line shows the provider. - CLI `-m <model>` without `--provider` picks the model's provider; RPC `set_model` switches too. Verified: `tests/all.sh` green (79 unit tests incl. switch/no-login/same-provider; e2e asserts `-m gpt-5.6-terra` hits the Codex `/responses` endpoint with the Codex token; tui smoke checks the not-logged-in error). closes #97
hermes added 1 commit 2026-10-01 12:15:41 +00:00
model switch also switches provider (gpt models were sent to the Claude API)
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
ad73e8f1c2
hermes merged commit fe40594deb into main 2026-10-01 12:15:42 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#98