Skip to content

feat: add github copilot claude sonnet 4.6 model#953

Merged
rekram1-node merged 2 commits intoanomalyco:devfrom
mongrelion:dev
Feb 18, 2026
Merged

feat: add github copilot claude sonnet 4.6 model#953
rekram1-node merged 2 commits intoanomalyco:devfrom
mongrelion:dev

Conversation

@mongrelion
Copy link
Contributor

Model list sourced from GitHub Settings page showing currently available models. Specifications cross-referenced with Anthropic provider implementation.

Model list sourced from GitHub Settings page showing currently available models. Specifications cross-referenced with Anthropic provider implementation.
Comment on lines 15 to 17
[limit]
context = 200_000
output = 64_000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are wrong

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How so? I took the information from the official documentation, where it says that the context window for sonnet 4.6 is 200K tokens and that the max output is 64K tokens.

The small print does mention a context window up to 1M tokens, but it is not clear as to whether or not Github supports that:

3 - Claude Opus 4.6 and Sonnet 4.6 support a 1M token context window when using the context-1m-2025-08-07 beta header. Long context pricing applies to requests exceeding 200K tokens.

Do you have more insight on this? is there any other number you had in mind?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Github copilot does not support the 64k output tokens, are you not fetching the stats from the copilot models endpoint? that's the only way to get accurate numbers.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also it doesnt support pdfs.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{
      "capabilities": {
        "family": "claude-sonnet-4.6",
        "limits": {
          "max_context_window_tokens": 200000,
          "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": {
          "adaptive_thinking": true,
          "max_thinking_budget": 32000,
          "min_thinking_budget": 1024,
          "parallel_tool_calls": true,
          "streaming": true,
          "structured_outputs": true,
          "tool_calls": true,
          "vision": true
        },
        "tokenizer": "o200k_base",
        "type": "chat"
      },
      "id": "claude-sonnet-4.6",
      "model_picker_category": "versatile",
      "model_picker_enabled": true,
      "name": "Claude Sonnet 4.6",
      "object": "model",
      "policy": {
        "state": "enabled",
        "terms": "Enable access to the latest Claude Sonnet 4.6 model from Anthropic. [Learn more about how GitHub Copilot serves Claude Sonnet 4.6](https://gh.io/copilot-claude-opus)."
      },
      "preview": false,
      "supported_endpoints": ["/chat/completions"],
      "vendor": "Anthropic",
      "version": "claude-sonnet-4.6"
    },

@rekram1-node rekram1-node merged commit 7a163db into anomalyco:dev Feb 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants