Skip to content

Commit 2a16ebb

Browse files
restore : pii_list and compliance_list
1 parent dd9a42f commit 2a16ebb

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

plugins/walledai/guardrails.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ const DEFAULT_PII_LIST = [
1818
'Financial Data',
1919
];
2020

21-
const DEFAULT_GREETINGS_LIST = [
22-
'Casual & Friendly',
23-
'Professional & Polite',
24-
];
21+
const DEFAULT_GREETINGS_LIST = ['Casual & Friendly', 'Professional & Polite'];
2522

2623
export const handler: PluginHandler = async (
2724
context: PluginContext,

plugins/walledai/manifest.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,7 @@
6262
"items": {
6363
"type": "string"
6464
},
65-
"default": [
66-
"Casual & Friendly",
67-
"Professional & Polite"
68-
]
65+
"default": ["Casual & Friendly", "Professional & Polite"]
6966
},
7067
"pii_list": {
7168
"type": "array",

plugins/walledai/walledai.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,11 @@ describe('WalledAI Guardrail Plugin Handler (integration)', () => {
8989
compliance_list: ['GDPR', 'PCI-DSS'],
9090
};
9191

92-
const result = await handler(context, paramsWithCompliance, 'beforeRequestHook');
92+
const result = await handler(
93+
context,
94+
paramsWithCompliance,
95+
'beforeRequestHook'
96+
);
9397

9498
expect(result.error).toBeNull();
9599
expect(result.data).toBeDefined();

0 commit comments

Comments
 (0)