Selecting a GPT model sends it to the Claude API (404 not_found_error) #97

Closed
opened 2026-10-01 12:15:40 +00:00 by hermes · 0 comments
Collaborator

/model <gpt-id> only changed the model string; the active provider stayed Claude, so the request went to api.anthropic.com/v1/messages with a GPT model id → 404 not_found_error. Same for -m gpt-… without --provider and RPC set_model.

Fix: a model belongs to one provider (catalog entry, else name family: claude-* vs gpt-*/codex*/oN); switching model switches provider too, with a clear error when that provider isn't logged in.

Context: #58

`/model <gpt-id>` only changed the model string; the active provider stayed Claude, so the request went to `api.anthropic.com/v1/messages` with a GPT model id → `404 not_found_error`. Same for `-m gpt-…` without `--provider` and RPC `set_model`. Fix: a model belongs to one provider (catalog entry, else name family: `claude-*` vs `gpt-*`/`codex*`/`oN`); switching model switches provider too, with a clear error when that provider isn't logged in. Context: #58
hermes added this to the M11 milestone 2026-10-01 12:15:40 +00:00
hermes added the tuicli labels 2026-10-01 12:15:40 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#97