-
Notifications
You must be signed in to change notification settings - Fork 913
Update model sizes for github-copilot #810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,7 @@ output = 0 | |
|
|
||
| [limit] | ||
| context = 80_000 | ||
| input = 80_000 | ||
| output = 16_000 | ||
|
|
||
| [modalities] | ||
|
|
||
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,7 @@ output = 0 | |
|
|
||
| [limit] | ||
| context = 128_000 | ||
| input = 109_000 | ||
| output = 64_000 | ||
|
|
||
| [modalities] | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,7 @@ output = 0 | |
|
|
||
| [limit] | ||
| context = 128_000 | ||
| input = 109_000 | ||
| output = 64_000 | ||
|
|
||
| [modalities] | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,7 @@ output = 0 | |
|
|
||
| [limit] | ||
| context = 128_000 | ||
| input = 109_000 | ||
| output = 64_000 | ||
|
|
||
| [modalities] | ||
|
|
||
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
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
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,7 @@ output = 0 | |
|
|
||
| [limit] | ||
| context = 128_000 | ||
| input = 109_000 | ||
| output = 64_000 | ||
|
|
||
| [modalities] | ||
|
|
||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where is this 200k coming from?
In their models api I see:
So I would expect:
context: 144k
input: 128k
output: 32k
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same goes for a lot of the other values in here, I can update them all myself but im wondering the logic here maybe im missing soemthing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I trusted the json in the comment above. If you have a more trustworthy source or a way to update these values programmatically I think it’s better to use it instead
It would also help with opus 4.6 fast and gpt 5.3 codex (even though the rollout is paused)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind the gpt 5.3 part, it’s now generally available:
https://github.blog/changelog/2026-02-09-gpt-5-3-codex-is-now-generally-available-for-github-copilot/
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took a peak inside the vscode extension and it doesn't seem to have context size only "maxInputTokens" and "maxOutputTokens" fields. I can post the json of models available to my account if needed but if you have a more reliable way you should use it instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ex:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's what i have for haiku 4.5 inside vscode:
{ "metadata": { "extension": { "value": "GitHub.copilot-chat", "_lower": "github.copilot-chat" }, "id": "claude-haiku-4.5", "vendor": "copilot", "name": "Claude Haiku 4.5", "family": "claude-haiku-4.5", "tooltip": "Fastest and most compact Claude model. Ideal for quick responses and simple tasks. Rate is counted at 0.33x.", "version": "claude-haiku-4.5", "multiplier": "0.33x", "maxInputTokens": 127805, "maxOutputTokens": 32000, "auth": { "providerLabel": "GitHub Copilot Chat", "accountLabel": "nulladdict" }, "isDefaultForLocation": { "panel": false, "terminal": false, "notebook": false, "editor": false }, "isUserSelectable": true, "modelPickerCategory": { "label": "Premium Models", "order": 1 }, "capabilities": { "vision": true, "toolCalling": true, "agentMode": true } }, "identifier": "copilot/claude-haiku-4.5" }Input tokens seems kinda weird to me (it matches the ui, but still)

It seems close enough so I think you should just use whatever the api gives you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Meanwhile copilot-cli shows something different
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also took a look inside copilot cli and scraped models from there. Here's the haiku definition:
{ "billing": { "is_premium": true, "multiplier": 0.33 }, "capabilities": { "family": "claude-haiku-4.5", "limits": { "max_context_window_tokens": 144000, "max_non_streaming_output_tokens": 16000, "max_output_tokens": 32000, "max_prompt_tokens": 128000, "vision": { "max_prompt_image_size": 3145728, "max_prompt_images": 5, "supported_media_types": ["image/jpeg", "image/png", "image/webp"] } }, "object": "model_capabilities", "supports": { "max_thinking_budget": 32000, "min_thinking_budget": 1024, "parallel_tool_calls": true, "streaming": true, "tool_calls": true, "vision": true }, "tokenizer": "o200k_base", "type": "chat" }, "id": "claude-haiku-4.5", "is_chat_default": false, "is_chat_fallback": false, "model_picker_category": "versatile", "model_picker_enabled": true, "name": "Claude Haiku 4.5", "object": "model", "policy": { "state": "enabled", "terms": "Enable access to the latest Claude Haiku 4.5 model from Anthropic. [Learn more about how GitHub Copilot serves Claude Haiku 4.5](https://gh.io/copilot-anthropic)." }, "preview": false, "supported_endpoints": ["/chat/completions"], "vendor": "Anthropic", "version": "claude-haiku-4.5" },So I think the api can be trusted over whatever vscode is doing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are so more interesting findings:
{ "family": "claude-opus-4.6-fast", "limits": { "max_context_window_tokens": 200000, "max_non_streaming_output_tokens": 16000, "max_output_tokens": 64000, "max_prompt_tokens": 128000, "vision": { "max_prompt_image_size": 3145728, "max_prompt_images": 1, "supported_media_types": ["image/jpeg", "image/png", "image/webp"] } }, }{ "family": "claude-opus-4.6", "limits": { "max_context_window_tokens": 144000, "max_non_streaming_output_tokens": 16000, "max_output_tokens": 64000, "max_prompt_tokens": 128000, "vision": { "max_prompt_image_size": 3145728, "max_prompt_images": 1, "supported_media_types": ["image/jpeg", "image/png", "image/webp"] } }, }So regular opus 4.6 has 144k context window and fast has the full 200k