mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-16 12:36:07 +00:00
🐛 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:
@@ -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 在性能上超越其他开源模型,接近领先闭源模型。',
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user