🐛 fix: fix env for Tencent Cloud & remove deepseek-v3 series fc tag (#7354)

* 🐛 fix: fix env for Tencent Cloud & remove `deepseek-v3` series fc tag

* 🔨 chore: cleanup code
This commit is contained in:
Zhijie He
2025-04-09 22:34:58 +08:00
committed by GitHub
parent 0f541515e6
commit fe26d76ff0
3 changed files with 5 additions and 12 deletions
-6
View File
@@ -20,9 +20,6 @@ const tencentCloudChatModels: AIChatModelCard[] = [
type: 'chat',
},
{
abilities: {
functionCall: true,
},
contextWindowTokens: 65_536,
description:
'DeepSeek-V3-0324 为671B 参数 MoE 模型,在编程与技术能力、上下文理解与长文本处理等方面优势突出。',
@@ -37,9 +34,6 @@ const tencentCloudChatModels: AIChatModelCard[] = [
type: 'chat',
},
{
abilities: {
functionCall: true,
},
contextWindowTokens: 65_536,
description:
'DeepSeek-V3 是一款拥有 6710 亿参数的混合专家(MoE)语言模型,采用多头潜在注意力(MLA)和 DeepSeekMoE 架构,结合无辅助损失的负载平衡策略,优化推理和训练效率。通过在 14.8 万亿高质量tokens上预训练,并进行监督微调和强化学习,DeepSeek-V3 在性能上超越其他开源模型,接近领先闭源模型。',
+1 -6
View File
@@ -15,10 +15,6 @@ export const LobeTencentCloudAI = LobeOpenAICompatibleFactory({
models: async ({ client }) => {
const { LOBE_DEFAULT_MODEL_LIST } = await import('@/config/aiModels');
const functionCallKeywords = [
'deepseek-v3',
];
const reasoningKeywords = [
'deepseek-r1',
];
@@ -35,8 +31,7 @@ export const LobeTencentCloudAI = LobeOpenAICompatibleFactory({
displayName: knownModel?.displayName ?? undefined,
enabled: knownModel?.enabled || false,
functionCall:
functionCallKeywords.some(keyword => model.id.toLowerCase().includes(keyword))
|| knownModel?.abilities?.functionCall
knownModel?.abilities?.functionCall
|| false,
id: model.id,
reasoning:
+4
View File
@@ -43,6 +43,10 @@ export const getServerGlobalConfig = async () => {
openai: {
enabled: isDesktop ? false : undefined,
},
tencentcloud: {
enabledKey: 'ENABLED_TENCENT_CLOUD',
modelListKey: 'TENCENT_CLOUD_MODEL_LIST',
},
volcengine: {
withDeploymentName: true,
},