-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
fix(responses): presidio PII masking for Azure WebSocket and streaming #30003
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mateo-berri
merged 26 commits into
litellm_internal_staging
from
litellm_responses-websocket-presidio-guardrails
Jun 12, 2026
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
5869dd8
fix(responses): Presidio PII masking for Azure WebSocket and streaming
Sameerlite 3d26750
Fix unused imports in responses handlers
Sameerlite b5a4c07
fix(responses): address Greptile review - Azure WebSocket model URL a…
Sameerlite 4a392c6
fix(responses): mask nested response.create input format for Presidio…
Sameerlite 6150fac
style: apply black formatting to llm_http_handler and streaming_iterator
Sameerlite ea49d36
style: suppress PLR0915 on async_responses_websocket
Sameerlite fbde373
fix(responses): add apply_to_output masking on Responses API WebSocke…
Sameerlite 112d5ce
fix(responses): unmask PII tokens in streaming delta events and warn …
Sameerlite 9e8ffb3
fix(responses): enforce authorized model on WebSocket frames and remo…
Sameerlite 0f66b12
fix(responses): add _unmask_pii_text to duck-typed contract and mask …
Sameerlite c4a9027
Fix Responses WebSocket guardrail edge cases
cursoragent 29cc383
fix(responses): log masked output and suppress deltas when apply_to_o…
Sameerlite 1ce3339
fix(responses): mask and suppress response.output_item.done for apply…
Sameerlite 562de5e
fix(types): cast response_obj to ResponsesAPIResponse to satisfy mypy
Sameerlite 2ae01df
Revert "fix(types): cast response_obj to ResponsesAPIResponse to sati…
Sameerlite 19e4c97
Revert "fix(responses): mask and suppress response.output_item.done f…
Sameerlite b587c49
fix(types): accept dict responses in guardrail output write-back
Sameerlite 2b6edfe
perf(responses): skip Presidio masking on suppressed WebSocket delta …
mateo-berri 28b8689
test(responses): cover Responses WebSocket PII masking hooks
mateo-berri 1af5562
fix(responses): suppress text-bearing done events under output PII ma…
mateo-berri 6a60a4c
refactor(responses): drop dead delta branch in WebSocket output masking
mateo-berri 6d49177
fix(presidio): flush buffered chat chunks on mixed unmask stream
mateo-berri 5eb9c80
fix(responses): mask instructions and tool-call arguments in WebSocke…
mateo-berri 02f5374
fix(responses): suppress reasoning_summary_text.done under output PII…
mateo-berri 846e34f
fix(responses): mask function_call_output.output in WebSocket PII path
mateo-berri 495f9bf
fix(responses): mask reasoning summary PII in WebSocket output path
mateo-berri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.