Repository navigation
feat(guardrails): per-team opt-out for specific global guardrails #25575
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
ryan-crabbe-berri
merged 13 commits into
main
from
litellm_feat-per-guardrail-opt-out-for-global-guardrails
Apr 13, 2026
Merged
Changes from 11 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
ef38c66
fix(guardrails): use plural key in get_disable_global_guardrail
ryan-crabbe-berri 88beed9
feat(guardrails): per-team opt-out for specific global guardrails
ryan-crabbe-berri a9d64f8
refactor(ui/guardrails): expose full data from useGuardrails hook
ryan-crabbe-berri f963965
feat(ui/team): per-guardrail opt-out for global guardrails
ryan-crabbe-berri 59f66af
fix(ui/team): wait for useGuardrails to resolve before rendering edit…
ryan-crabbe-berri 3d72e2a
fix(guardrails): address PR #25575 review feedback + sync kill switch…
ryan-crabbe-berri 30c2357
fix(ui/team): annotate effectiveGuardrails as string[] for strict typ…
ryan-crabbe-berri 1f57292
fix(ui/team): add GlobalOutlined icon to global guardrail markers
ryan-crabbe-berri 6ae693b
refactor(ui/team): split team read view guardrails into Global and Te…
ryan-crabbe-berri 1dcccfc
feat(ui/team): show guardrails in team settings read view
ryan-crabbe-berri 84d7816
refactor(ui/team): extract GuardrailSettingsView and reuse across tea…
ryan-crabbe-berri 842523a
chore(ui): use antd in GuardrailSettingsView and document the rule
ryan-crabbe-berri 2d14e4a
test(ui/team): fix guardrails overview test for new component
ryan-crabbe-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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
disable_global_guardrailtodisable_global_guardrailsget_disable_global_guardrailnow exclusively checks for the plural keydisable_global_guardrails, dropping the old singular form. Any caller who was passingdisable_global_guardrail: true(singular) directly in request data orlitellm_metadata/metadatawill silently find the kill switch no longer working after this deploy. The old test cases were explicitly exercising this direct-request path with the singular key, confirming it was the supported API contract.The team-metadata path was already writing the plural form (via
litellm_pre_call_utils.py), so there's a legitimate fix here — but it should be additive rather than a hard rename:Rule Used: What: avoid backwards-incompatible changes without... (source)