mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-16 23:41:43 +00:00
fix(guardrails-ui): route llm_as_a_judge to criteria builder step; rename to LiteLLM LLM as a Judge; add litellm logo
This commit is contained in:
parent
9efa01f0cd
commit
125a8bf62c
2 changed files with 5 additions and 6 deletions
|
|
@ -804,11 +804,6 @@ const AddGuardrailForm: React.FC<AddGuardrailFormProps> = ({ visible, onClose, a
|
|||
</Select>
|
||||
</Form.Item>
|
||||
|
||||
{/* LLM-as-a-Judge: dedicated criteria builder */}
|
||||
{shouldRenderLLMJudgeFields(selectedProvider) && (
|
||||
<LLMJudgeFields availableModels={availableModels} form={form} />
|
||||
)}
|
||||
|
||||
{/* Use the GuardrailProviderFields component to render provider-specific fields */}
|
||||
{!isToolPermissionProvider && !shouldRenderContentFilterConfigSettings(selectedProvider) && !shouldRenderLLMJudgeFields(selectedProvider) && (
|
||||
<GuardrailProviderFields
|
||||
|
|
@ -916,6 +911,9 @@ const AddGuardrailForm: React.FC<AddGuardrailFormProps> = ({ visible, onClose, a
|
|||
if (shouldRenderContentFilterConfigSettings(selectedProvider)) {
|
||||
return renderContentFilterConfiguration("categories");
|
||||
}
|
||||
if (shouldRenderLLMJudgeFields(selectedProvider)) {
|
||||
return <LLMJudgeFields availableModels={availableModels} form={form} />;
|
||||
}
|
||||
return renderOptionalParams();
|
||||
case 2:
|
||||
if (shouldRenderContentFilterConfigSettings(selectedProvider)) {
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ export const populateGuardrailProviders = (providerParamsResponse: Record<string
|
|||
providers.PresidioPII = "Presidio PII";
|
||||
providers.Bedrock = "Bedrock Guardrail";
|
||||
providers.Lakera = "Lakera";
|
||||
providers.LlmAsAJudge = "LLM as a Judge";
|
||||
providers.LlmAsAJudge = "LiteLLM LLM as a Judge";
|
||||
|
||||
// Add dynamic providers from API response
|
||||
Object.entries(providerParamsResponse).forEach(([key, value]) => {
|
||||
|
|
@ -134,6 +134,7 @@ export const guardrailLogoMap: Record<string, string> = {
|
|||
"Prompt Security": `${asset_logos_folder}prompt_security.png`,
|
||||
PromptGuard: `${asset_logos_folder}promptguard.svg`,
|
||||
"LiteLLM Content Filter": `${asset_logos_folder}litellm_logo.jpg`,
|
||||
"LiteLLM LLM as a Judge": `${asset_logos_folder}litellm_logo.jpg`,
|
||||
"Akto": `${asset_logos_folder}akto.svg`,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue