Download web/src/components/traders/utils.ts from bisheng13/nofx13: direct link, hf CLI and curl.
- Browser
- Download file 507 Bytes
-
https://huggingface.co/spaces/bisheng13/nofx13/resolve/main/web/src/components/traders/utils.ts
- Command line
-
hf download hf://spaces/bisheng13/nofx13/web/src/components/traders/utils.ts
-
curl -L -o utils.ts https://huggingface.co/spaces/bisheng13/nofx13/resolve/main/web/src/components/traders/utils.ts
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 | |
| } | |