| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
The following comment was made by an LLM, it may be inaccurate: Based on the search results, here are potential related PRs: Potentially Related PRs
These PRs address similar functionality (1M context support for Anthropic/Claude models) but on different providers/platforms. The current PR (#16153) is specifically for GitLab AI Gateway, so these are likely complementary rather than duplicates. |
Sorry, something went wrong.
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Sorry, something went wrong.
…text window (#16153) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> (cherry picked from commit ef9bc4e)
…text window (anomalyco#16153) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
…text window (anomalyco#16153) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
…text window (anomalyco#16153) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
…text window (anomalyco#16153) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
…text window (anomalyco#16153) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
…text window (anomalyco#16153) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
…text window (anomalyco#16153) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
…text window (anomalyco#16153) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
…text window (anomalyco#16153) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
…text window (anomalyco#16153) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
…text window (#16153) Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
Issue for this PR
Related to #12338
Type of change
What does this PR do?
Adds anthropic-beta: context-1m-2025-08-07 to the aiGatewayHeaders sent with every GitLab Duo request. This unlocks the 1M token context window for Claude Sonnet 4.6 and Claude Opus 4.6 via the GitLab Duo provider.
The GitLab AI Gateway already supports this: it lists duo-chat-opus-4-6 with max_context_tokens: 1_000_000 in its model config, and anthropic-beta is explicitly in its _ALLOWED_HEADERS_TO_DOWNSTREAM list, meaning it forwards the header to Anthropic.
A companion PR to update the context limit in models.dev is at anomalyco/models.dev#1089.
How did you verify your code works?
Tested locally by building from source and running a session with gitlab/duo-chat-opus-4-6 that exceeded 200k tokens. Without this change the gateway returns a 400 context overflow error. With this change the session continues past 200k.
Also verified by reading the GitLab AI Gateway source:
Screenshots / recordings
N/A — not a UI change.
Checklist