nofx13 / web /src /components /traders /utils.ts
bisheng13's picture
Upload 335 files
dde4052 verified
Raw History Blame Contribute Delete
507 Bytes
// 获取友好的AI模型名称
export function getModelDisplayName(modelId: string): string {
switch (modelId.toLowerCase()) {
case 'deepseek':
return 'DeepSeek'
case 'qwen':
return 'Qwen'
case 'claude':
return 'Claude'
default:
return modelId.toUpperCase()
}
}
// 提取下划线后面的名称部分
export function getShortName(fullName: string): string {
const parts = fullName.split('_')
return parts.length > 1 ? parts[parts.length - 1] : fullName
}