Repository navigation
[skills] Sync ai-gateway with current docs - #317
Open
vercel-gh-bot-5[bot] wants to merge 1 commit into
Open
vercel-gh-bot-5[bot] wants to merge 1 commit into
vercel-gh-bot-5[bot] wants to merge 1 commit into
Conversation
<!-- vercel-plugin-drift-agent -->
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.
AI Gateway renamed evaluation models to decision models (docs updated 2026-10-07,
ai7.0.128 /@ai-sdk/gateway4.0.104 changelog "renameevaluatetodecide") and added an OpenAI-compatible Decisions API. The skill still said evaluation is unavailable through OpenAI-compatible endpoints and recommended the now-deprecatedexperimental_evaluate/gateway.evaluationModel().SKILL.md) and "Evaluation is not supported through the OpenAI-compatible, Anthropic-compatible, or Cohere-compatible endpoints. Use one of the three surfaces above instead." (references/evaluation.md). Correction: decisions are also served by the OpenAI-compatiblePOST /v1/decisions; they are not supported through Chat Completions, Responses, Anthropic- or Cohere-compatible endpoints. Added an OpenAI Decisions SDK row to the surface table and the OpenAI-compatible surface to the SKILL.md routing row. Sources: https://vercel.com/docs/ai-gateway/modalities/decision (last_updated 2026-10-07): "They are not supported through Chat Completions, Responses, or the Anthropic-compatible or Cohere-compatible endpoints."; https://vercel.com/docs/ai-gateway/sdks-and-apis/openai-decisions (last_updated 2026-10-07): "Ask typed questions about shared input and get back probabilities, choices, and scores using the OpenAI-compatible"; https://vercel.com/docs/ai-gateway/sdks-and-apis (last_updated 2026-10-07).import { experimental_evaluate as evaluate } from 'ai';and "experimental_evaluatefromai". Correction:experimental_decide(ai 7.0.128+);experimental_evaluatenoted as the deprecated alias for earlier AI SDK 7 releases. Source: https://vercel.com/docs/ai-gateway/getting-started/decision (last_updated 2026-10-07): "Earlier AI SDK 7 releases call it"; "Use ai 7.0.128 or later for this quickstart". Confirmed inai@7.0.133dist/index.d.ts:/** @deprecated Use \experimental_decide` instead. */ export declare const experimental_evaluate`.gateway.evaluationModel(<model-id>)" as the current method. Correction:gateway.decisionModel(<model-id>)with a version note (@ai-sdk/gateway4.0.104+, shipped withai7.0.128+; earlier releases use the deprecatedgateway.evaluationModel). Source: https://vercel.com/docs/ai-gateway/modalities/decision (2026-10-07): "Decision models were previously called evaluation models." Confirmed in@ai-sdk/gateway@4.0.108CHANGELOG (4.0.104: "renameevaluatetodecide")./docs/ai-gateway/modalities/evaluation→/modalities/decision,/getting-started/evaluation→/getting-started/decision,/models-and-providers/evaluation-fallbacks→/models-and-providers/decision-fallbacks(https://vercel.com/docs/ai-gateway/models-and-providers/decision-fallbacks, 2026-10-07: "Decision fallbacks were previously called evaluation fallbacks."). Model list filter?capabilities=evaluation→?capabilities=decision, as linked from every decision page.Verification
run_plugin_checks: build, typecheck, validate, and test all pass (1079 tests, 0 failures).Test updates
None.
Not changed
metadata.docsstill citeshttps://vercel.com/docs/ai-gateway/modalities/evaluation, which redirects to/modalities/decision(same product); frontmatter left byte-identical. Prompt signals and entities (experimental_evaluate,v1/evaluate, "evaluation model") left as matching fields.references/evaluation.mdfile name kept; only facts and links changed.POST /v1/evaluateremains the documented HTTP endpoint, so it was kept.references/evaluation.md"Gatewaystatecan be a string, object, or array": theai7.0.133 changelog says arrays passed directly as AI SDK state now contain decision state parts; left for a follow-up since the Gateway HTTP format is unchanged.Opened automatically by the vercel-plugin drift agent. Review before merge.