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
+2 -1
View File
@@ -58,7 +58,8 @@ export default {
'benchmark.detail.requests.total': 'Total Requests',
'benchmark.detail.requests.success': 'Successful Requests',
'benchmark.detail.requests.failed': 'Failed Requests',
'benchmark.detail.requests.concurrency': 'Concurrency',
'benchmark.detail.requests.incomplete': 'Incomplete Requests',
'benchmark.detail.requests.concurrency': 'Concurrenc Avg',
'benchmark.detail.percentile.latency': 'Latency',
'benchmark.detail.percentile.inputTokens': 'Input Tokens',
'benchmark.detail.percentile.outputTokens': 'Output Tokens',
+2 -1
View File
@@ -58,7 +58,8 @@ export default {
'benchmark.detail.requests.total': 'Total Requests',
'benchmark.detail.requests.success': 'Successful Requests',
'benchmark.detail.requests.failed': 'Failed Requests',
'benchmark.detail.requests.concurrency': 'Concurrency',
'benchmark.detail.requests.incomplete': 'Incomplete Requests',
'benchmark.detail.requests.concurrency': 'Concurrency Avg',
'benchmark.detail.percentile.latency': 'Latency',
'benchmark.detail.percentile.inputTokens': 'Input Tokens',
'benchmark.detail.percentile.outputTokens': 'Output Tokens',
+2 -1
View File
@@ -58,7 +58,8 @@ export default {
'benchmark.detail.requests.total': 'Total Requests',
'benchmark.detail.requests.success': 'Successful Requests',
'benchmark.detail.requests.failed': 'Failed Requests',
'benchmark.detail.requests.concurrency': 'Concurrency',
'benchmark.detail.requests.incomplete': 'Incomplete Requests',
'benchmark.detail.requests.concurrency': 'Concurrency Avg',
'benchmark.detail.percentile.latency': 'Latency',
'benchmark.detail.percentile.inputTokens': 'Input Tokens',
'benchmark.detail.percentile.outputTokens': 'Output Tokens',
+2 -1
View File
@@ -58,7 +58,8 @@ export default {
'benchmark.detail.requests.total': '请求总数',
'benchmark.detail.requests.success': '请求成功数',
'benchmark.detail.requests.failed': '请求失败数',
'benchmark.detail.requests.concurrency': '请求并发数',
'benchmark.detail.requests.incomplete': '请求未完成数',
'benchmark.detail.requests.concurrency': '请求并发数均值',
'benchmark.detail.percentile.latency': '延迟',
'benchmark.detail.percentile.inputTokens': '输入 Token',
'benchmark.detail.percentile.outputTokens': '输出 Token',
@@ -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'
)
}