mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
fix(ui): show category count badge in guardrail selection modal
Category-based guardrails (like EU AI Act) now display an orange tag showing how many categories they contain, matching the existing pattern count tag for pattern-based guardrails. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
ae24bfe8cb
commit
f329294005
1 changed files with 5 additions and 0 deletions
|
|
@ -201,6 +201,11 @@ const GuardrailSelectionModal: React.FC<GuardrailSelectionModalProps> = ({
|
|||
{guardrail.definition.litellm_params.patterns.length} pattern(s)
|
||||
</Tag>
|
||||
)}
|
||||
{guardrail.definition?.litellm_params?.categories && (
|
||||
<Tag className="text-xs" color="orange">
|
||||
{guardrail.definition.litellm_params.categories.length} category/categories
|
||||
</Tag>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue