We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dfcf32 commit 184ee6cCopy full SHA for 184ee6c
ui/litellm-dashboard/src/components/guardrails.tsx
@@ -85,7 +85,13 @@ const GuardrailsPanel: React.FC<GuardrailsPanelProps> = ({ accessToken }) => {
85
<TableCell>{guardrail.guardrail_name}</TableCell>
86
<TableCell>{guardrail.litellm_params.mode}</TableCell>
87
<TableCell>
88
- {guardrail.litellm_params.default_on ? 'Always On' : 'Per Request'}
+ <div className={`inline-flex rounded-full px-2 py-1 text-xs font-medium
89
+ ${guardrail.litellm_params.default_on
90
+ ? 'bg-green-100 text-green-800' // Always On styling
91
+ : 'bg-gray-100 text-gray-800' // Per Request styling
92
+ }`}>
93
+ {guardrail.litellm_params.default_on ? 'Always On' : 'Per Request'}
94
+ </div>
95
</TableCell>
96
</TableRow>
97
))
0 commit comments