Repository navigation
[skills] Sync ai-gateway with current docs - #359
Open
vercel-gh-bot-2[bot] wants to merge 1 commit into
Open
vercel-gh-bot-2[bot] wants to merge 1 commit into
vercel-gh-bot-2[bot] wants to merge 1 commit into
Conversation
vercel-gh-bot-3
Bot
force-pushed
the
eve-drift/ai-gateway
branch
from
October 29, 2026 09:35
2e14c6a to
b98682e
Compare
<!-- vercel-plugin-drift-agent -->
vercel-gh-bot-3
Bot
force-pushed
the
eve-drift/ai-gateway
branch
from
November 2, 2026 09:27
b98682e to
950a93a
Compare
This branch has not been deployed
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.
references/virtual-models.md: "Only team Owners and Members can manage Virtual Models, but any team member can call one." is too broad. A Member who did not create a Virtual Model cannot edit or remove it. Corrected to: Owners and Members can create; only the creator or a team Owner can edit, archive, remove, or restore one; any team member can call one. Source: https://vercel.com/docs/ai-gateway/models-and-providers/virtual-models (last_updated 2026-10-02), Permissions: "Team Owners and Members can create virtual models. Only the member who created a virtual model or a team Owner can edit, archive, remove, or restore it, in the dashboard or the CLI."references/evaluation.md: "Gatewaystatecan be a string, object, or array." This is still true for Gateway's HTTP shape. But sinceai7.0.133, AI SDKexperimental_decidetreats an array passed directly asstateas ordered decision state parts, so passing a raw JSON array through AI SDK now means something different. Added a short version note telling users to wrap JSON arrays in an object or ajsonpart. Sources: https://ai-sdk.dev/docs/ai-sdk-core/decisions ("State can be a string, JSON object, or an array of ordered text, file, and JSON parts."), and theai7.0.133 changelog (vercel/aipackages/ai/CHANGELOG.md): "Arrays passed directly as state now contain decision state parts. Wrap JSON arrays in an object or a json part."Verification
run_plugin_checks: build, typecheck, validate, and test all passed (1279 tests pass, 0 fail).Test updates
None.
Not changed
stateaccepts a string, an object, or an array, with no mention of AI SDK state parts. This is docs lag, not skill drift, so the Gateway HTTP wording stays as it is.vercel ai-gatewayCLI claims (virtual-models,budgets --default, setup flags) were checked against https://vercel.com/docs/cli/ai-gateway. The public vercel/vercel default branch has novirtual-modelscommand source, while the published CLI is 65.2.0, so I couldn't check these claims against the shipped code.https://ai-gateway.vercel.sh/v1andhttps://ai-gateway.vercel.sh/typesafereturn 404 to link checks. They are API base URLs, not docs pages, so they were left alone.Opened automatically by the vercel-plugin drift agent. Review before merge.
Drift scan update 2026-10-29
--amount. Retired text: "vercel ai-gateway api-keys create --limit 500 ...", "budgets set team --limit 500" (and the otherbudgets set ... --limitexamples), "--limitneeds Vercel CLI 59.13+; older CLIs use the deprecated--budget", and in coding-agents.md "--budget <AMOUNT>and--refresh-period <PERIOD>". Correction: the examples now use--amount, with version notes (--amountneeds CLI 65.4+; older CLIs use--limit, or--budgetbefore 59.13). Source: vercel/vercelpackages/cli/CHANGELOG.md, 65.4.0 (npmvercel@latestis 65.7.0): "Onai-gateway api-keys create,ai-gateway budgets set, andai-gateway budgets defaults set, the money option is now--amount, so--limitthere also warns." Forai-gateway setup,packages/cli/src/commands/ai-gateway/command.tssays: "// Hidden:--budgetis the old name of--amount."api-keys create/list/inspect/remove", "virtual-models create/list/inspect/edit/remove/restore", "rules add/list/edit/remove", and "The CLI supports create, list, inspect, edit, remove, and restore." Correction: the commands are nowapi-keys revoke,virtual-models update/delete, andrules update. Each row gets a version note:updateneeds CLI 64.4+ andrevoke/deleteneed 64.6+; older CLIs useedit/remove. Sources:ai-gateway rules update, andai-gateway virtual-models update. The old names (edit,configure,config) still work and print a deprecation warning."delete,remove, orrevoke, by what they take away".revokelistsaliases: ['remove', 'rm', 'delete'],and virtual-modelsdeletelistsaliases: ['rm', 'del', 'remove'],.Verification
run_plugin_checkspassed all four steps: build, typecheck, validate (all checks OK), and test (1279 pass, 0 fail).Test updates
None.
tests/fixtures/pattern-fixtures.jsonstill hasbudgets set team --limit 500as a bash-pattern match input. It still matches, and the deprecated flag still works.Same fact elsewhere (not changed)
skills/vercel-cli/references/agent-and-ai.mdand itsupstream/source still showapi-keys create ... --budget 500. That text is different and lives in an overlay skill, so it needs an upstream resync there.Not changed
--limit,--budget,edit, andremove. The skill now follows the shipped CLI.Opened automatically by the vercel-plugin drift agent. Review before merge.
Drift scan update 2026-11-02
skills/ai-gateway/references/virtual-models.md: "Only team Owners and Members can manage Virtual Models, but any team member can call one." Owners and Members can create Virtual Models, but only the member who created one, or a team Owner, can edit, archive, remove, or restore it. As written, an agent could tell any Member they can edit or remove a colleague's Virtual Model. Source: https://vercel.com/docs/ai-gateway/models-and-providers/virtual-models (last_updated 2026-10-02), Permissions section: "Team Owners and Members can create virtual models. Only the member who created a virtual model or a team Owner can edit, archive, remove, or restore it, in the dashboard or the CLI."Verification
run_plugin_checks: build, typecheck, validate, and test all pass (1279 tests pass, 0 fail).Not changed
check_links404s forhttps://ai-gateway.vercel.sh/v1,/typesafe,/coding-agent,/claude-code, and/v1/models/{creator}/{model}/endpointsare API base URLs, not docs pages, so they are not broken links.api-keys,budgetsincluding--default,models,virtual-models,rules,setup,leaderboard) matchespackages/cli/src/commands/ai-gatewayin vercel/vercel.Opened automatically by the vercel-plugin drift agent. Review before merge.