fix: correct github-copilot model limits to match Copilot API#1246
Open
Nepomuceno wants to merge 1 commit intoanomalyco:devfrom
Open
fix: correct github-copilot model limits to match Copilot API#1246Nepomuceno wants to merge 1 commit intoanomalyco:devfrom
Nepomuceno wants to merge 1 commit intoanomalyco:devfrom
Conversation
Update token limits for 6 models in the github-copilot provider to match the authoritative values from the Copilot API endpoint (GET https://api.githubcopilot.com/models). Models fixed: - claude-haiku-4.5: ctx 144K→200K, input 128K→136K, output 32K→64K - claude-opus-4.5: ctx 160K→200K, input 128K→168K - claude-opus-4.6: ctx 144K→200K, input 128K→168K, output 64K→32K - claude-sonnet-4.5: ctx 144K→200K, input 128K→168K - claude-sonnet-4.6: input 128K→168K - gpt-5.2: ctx 264K→400K, input 128K→272K, output 64K→128K The under-reported limits cause tools like OpenCode to trigger context compaction 40K-136K tokens earlier than necessary. Fixes anomalyco#858
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.
Summary
Corrects token limits for 6 models in the
github-copilotprovider to match the authoritative values from the Copilot API (GET https://api.githubcopilot.com/models).This PR only fixes limits — no models are added or removed.
Changes
contextinputoutputcontextinputcontextinputoutputcontextinputinputcontextinputoutputHow the correct values were verified
Each model in the response includes:
Impact
The under-reported limits cause tools like OpenCode to trigger context compaction 40K–136K tokens earlier than necessary, significantly degrading the user experience especially for Claude and GPT-5.2 models.
Fixes #858