Skip to content

Conversation

@mclenhard
Copy link

Background

Added support for zero data retention filtering in the AI Gateway provider, allowing users to ensure
their requests are only routed to providers that guarantee zero data retention.

Summary

This PR adds a new zdr (zero data retention) option to the Gateway provider options, which accepts a
boolean value. When enabled, the gateway will filter and route requests only to providers that
guarantee they do not store or retain any request data.

Manual Verification

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)
  • I have reviewed this pull request (self-review)

Future Work

It is possible that in the future ZDR could be an enum with different levels of retention.


Restricts routing to providers with zero data retention guarantees.

Example: `zdr: true`
Copy link
Collaborator

Choose a reason for hiding this comment

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

is there a reason for the abbreviation? zeroDataRetention would be much more clear

Copy link
Author

Choose a reason for hiding this comment

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

Yeah thats a good idea, I'll update. I've just grown accustomed to the acronym, but someone unfamiliar will be confused.

@mclenhard mclenhard requested a review from gr2m December 1, 2025 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants