Skip to content

feat(gitlab): update context limit to 1M for Claude Sonnet and Opus 4.6#1089

Merged
rekram1-node merged 2 commits intoanomalyco:devfrom
Krule:krule/update_gitlab_anthropic_context_size
Mar 9, 2026
Merged

feat(gitlab): update context limit to 1M for Claude Sonnet and Opus 4.6#1089
rekram1-node merged 2 commits intoanomalyco:devfrom
Krule:krule/update_gitlab_anthropic_context_size

Conversation

@Krule
Copy link
Contributor

@Krule Krule commented Mar 5, 2026

Claude Sonnet 4.6 and Claude Opus 4.6 support a 1M token context window when using the context-1m-2025-08-07 Anthropic beta header.

This is confirmed in the GitLab AI Gateway source where duo-chat-opus-4-6 already has max_context_tokens: 1_000_000 and the gateway forwards the anthropic-beta header downstream.

Updates limit.context from 200_000 to 1_000_000 for both models.

A companion PR to send context-1m-2025-08-07 beta header to enable 1M context window in opencode is at anomalyco/opencode#16153

@Krule Krule force-pushed the krule/update_gitlab_anthropic_context_size branch from 0ef720c to 7dd0a26 Compare March 5, 2026 11:01
@rekram1-node rekram1-node merged commit 6e0040d into anomalyco:dev Mar 9, 2026
1 check passed
@rekram1-node
Copy link
Contributor

oc pr got released so im merging this

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