The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Fix clickable model ID in health check table - Add setSelectedModelId prop to make blue model ID buttons clickable - Fix checkbox selection logic to use model names consistently - Add stopPropagation to prevent unwanted sort triggers on checkbox clicks - Now clicking Model ID opens model details, and select all works properly (#11898)
Cole McIntoshd2e54944a3ec
diff --git a/ui/litellm-dashboard/src/components/model_dashboard.tsx b/ui/litellm-dashboard/src/components/model_dashboard.tsxindex a8e80fc19ee..afd2ffc30ab 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<ModelDashboardProps> = ({modelData={modelData}all_models_on_proxy={all_models_on_proxy}getDisplayModelName={getDisplayModelName}+ setSelectedModelId={setSelectedModelId}/></TabPanel><TabPanel>diff --git a/ui/litellm-dashboard/src/components/model_dashboard/HealthCheckComponent.tsx b/ui/litellm-dashboard/src/components/model_dashboard/HealthCheckComponent.tsxindex 6444031bc12..cb4e949bf82 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<HealthCheckComponentProps> = ({@@ -31,6 +32,7 @@ const HealthCheckComponent: React.FC<HealthCheckComponentProps> = ({modelData,all_models_on_proxy,getDisplayModelName,+ setSelectedModelId,}) => {const [modelHealthStatuses, setModelHealthStatuses] = useState<{[key: string]: HealthStatus}>({});const [selectedModelsForHealth, setSelectedModelsForHealth] = useState<string[]>([]);@@ -515,6 +517,7 @@ const HealthCheckComponent: React.FC<HealthCheckComponentProps> = ({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.tsxindex eaee6181f5c..cae5a5a2b3e 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<HealthCheckData>[] => [{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()}/><span>Model ID</span></div>@@ -63,10 +65,12 @@ export const healthCheckColumns = (<Checkboxchecked={isSelected}onChange={(e) => handleModelSelection(modelName, e.target.checked)}+ onClick={(e) => e.stopPropagation()}/><Tooltip title={model.model_info.id}><divclassName="font-mono text-blue-500 bg-blue-50 hover:bg-blue-100 text-xs font-normal px-2 py-0.5 text-left w-full truncate whitespace-nowrap cursor-pointer max-w-[15ch]"+ onClick={() => setSelectedModelId && setSelectedModelId(model.model_info.id)}>{model.model_info.id}</div>