fix: add ShareGPT profile
This commit is contained in:
@@ -74,8 +74,17 @@ const RightActions: React.FC<RightActionsProps> = ({
|
||||
id: 'benchmark.table.filter.byProfile'
|
||||
})}
|
||||
style={{ width: 160 }}
|
||||
options={profileOptions.map((item) => ({
|
||||
label: intl.formatMessage({ id: item.label }),
|
||||
options={[
|
||||
...profileOptions,
|
||||
{
|
||||
label: 'backend.custom',
|
||||
locale: true,
|
||||
value: 'Custom'
|
||||
}
|
||||
].map((item) => ({
|
||||
label: item.locale
|
||||
? intl.formatMessage({ id: item.label })
|
||||
: item.label,
|
||||
value: item.value
|
||||
}))}
|
||||
onChange={(value, option) =>
|
||||
|
||||
@@ -36,6 +36,7 @@ export const ProfileValueMap = {
|
||||
ThroughputMedium: 'Throughput',
|
||||
LongContextStress: 'Long Context',
|
||||
GenerationHeavy: 'Generation Heavy',
|
||||
ShareGPT: 'ShareGPT',
|
||||
Custom: 'Custom'
|
||||
};
|
||||
|
||||
@@ -44,6 +45,7 @@ export const ProfileLabelMap = {
|
||||
[ProfileValueMap.ThroughputMedium]: 'benchmark.form.profile.throughput',
|
||||
[ProfileValueMap.LongContextStress]: 'benchmark.form.profile.longContext',
|
||||
[ProfileValueMap.GenerationHeavy]: 'benchmark.form.profile.heavy',
|
||||
[ProfileValueMap.ShareGPT]: 'benchmark.form.profile.ShareGPT',
|
||||
[ProfileValueMap.Custom]: 'benchmark.form.profile.custom'
|
||||
};
|
||||
|
||||
@@ -71,6 +73,12 @@ export const profileOptions = [
|
||||
tips: 'benchmark.form.profile.heavy.tips',
|
||||
value: ProfileValueMap.GenerationHeavy,
|
||||
locale: true
|
||||
},
|
||||
{
|
||||
label: 'benchmark.form.profile.ShareGPT',
|
||||
tips: 'benchmark.form.profile.ShareGPT.tips',
|
||||
value: ProfileValueMap.ShareGPT,
|
||||
locale: true
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user