fix: target options miss deployment models
This commit is contained in:
@@ -58,7 +58,8 @@ export default {
|
|||||||
'benchmark.detail.requests.total': 'Total Requests',
|
'benchmark.detail.requests.total': 'Total Requests',
|
||||||
'benchmark.detail.requests.success': 'Successful Requests',
|
'benchmark.detail.requests.success': 'Successful Requests',
|
||||||
'benchmark.detail.requests.failed': 'Failed 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.latency': 'Latency',
|
||||||
'benchmark.detail.percentile.inputTokens': 'Input Tokens',
|
'benchmark.detail.percentile.inputTokens': 'Input Tokens',
|
||||||
'benchmark.detail.percentile.outputTokens': 'Output Tokens',
|
'benchmark.detail.percentile.outputTokens': 'Output Tokens',
|
||||||
|
|||||||
@@ -58,7 +58,8 @@ export default {
|
|||||||
'benchmark.detail.requests.total': 'Total Requests',
|
'benchmark.detail.requests.total': 'Total Requests',
|
||||||
'benchmark.detail.requests.success': 'Successful Requests',
|
'benchmark.detail.requests.success': 'Successful Requests',
|
||||||
'benchmark.detail.requests.failed': 'Failed 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.latency': 'Latency',
|
||||||
'benchmark.detail.percentile.inputTokens': 'Input Tokens',
|
'benchmark.detail.percentile.inputTokens': 'Input Tokens',
|
||||||
'benchmark.detail.percentile.outputTokens': 'Output Tokens',
|
'benchmark.detail.percentile.outputTokens': 'Output Tokens',
|
||||||
|
|||||||
@@ -58,7 +58,8 @@ export default {
|
|||||||
'benchmark.detail.requests.total': 'Total Requests',
|
'benchmark.detail.requests.total': 'Total Requests',
|
||||||
'benchmark.detail.requests.success': 'Successful Requests',
|
'benchmark.detail.requests.success': 'Successful Requests',
|
||||||
'benchmark.detail.requests.failed': 'Failed 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.latency': 'Latency',
|
||||||
'benchmark.detail.percentile.inputTokens': 'Input Tokens',
|
'benchmark.detail.percentile.inputTokens': 'Input Tokens',
|
||||||
'benchmark.detail.percentile.outputTokens': 'Output Tokens',
|
'benchmark.detail.percentile.outputTokens': 'Output Tokens',
|
||||||
|
|||||||
@@ -58,7 +58,8 @@ export default {
|
|||||||
'benchmark.detail.requests.total': '请求总数',
|
'benchmark.detail.requests.total': '请求总数',
|
||||||
'benchmark.detail.requests.success': '请求成功数',
|
'benchmark.detail.requests.success': '请求成功数',
|
||||||
'benchmark.detail.requests.failed': '请求失败数',
|
'benchmark.detail.requests.failed': '请求失败数',
|
||||||
'benchmark.detail.requests.concurrency': '请求并发数',
|
'benchmark.detail.requests.incomplete': '请求未完成数',
|
||||||
|
'benchmark.detail.requests.concurrency': '请求并发数均值',
|
||||||
'benchmark.detail.percentile.latency': '延迟',
|
'benchmark.detail.percentile.latency': '延迟',
|
||||||
'benchmark.detail.percentile.inputTokens': '输入 Token',
|
'benchmark.detail.percentile.inputTokens': '输入 Token',
|
||||||
'benchmark.detail.percentile.outputTokens': '输出 Token',
|
'benchmark.detail.percentile.outputTokens': '输出 Token',
|
||||||
|
|||||||
@@ -98,6 +98,17 @@ const requestColumns = [
|
|||||||
color: 'var(--ant-color-error)',
|
color: 'var(--ant-color-error)',
|
||||||
unit: ''
|
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',
|
title: 'benchmark.detail.requests.concurrency',
|
||||||
key: 'request_concurrency',
|
key: 'request_concurrency',
|
||||||
|
|||||||
@@ -25,7 +25,9 @@ const ActiveTable = () => {
|
|||||||
render: (text: any, record: any) => {
|
render: (text: any, record: any) => {
|
||||||
return (
|
return (
|
||||||
<AutoTooltip ghost>
|
<AutoTooltip ghost>
|
||||||
<span>{text}</span>
|
<span>
|
||||||
|
{record.provider_name ? `${record.provider_name}/${text}` : text}
|
||||||
|
</span>
|
||||||
</AutoTooltip>
|
</AutoTooltip>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -147,6 +147,7 @@ const TargetsForm = forwardRef((props, ref) => {
|
|||||||
|
|
||||||
return !selectedKeys.has(key) || key === currKey;
|
return !selectedKeys.has(key) || key === currKey;
|
||||||
});
|
});
|
||||||
|
console.log('children', children);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...model,
|
...model,
|
||||||
|
|||||||
@@ -54,18 +54,15 @@ const useTargetSourceModels = () => {
|
|||||||
providerType: 'deployments',
|
providerType: 'deployments',
|
||||||
parent: true,
|
parent: true,
|
||||||
children: _.uniqBy(
|
children: _.uniqBy(
|
||||||
models.items?.map?.((model: ModelListItem) => [
|
models.items?.map?.((model: ModelListItem) => ({
|
||||||
model.id,
|
label: model.name,
|
||||||
{
|
value: model.id,
|
||||||
label: model.name,
|
data: {
|
||||||
value: model.id,
|
model_id: model.id,
|
||||||
data: {
|
parentId: 'deployments'
|
||||||
model_id: model.id,
|
},
|
||||||
parentId: 'deployments'
|
source: 'deployment'
|
||||||
},
|
})),
|
||||||
source: 'deployment'
|
|
||||||
}
|
|
||||||
]),
|
|
||||||
'value'
|
'value'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user