You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Selecting Claude Haiku 5.5 (or Claude Sonnet 5.5) under the GitHub Copilot provider in /model fails on every turn with:
Error: 400 Invalid_request_error The requested model is not supported.
The very same model works fine under the Command Code provider. So it is a Copilot-provider-only failure and does not depend on the user's plan or config.
Root cause
@byokkit/cmd-provider-copilot@0.1.2 (latest) — COPILOT_MODEL_ID_MAPPING in dist/chunk-EO2W2NPS.js maps Command Code hyphenated ids → Copilot dotted ids. That is the intended mechanism (per the comment right above the table: "these now map hyphen→dot like the older Claude ids"), but the table is stale — it is missing the newest Claude 5.5 ids.
toCopilotModelId() falls through (?? modelId), forwards the hyphenated id verbatim, and Copilot rejects it.
Why this works: toCopilotModelId() is MAPPING[id] ?? id, so with these entries the provider emits the exact dotted id Copilot accepts instead of forwarding the hyphenated one verbatim.
Verified after applying the patch to the installed package:
and a direct POST https://api.githubcopilot.com/chat/completions with those dotted ids returns 200 (the hyphenated ids return the 400 model_not_supported shown in the report).
Activity
web3wannabe commentedon Oct 14, 2026
Proposed fix (verified)
File:
@byokkit/cmd-provider-copilot@0.1.2→dist/chunk-EO2W2NPS.js→COPILOT_MODEL_ID_MAPPINGAdd the two missing hyphen→dot entries:
Why this works:
toCopilotModelId()isMAPPING[id] ?? id, so with these entries the provider emits the exact dotted id Copilot accepts instead of forwarding the hyphenated one verbatim.Verified after applying the patch to the installed package:
and a direct
POST https://api.githubcopilot.com/chat/completionswith those dotted ids returns200(the hyphenated ids return the400 model_not_supportedshown in the report).