mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
fix(ui): default custom PII entities to MASK and classify test tier
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
f147449374
commit
de2cac7b67
2 changed files with 3 additions and 3 deletions
|
|
@ -33,13 +33,13 @@ describe("PiiConfiguration", () => {
|
|||
expect(screen.getByText("NO FODSELSNUMMER")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("adds a normalized custom entity with the first action", () => {
|
||||
it("adds a normalized custom entity with MASK", () => {
|
||||
const onEntitySelect = vi.fn();
|
||||
const onActionSelect = vi.fn();
|
||||
render(
|
||||
<PiiConfiguration
|
||||
entities={["PERSON"]}
|
||||
actions={["MASK", "BLOCK"]}
|
||||
actions={["BLOCK", "MASK"]}
|
||||
selectedEntities={[]}
|
||||
selectedActions={{}}
|
||||
onEntitySelect={onEntitySelect}
|
||||
|
|
@ -78,7 +78,7 @@ const PiiConfiguration: React.FC<PiiConfigurationProps> = ({
|
|||
}
|
||||
|
||||
onEntitySelect(normalizedEntityName);
|
||||
onActionSelect(normalizedEntityName, actions[0] ?? "MASK");
|
||||
onActionSelect(normalizedEntityName, "MASK");
|
||||
};
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue