#11447: feat(providers): add Claude models to GitHub Copilot provider
docs
app: macos
agents
stale
size: XS
Cluster:
AI Provider Enhancements
Add Claude model support (claude-sonnet-4, claude-opus-4.5) to the GitHub Copilot provider, enabling users to access Anthropic models through their Copilot subscription.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR expands the built-in `github-copilot` provider by adding Claude model IDs to the default Copilot model list and documenting the available Copilot models. It also tweaks failover classification to treat the string `fetch failed` as a timeout.
The main issues are around model-id correctness/consistency: the PR introduces `claude-sonnet-4.5` (dot) but the rest of the repository uses the dash form `claude-sonnet-4-5`; if Copilot expects the dash form, the new default will fail and the docs will cause users to copy an invalid ID. Additionally, treating generic `fetch failed` network errors as timeouts can trigger failover for non-timeout failures, altering behavior in cases like DNS/TLS/connection failures.
<h3>Confidence Score: 3/5</h3>
- This PR is close to mergeable but likely needs fixes to model IDs and error classification behavior.
- Core changes are small, but the introduced `claude-sonnet-4.5` identifier appears inconsistent with established model-id conventions in this repo and may cause immediate runtime model-selection failures if Copilot expects `claude-sonnet-4-5`. Separately, classifying the generic undici `fetch failed` error as a timeout can change failover routing for non-timeout network failures.
- docs/providers/github-copilot.md, src/providers/github-copilot-models.ts, src/agents/pi-embedded-helpers/errors.ts
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#20747: feat(copilot): support Claude models with correct context windows (...
by yuf1011 · 2026-02-19
82.3%
#15044: fix: refresh GitHub Copilot default model list
by Godzilla675 · 2026-02-12
81.7%
#2806: [AI-Assisted] Fix: Repair tool_use/tool_result pairing for Claude o...
by Arthur742Ramos · 2026-01-27
81.2%
#20095: fix(model-forward-compat): extend claude-sonnet-4.6 forward-compat ...
by SeeYangZhi · 2026-02-18
79.0%
#13505: feat(copilot): add GitHub Enterprise Cloud (GHE.com) support for Co...
by kryptus47 · 2026-02-10
78.5%
#13119: fix: add forward-compat for google-antigravity claude-opus-4-6 models
by sdb001 · 2026-02-10
76.2%
#20587: feat: add Tetrate Agent Router Service provider
by RicHincapie · 2026-02-19
75.3%
#19267: fix: derive failover reason from timedOut flag to prevent unknown c...
by austenstone · 2026-02-17
74.4%
#12059: feat(agents): Add Azure AI Foundry credential support
by lisanyambere · 2026-02-08
74.3%
#13717: feat(providers): add Poe API provider plugin
by kamilio · 2026-02-10
73.8%