diff --git a/ui/litellm-dashboard/src/components/create_key_button.tsx b/ui/litellm-dashboard/src/components/create_key_button.tsx index d8716d304..d950c3be5 100644 --- a/ui/litellm-dashboard/src/components/create_key_button.tsx +++ b/ui/litellm-dashboard/src/components/create_key_button.tsx @@ -147,6 +147,17 @@ const CreateKey: React.FC = ({ mode="multiple" placeholder="Select models" style={{ width: "100%" }} + onChange={(values) => { + // Check if "All Team Models" is selected + const isAllTeamModelsSelected = values.includes("all-team-models"); + + // If "All Team Models" is selected, deselect all other models + if (isAllTeamModelsSelected) { + const newValues = ["all-team-models"]; + // You can call the form's setFieldsValue method to update the value + form.setFieldsValue({ models: newValues }); + } + }} >