diff --git a/ui/litellm-dashboard/src/components/model_dashboard.tsx b/ui/litellm-dashboard/src/components/model_dashboard.tsx index a8e80fc19e..afd2ffc30a 100644 --- a/ui/litellm-dashboard/src/components/model_dashboard.tsx +++ b/ui/litellm-dashboard/src/components/model_dashboard.tsx @@ -1279,6 +1279,7 @@ const ModelDashboard: React.FC = ({ modelData={modelData} all_models_on_proxy={all_models_on_proxy} getDisplayModelName={getDisplayModelName} + setSelectedModelId={setSelectedModelId} /> diff --git a/ui/litellm-dashboard/src/components/model_dashboard/HealthCheckComponent.tsx b/ui/litellm-dashboard/src/components/model_dashboard/HealthCheckComponent.tsx index 6444031bc1..cb4e949bf8 100644 --- a/ui/litellm-dashboard/src/components/model_dashboard/HealthCheckComponent.tsx +++ b/ui/litellm-dashboard/src/components/model_dashboard/HealthCheckComponent.tsx @@ -24,6 +24,7 @@ interface HealthCheckComponentProps { modelData: any; all_models_on_proxy: string[]; getDisplayModelName: (model: any) => string; + setSelectedModelId?: (modelId: string) => void; } const HealthCheckComponent: React.FC = ({ @@ -31,6 +32,7 @@ const HealthCheckComponent: React.FC = ({ modelData, all_models_on_proxy, getDisplayModelName, + setSelectedModelId, }) => { const [modelHealthStatuses, setModelHealthStatuses] = useState<{[key: string]: HealthStatus}>({}); const [selectedModelsForHealth, setSelectedModelsForHealth] = useState([]); @@ -515,6 +517,7 @@ const HealthCheckComponent: React.FC = ({ getStatusBadge, getDisplayModelName, showErrorModal, + setSelectedModelId, )} data={modelData.data.map((model: any) => { const modelName = model.model_name; diff --git a/ui/litellm-dashboard/src/components/model_dashboard/health_check_columns.tsx b/ui/litellm-dashboard/src/components/model_dashboard/health_check_columns.tsx index eaee6181f5..cae5a5a2b3 100644 --- a/ui/litellm-dashboard/src/components/model_dashboard/health_check_columns.tsx +++ b/ui/litellm-dashboard/src/components/model_dashboard/health_check_columns.tsx @@ -38,6 +38,7 @@ export const healthCheckColumns = ( getStatusBadge: (status: string) => JSX.Element, getDisplayModelName: (model: any) => string, showErrorModal?: (modelName: string, cleanedError: string, fullError: string) => void, + setSelectedModelId?: (modelId: string) => void, ): ColumnDef[] => [ { header: () => ( @@ -46,6 +47,7 @@ export const healthCheckColumns = ( checked={allModelsSelected} indeterminate={selectedModelsForHealth.length > 0 && !allModelsSelected} onChange={(e) => handleSelectAll(e.target.checked)} + onClick={(e) => e.stopPropagation()} /> Model ID @@ -63,10 +65,12 @@ export const healthCheckColumns = ( handleModelSelection(modelName, e.target.checked)} + onClick={(e) => e.stopPropagation()} />
setSelectedModelId && setSelectedModelId(model.model_info.id)} > {model.model_info.id}