Repository navigation
fix(github-copilot): record Messages and Responses packages per model - #9277
Merged
Merged
Conversation
Contributor
|
No actionable findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Copilot serves models on different endpoints, but the catalog only declares the provider-level
@ai-sdk/openai-compatible(/chat/completions). Clients that cannot load Copilot's authenticatedGET /models(for example behind a proxy that blocks it) fall back to this catalog, so they currently send Claude to/chat/completionsand responses-only models to the wrong endpoint.This adds a per-model
[provider]override:claude-*, 11 models):npm = "@ai-sdk/anthropic",api = "https://api.githubcopilot.com/v1"(Anthropic Messages at/v1/messages).gpt-5.3-codex,gpt-5.4,gpt-5.4-mini,gpt-5.4-nano,gpt-5.5,gpt-5.6-*,gpt-6-*,gpt-6.1-sol,grok-4.5/4.6/4.7,mai-code-1-flash-picker,mai-code-1.1-flash):npm = "@ai-sdk/openai".gemini-*,kimi-*,gpt-5-mini.Evidence
Authenticated
GET https://api.githubcopilot.com/models(X-GitHub-Api-Version: 2026-08-01)supported_endpoints, plus a minimal live request per endpoint for each model available to the test account:/v1/messages/responses/chat/completionsclaude-haiku-4.5,claude-haiku-5.5,claude-sonnet-5,claude-sonnet-5.5unsupported_api_for_modelclaude-opus-4.8,claude-opus-5,claude-opus-5.5,claude-fable-5,claude-fable-5.1gpt-5.3-codex,gpt-5.4-mini,gpt-5.6-luna,gpt-5.6-terra,gpt-6-luna,mai-code-1.1-flash,grok-4.5/4.6/4.7unsupported_api_for_modelgpt-5.4gpt-5.5,gpt-5.6-sol,gpt-6-sol,gpt-6.1-sol,gpt-6-astra/responses,ws:/responses)gemini-3.7-flash,gemini-3.8-flash,kimi-k3unsupported_api_for_modelgpt-5-mini"Advertised" rows are policy-disabled on the test account, so only
/modelsmetadata was available.claude-opus-4.7,claude-sonnet-4.6,gpt-5.4-nano, andmai-code-1-flash-pickerwere not in the account's model list; they follow their family.gpt-5.4accepts both, and Copilot clients use Responses for GPT-5+.The Copilot sync only updates
costand leaves[provider]intact (github-copilotsync run: 35 unchanged).bun validatepasses.