mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[PR #21890] [CLOSED] feat: add Zaps Privacy Filter for OpenAI connections #49374
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/21890
Author: @argosautomation
Created: 2/26/2026
Status: ❌ Closed
Base:
dev← Head:feat/zaps-privacy-filter-v2📝 Commits (1)
01bf7dcfeat: add Zaps Privacy Filter for OpenAI connections📊 Changes
3 files changed (+57 additions, -5 deletions)
View changed files
📝
backend/open_webui/config.py(+12 -0)📝
backend/open_webui/routers/openai.py(+25 -5)📝
src/lib/components/admin/Settings/Connections.svelte(+20 -0)📄 Description
Pull Request Checklist
devbranch.Changelog Entry
Description
Adds a Privacy Filter toggle to the OpenAI connection settings that routes all OpenAI-compatible requests through a Zaps.ai privacy gateway for automatic PII redaction and rehydration.
When enabled, all outgoing requests to OpenAI providers are transparently redirected to the configured Zaps URL. Zaps handles PII scrubbing before forwarding to the actual upstream provider, and rehydrates PII in responses.
Added
ENABLE_ZAPS_PRIVACY_FILTERandZAPS_API_BASE_URLpersistent configuration optionsget_target_url()helper inrouters/openai.pyfor conditional URL routingChanged
get_target_url()for interceptionOpenAIConfigFormincludesENABLE_ZAPS_PRIVACY_FILTERConfiguration
ENABLE_ZAPS_PRIVACY_FILTERfalseZAPS_API_BASE_URLhttp://localhost:3000Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.