From 710e2e199684c636e709a291ba46ab5e73348533 Mon Sep 17 00:00:00 2001 From: jialin Date: Tue, 24 Mar 2026 17:19:13 +0800 Subject: [PATCH] fix: a non-running instance is selected in creating benchmark --- src/pages/benchmark/forms/model-instance.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/benchmark/forms/model-instance.tsx b/src/pages/benchmark/forms/model-instance.tsx index 5fd0155d..74d39431 100644 --- a/src/pages/benchmark/forms/model-instance.tsx +++ b/src/pages/benchmark/forms/model-instance.tsx @@ -115,6 +115,7 @@ const ModelInstanceForm: React.FC = () => { disabled: modelCategoriesMap.llm !== model.categories?.[0], id: model.id, isLeaf: false, + ready_replicas: model.ready_replicas, children: [] })); @@ -123,7 +124,9 @@ const ModelInstanceForm: React.FC = () => { } // preload instances for the first model - const selectedllmModel = modelOptions.find((model) => !model.disabled); + const selectedllmModel = modelOptions.find( + (model) => !model.disabled && model.ready_replicas > 0 + ); if (!selectedllmModel) { setModelList(modelOptions); return;