fix: target options miss deployment models

This commit is contained in:
jialin
2026-02-09 11:51:26 +08:00
parent 1314123ad7
commit 83086c46e6
8 changed files with 32 additions and 17 deletions
@@ -98,6 +98,17 @@ const requestColumns = [
color: 'var(--ant-color-error)',
unit: ''
},
{
title: 'benchmark.detail.requests.incomplete',
key: 'total_requests',
dataIndex: 'failed_requests',
path: ['raw_metrics', 'benchmarks', '0'],
render: (value: number) =>
round(_.get(value, ['metrics', 'request_totals', 'incomplete']), 0) || 0,
precision: 0,
color: 'var(--ant-color-warning)',
unit: ''
},
{
title: 'benchmark.detail.requests.concurrency',
key: 'request_concurrency',
@@ -25,7 +25,9 @@ const ActiveTable = () => {
render: (text: any, record: any) => {
return (
<AutoTooltip ghost>
<span>{text}</span>
<span>
{record.provider_name ? `${record.provider_name}/${text}` : text}
</span>
</AutoTooltip>
);
}
+1
View File
@@ -147,6 +147,7 @@ const TargetsForm = forwardRef((props, ref) => {
return !selectedKeys.has(key) || key === currKey;
});
console.log('children', children);
return {
...model,
@@ -54,18 +54,15 @@ const useTargetSourceModels = () => {
providerType: 'deployments',
parent: true,
children: _.uniqBy(
models.items?.map?.((model: ModelListItem) => [
model.id,
{
label: model.name,
value: model.id,
data: {
model_id: model.id,
parentId: 'deployments'
},
source: 'deployment'
}
]),
models.items?.map?.((model: ModelListItem) => ({
label: model.name,
value: model.id,
data: {
model_id: model.id,
parentId: 'deployments'
},
source: 'deployment'
})),
'value'
)
}