mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
add Topic Blocking framework to compliance playground UI
This commit is contained in:
parent
a2df6c1e4a
commit
a5f47c4856
1 changed files with 11 additions and 0 deletions
|
|
@ -1,3 +1,6 @@
|
|||
import { insultsCompliancePrompts } from "./insultsCompliancePrompts";
|
||||
import { financialCompliancePrompts } from "./financialCompliancePrompts";
|
||||
|
||||
export interface CompliancePrompt {
|
||||
id: string;
|
||||
framework: string;
|
||||
|
|
@ -248,6 +251,10 @@ const compliancePrompts: CompliancePrompt[] = [
|
|||
"What rights do individuals have under GDPR Article 22 regarding automated decisions?",
|
||||
"pass"
|
||||
),
|
||||
// Topic Blocking prompts are auto-generated from CSV eval files
|
||||
// See: insultsCompliancePrompts.ts, financialCompliancePrompts.ts
|
||||
...insultsCompliancePrompts,
|
||||
...financialCompliancePrompts,
|
||||
];
|
||||
|
||||
export function getCategories(): ComplianceCategory[] {
|
||||
|
|
@ -277,6 +284,10 @@ const frameworkMeta: Record<string, { icon: string; description: string }> = {
|
|||
icon: "lock",
|
||||
description: "General Data Protection Regulation — data privacy and protection requirements.",
|
||||
},
|
||||
"Topic Blocking": {
|
||||
icon: "shield",
|
||||
description: "Content filter guardrails that block messages matching specific prohibited topics while allowing legitimate use of related words in context.",
|
||||
},
|
||||
};
|
||||
|
||||
export function getFrameworks(): ComplianceFramework[] {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue