Skip to content

Conversation

@chrisclark
Copy link

feat: add zdr parameter to OpenRouter chat settings

Summary

Adds the zdr boolean parameter to the OpenRouter chat settings type definition in the AI SDK provider. This parameter enables clients using the AI SDK to restrict routing to only ZDR (Zero Data Retention) endpoints by setting zdr: true in their provider configuration.

This change is part of a coordinated feature implementation across repositories - the main routing logic is implemented in openrouter-web#7637.

Review & Testing Checklist for Human

  • Verify the parameter definition matches the implementation in openrouter-web PR #7637
  • Test end-to-end that setting zdr: true in AI SDK actually restricts routing to ZDR endpoints
  • Confirm the parameter documentation accurately describes the behavior (should only have effect when explicitly set to true)

Notes

  • This is a companion PR to the main implementation in openrouter-web
  • The change is minimal (just type definition) but should be tested with the full feature
  • Requested by @chrisclark in Devin session

- Add zdr boolean parameter to provider settings
- Enables ZDR-only endpoint routing when set to true

Co-Authored-By: chris.clark@openrouter.ai <chris@untrod.com>
@devin-ai-integration
Copy link
Contributor

Original prompt from chris.clark@openrouter.ai
@Devin add a new API parameter `zdr` that is a boolean. If it is set to true, then the request can only get routed to ZDR endpoints. If it is set to any other value, it does nothing.
Thread URL: https://T053YQ6R5TR.slack.com/archives/C07UF9XLTFF/p1757950438770399?thread_ts=1757950438.770399

@devin-ai-integration
Copy link
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants