Skip to content

feat (provider/gateway): add disallowPromptTraining provider option#12230

Closed
mclenhard wants to merge 6 commits intovercel:mainfrom
mclenhard:feat/add-hipaa-compliant-filtering
Closed

feat (provider/gateway): add disallowPromptTraining provider option#12230
mclenhard wants to merge 6 commits intovercel:mainfrom
mclenhard:feat/add-hipaa-compliant-filtering

Conversation

@mclenhard
Copy link
Copy Markdown
Contributor

@mclenhard mclenhard commented Feb 3, 2026

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

Checklist

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)

🤖 Generated with Claude Code

@Ashutosh0x
Copy link
Copy Markdown

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.

@gr2m gr2m added ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label provider/gateway Issues related to the @ai-sdk/gateway provider and removed ai/gateway labels Mar 6, 2026
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rm

import { generateText } from 'ai';

const { text } = await generateText({
model: 'anthropic/claude-sonnet-4.5',
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4.6

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rm

jerilynzheng and others added 3 commits March 13, 2026 21:44
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>
@jerilynzheng jerilynzheng changed the title feat (provider/gateway): add hipaa filtering feat (provider/gateway): add disallowPromptTraining provider option Mar 18, 2026
@jerilynzheng
Copy link
Copy Markdown
Contributor

Superseded by #13726 (rebranched to feat/add-disallow-prompt-training after separating hipaaCompliant into #13614)

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>
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 provider/gateway Issues related to the @ai-sdk/gateway provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants