mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
fix: ui fixes (#21731)
This commit is contained in:
parent
08520a9ed7
commit
0888e17272
2 changed files with 23 additions and 3 deletions
|
|
@ -860,6 +860,27 @@ const AddGuardrailForm: React.FC<AddGuardrailFormProps> = ({ visible, onClose, a
|
|||
);
|
||||
};
|
||||
|
||||
const getStepConfigs = () => {
|
||||
if (shouldRenderContentFilterConfigSettings(selectedProvider)) {
|
||||
return [
|
||||
{ title: "Basic Info", optional: false },
|
||||
{ title: "Default Categories", optional: false },
|
||||
{ title: "Patterns", optional: false },
|
||||
{ title: "Keywords", optional: false },
|
||||
];
|
||||
}
|
||||
if (shouldRenderPIIConfigSettings(selectedProvider)) {
|
||||
return [
|
||||
{ title: "Basic Info", optional: false },
|
||||
{ title: "PII Configuration", optional: false },
|
||||
];
|
||||
}
|
||||
return [
|
||||
{ title: "Basic Info", optional: false },
|
||||
{ title: "Provider Configuration", optional: false },
|
||||
];
|
||||
};
|
||||
|
||||
const stepConfigs = getStepConfigs();
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -581,9 +581,8 @@ export default function ComplianceUI({
|
|||
isMatch: false,
|
||||
triggeredBy: `Error: ${errorMessage}`,
|
||||
status: "complete" as const,
|
||||
};
|
||||
}
|
||||
setTestResults([...updatedResults]);
|
||||
}))
|
||||
);
|
||||
}
|
||||
setIsRunning(false);
|
||||
}, [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue