Skip to content

Backport: feat (provider/gateway): add disallowPromptTraining provider option#14039

Merged
vercel-ai-sdk[bot] merged 1 commit intorelease-v6.0from
backport-pr-13726-to-release-v6.0
Apr 2, 2026
Merged

Backport: feat (provider/gateway): add disallowPromptTraining provider option#14039
vercel-ai-sdk[bot] merged 1 commit intorelease-v6.0from
backport-pr-13726-to-release-v6.0

Conversation

@vercel-ai-sdk
Copy link
Copy Markdown
Contributor

@vercel-ai-sdk vercel-ai-sdk bot commented Apr 2, 2026

This is an automated backport of #13726 to the release-v6.0 branch. FYI @jerilynzheng

…13726)

## Summary

- Adds `disallowPromptTraining` gateway provider option to restrict
routing to providers that have agreements with Vercel to not use prompts
for model training
- Includes schema definition, test, documentation with example, and
ai-functions example
- Updates `zeroDataRetention` docs with improved descriptions and
Pro/Enterprise plan note
- Updates model references throughout gateway docs to latest versions
(sonnet-4.6, gpt-5.4, etc.)

## Related

- hipaaCompliant separated into #13614
- Supersedes #12230

## Checklist

- [x] Tests have been added / updated (for bug fixes / features)
- [x] Documentation has been added / updated (for bug fixes / features)
- [x] A _patch_ changeset for relevant packages has been added (for bug
fixes / features - run `pnpm changeset` in the project root)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: mat lenhard <mclenhard@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel-ai-sdk vercel-ai-sdk bot enabled auto-merge (squash) April 2, 2026 06:12
@tigent tigent bot added ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label documentation Improvements or additions to documentation feature New feature or request provider/gateway Issues related to the @ai-sdk/gateway provider labels Apr 2, 2026
@shaper shaper added the backport Admins only: add this label to a pull request in order to backport it to the prior version label Apr 2, 2026
@vercel-ai-sdk vercel-ai-sdk bot merged commit 85e476d into release-v6.0 Apr 2, 2026
26 checks passed
@vercel-ai-sdk vercel-ai-sdk bot deleted the backport-pr-13726-to-release-v6.0 branch April 2, 2026 06:19
vercel-ai-sdk bot added a commit that referenced this pull request Apr 2, 2026
@vercel-ai-sdk vercel-ai-sdk bot removed the backport Admins only: add this label to a pull request in order to backport it to the prior version label Apr 2, 2026
@vercel-ai-sdk
Copy link
Copy Markdown
Contributor Author

vercel-ai-sdk bot commented Apr 2, 2026

⚠️ Backport to release-v5.0 created but has conflicts: #14041

@shaper shaper added the backport Admins only: add this label to a pull request in order to backport it to the prior version label Apr 2, 2026
@vercel-ai-sdk
Copy link
Copy Markdown
Contributor Author

vercel-ai-sdk bot commented Apr 2, 2026

🚀 Published in:

Package Version
ai 6.0.143
@ai-sdk/angular 2.0.144
@ai-sdk/gateway 3.0.85
@ai-sdk/langchain 2.0.149
@ai-sdk/llamaindex 2.0.143
@ai-sdk/react 3.0.145
@ai-sdk/rsc 2.0.143
@ai-sdk/svelte 4.0.143
@ai-sdk/vue 3.0.143

shaper added a commit that referenced this pull request Apr 2, 2026
…ng provider option (#14041)

This is an automated backport of #14039 to the release-v5.0 branch. FYI
@vercel-ai-sdk[bot]
This backport has conflicts that need to be resolved manually.

### `git cherry-pick` output

```
Auto-merging content/providers/01-ai-sdk-providers/00-ai-gateway.mdx
CONFLICT (directory rename split): Unclear where to rename examples/ai-functions/src/stream-text/nim to; it was renamed to multiple other directories, with no destination getting a majority of the files.
Auto-merging packages/gateway/src/gateway-language-model.test.ts
Auto-merging packages/gateway/src/gateway-provider-options.ts
error: could not apply 85e476d... Backport: feat (provider/gateway): add disallowPromptTraining provider option (#14039)
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
```

---------

Co-authored-by: vercel-ai-sdk[bot] <225926702+vercel-ai-sdk[bot]@users.noreply.github.com>
Co-authored-by: Walter Korman <shaper@vercel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label backport Admins only: add this label to a pull request in order to backport it to the prior version documentation Improvements or additions to documentation feature New feature or request provider/gateway Issues related to the @ai-sdk/gateway provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants