diff --git a/ui/litellm-dashboard/src/components/templates/keyEditFormValues.ts b/ui/litellm-dashboard/src/components/templates/keyEditFormValues.ts index 7436380d6ee..f6a626c9fff 100644 --- a/ui/litellm-dashboard/src/components/templates/keyEditFormValues.ts +++ b/ui/litellm-dashboard/src/components/templates/keyEditFormValues.ts @@ -121,7 +121,7 @@ export const toKeyEditFormValues = (keyData: KeyResponse): KeyEditFormValues => rotation_interval: keyData.rotation_interval, }); -export const keyEditFormSchema = z.object({ +const keyEditFormShape = { key_alias: z.custom(), models: z.custom(), allowed_routes: z.custom(), @@ -166,7 +166,9 @@ export const keyEditFormSchema = z.object({ disabled_callbacks: z.custom(), auto_rotate: z.custom(), rotation_interval: z.custom(), -}); +}; + +export const keyEditFormSchema = z.object(keyEditFormShape).partial(); export interface MountedFieldGates { canViewPolicies: boolean;