Merge pull request #25806 from BerriAI/litellm_fix_guardrail_optional_params_bool_rendering

fix(ui): render guardrail optional_params bool defaults in Select
This commit is contained in:
ryan-crabbe-berri 2026-04-15 22:50:20 -07:00 • committed by GitHub
commit cf4f0516be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -192,8 +192,8 @@ const GuardrailOptionalParams: React.FC<GuardrailOptionalParamsProps> = ({
</Select>
) : field.type === "bool" || field.type === "boolean" ? (
<Select placeholder={field.description}>
<Select.Option value="true">True</Select.Option>
<Select.Option value="false">False</Select.Option>
<Select.Option value={true}>True</Select.Option>
<Select.Option value={false}>False</Select.Option>
</Select>
) : field.type === "number" ? (
<NumericalInput step={1} width={400} placeholder={field.description} />