add submodel.ai

This commit is contained in:
DD
2025-09-08 16:21:21 +08:00
parent c826d06d2c
commit 511489db09
10 changed files with 129 additions and 0 deletions

View File

@@ -135,6 +135,11 @@ export const CHANNEL_OPTIONS = [
color: 'blue',
label: '即梦',
},
{
value: 52,
color: 'blue',
label: 'SubModel',
},
];
export const MODEL_TABLE_PAGE_SIZE = 10;

View File

@@ -398,6 +398,8 @@ export function getChannelIcon(channelType) {
return <FastGPT.Color size={iconSize} />;
case 21: // 知识库AI Proxy
case 44: // 嵌入模型MokaAI M3E
case 52: // SubModel
return null;
default:
return null; // 未知类型或自定义渠道不显示图标
}

View File

@@ -98,6 +98,9 @@ const EditTagModal = (props) => {
case 36:
localModels = ['suno_music', 'suno_lyrics'];
break;
case 52:
localModels = ['NousResearch/Hermes-4-405B-FP8', 'Qwen/Qwen3-235B-A22B-Thinking-2507', 'Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8', 'zai-org/GLM-4.5-FP8', 'openai/gpt-oss-120b', 'deepseek-ai/DeepSeek-R1-0528', 'deepseek-ai/DeepSeek-R1', 'deepseek-ai/DeepSeek-V3-0324', 'deepseek-ai/DeepSeek-V3.1'];
break;
default:
localModels = getChannelModels(value);
break;