Repository navigation
feat(llm): send app attribution headers to Vercel AI Gateway - #1603
Merged
Merged
Conversation
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Contributor
[Medium impact] The change affects outbound LLM requests using Vercel AI Gateway. The PR appears safe to merge, with a non-blocking gap for Vercel models using the explicit Findings
Fix with agent prompt### Issue 1
strix/config/models.py:903
`is_vercel_ai_gateway_model` misses the supported `litellm/vercel_ai_gateway/...` form. `StrixProvider` accepts the explicit `litellm/` prefix, but both header paths check the original model name. Those requests still lack `HTTP-Referer` and `X-Title`, leaving the attribution fix incomplete. Strip the optional `litellm/` prefix before matching, and test both forms.
```suggestion
name = (model_name or "").strip().lower().removeprefix("litellm/")
return name.startswith("vercel_ai_gateway/")
```
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.SummaryAdds shared app attribution headers for Vercel AI Gateway while keeping OpenRouter's category header.
Reviews (1) · Last reviewed commit: "feat(llm): send app attribution headers ..." · Reviewed by Greptile |
0xallam
approved these changes
Oct 28, 2026
samirhvbr
added a commit
to samirhvbr/strix
that referenced
this pull request
Oct 29, 2026
…box image delivery blocker Second pass over the review branch, with both remotes fetched. Upstream main did not move (still 6b7ae2e, the synchronized base), so no code checkpoint advances. Known items: all 530 upstream ledger records and the 44 fork PRs were compared with the live API on state, updated date and head SHA. Only usestrix#1393 changed (rebased onto 6b7ae2e with four commits of its own); it is re-reviewed in depth and stays deferred, with the reasons recorded. Open inventory is unchanged at 320 PRs + 203 issues. Discovery: the 48-hour-overlap update query returned 29 items. Four closed items were not in the ledger and now are: PRs usestrix#1616, usestrix#1617 and usestrix#1603, merged upstream and already ancestors of the branch through the base synchronization, and issue usestrix#1529, a usage question. The ledger has 574 records; coverage totals are recomputed from it. Version and releases rechecked and unchanged: 1.2.43 equals the tag, the Latest Release and remote master; upstream's latest release is still v1.7.0. New delivery blocker: the synchronized source defaults to ghcr.io/usestrix/strix-sandbox:1.3.1, which is not published (manifest 404; 1.3.0 answers 200 as the control). master pins the published 1.3.0. Recorded in release-audit.json, the checkpoints, the round report, the continuity guide and version.md. No tag, release, mirror or master change. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TavwVMH7PvrD68JTDfd6Hb
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
Vercel AI Gateway reads the same
HTTP-RefererandX-Titleheaders as OpenRouter for app attribution. Strix only sent them foropenrouter/models, sovercel_ai_gateway/...requests went out unattributed.attribution_headersfeeds bothlitellm.headersand the per-request headers.LLM_EXTRA_HEADERSstill overrides.Closes STR-1721
Link to Devin session: https://app.devin.ai/sessions/fbffcc99b0064fdc8a53e151e75e369a
Open in Devin Desktop: https://app.devin.ai/desktop/session/fbffcc99b0064fdc8a53e151e75e369a?variant=devin