feat (provider/gateway): add disallowPromptTraining provider option#12230
Closed
mclenhard wants to merge 6 commits intovercel:mainfrom
Closed
feat (provider/gateway): add disallowPromptTraining provider option#12230mclenhard wants to merge 6 commits intovercel:mainfrom
mclenhard wants to merge 6 commits intovercel:mainfrom
Conversation
shaper
approved these changes
Feb 5, 2026
|
Fantastic addition @shaper! Supporting HIPAA filtering at the gateway level is a huge requirement for enterprise adoption of the Vercel AI SDK. This level of compliance infrastructure simplifies a lot for healthcare developers. |
shaper
reviewed
Mar 13, 2026
| import { generateText } from 'ai'; | ||
|
|
||
| const { text } = await generateText({ | ||
| model: 'anthropic/claude-sonnet-4.5', |
Merges disallowPromptTraining from vercel#11994 into this PR and updates zeroDataRetention/hipaaCompliant docs with improved descriptions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…tTraining Remove hipaaCompliant option from this branch (moved to vercel#13614). Update model versions in docs and drop unrelated formatting changes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Improve zeroDataRetention docs with failure behavior and Pro/Enterprise plan note. Mirror same structure for disallowPromptTraining docs with Vercel agreement language. Fix double-replacement model version typos. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3 tasks
Contributor
shaper
pushed a commit
that referenced
this pull request
Apr 2, 2026
…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 bot
pushed a commit
that referenced
this pull request
Apr 2, 2026
…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>
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
disallowPromptTraininggateway provider option to restrict routing to providers that have agreements with Vercel to not use prompts for model trainingzeroDataRetentiondocs with improved descriptions and Pro/Enterprise plan noteRelated
Checklist
pnpm changesetin the project root)🤖 Generated with Claude Code