diff --git a/web/src/components/custom-form/gpu-picker.tsx b/web/src/components/custom-form/gpu-picker.tsx index 9218b3e..a54c1e1 100644 --- a/web/src/components/custom-form/gpu-picker.tsx +++ b/web/src/components/custom-form/gpu-picker.tsx @@ -1,5 +1,6 @@ import { AutoFormInputComponentProps } from "@/components/ui/auto-form/types"; import { getBaseSchema } from "@/components/ui/auto-form/utils"; +import { Badge } from "@/components/ui/badge"; import { FormItem, FormLabel, @@ -41,6 +42,11 @@ export default function AutoFormGPUPicker({ const plan = fieldConfigItem.inputProps?.sub?.plan; const enabledGPU = ["T4"]; + const planMapping: Record = { + A10G: "pro", + A100: "enterprise", + }; + if (plan == "pro") { enabledGPU.push("A10G"); } else if (plan == "enterprise") { @@ -72,7 +78,9 @@ export default function AutoFormGPUPicker({ {label} {!enabled && ( - Upgrade to enabled this options + {planMapping[value]}{" "} + plan required + )}