Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛fix: Qwen & SiliconCloud DeepSeek V3.1 Model Ability (#8999)

bbbugg44ffe14b9f0e
diff --git a/packages/model-bank/src/aiModels/qwen.ts b/packages/model-bank/src/aiModels/qwen.ts
index da712b294ec..82be3f50cbd 100644
--- a/packages/model-bank/src/aiModels/qwen.ts
+++ b/packages/model-bank/src/aiModels/qwen.ts
@@ -5,7 +5,6 @@ import { AIChatModelCard, AIImageModelCard } from '../types/aiModel';
const qwenChatModels: AIChatModelCard[] = [
{
abilities: {
- functionCall: true,
reasoning: true,
},
contextWindowTokens: 131_072,
@@ -20,6 +19,9 @@ const qwenChatModels: AIChatModelCard[] = [
{ name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },
],
},
+ settings: {
+ extendParams: ['enableReasoning', 'reasoningBudgetToken'],
+ },
type: 'chat',
},
{
diff --git a/packages/model-bank/src/aiModels/siliconcloud.ts b/packages/model-bank/src/aiModels/siliconcloud.ts
index cd4d20bd8b2..9cd50d7eef2 100644
--- a/packages/model-bank/src/aiModels/siliconcloud.ts
+++ b/packages/model-bank/src/aiModels/siliconcloud.ts
@@ -20,6 +20,9 @@ const siliconcloudChatModels: AIChatModelCard[] = [
{ name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },
],
},
+ settings: {
+ extendParams: ['enableReasoning', 'reasoningBudgetToken'],
+ },
type: 'chat',
},
{
@@ -39,6 +42,9 @@ const siliconcloudChatModels: AIChatModelCard[] = [
{ name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },
],
},
+ settings: {
+ extendParams: ['enableReasoning', 'reasoningBudgetToken'],
+ },
type: 'chat',
},
{
diff --git a/packages/model-runtime/src/qwen/index.ts b/packages/model-runtime/src/qwen/index.ts
index ef73450eed0..8555331f5c6 100644
--- a/packages/model-runtime/src/qwen/index.ts
+++ b/packages/model-runtime/src/qwen/index.ts
@@ -35,7 +35,7 @@ export const LobeQwenAI = createOpenAICompatibleRuntime({
thinking_budget:
thinking?.budget_tokens === 0 ? 0 : thinking?.budget_tokens || undefined,
}
- : ['qwen3', 'qwen-turbo', 'qwen-plus'].some((keyword) =>
+ : ['qwen3', 'qwen-turbo', 'qwen-plus', 'deepseek-v3.1'].some((keyword) =>
model.toLowerCase().includes(keyword),
)
? {
diff --git a/packages/model-runtime/src/siliconcloud/index.ts b/packages/model-runtime/src/siliconcloud/index.ts
index ccb0c39b8af..2da6562a7aa 100644
--- a/packages/model-runtime/src/siliconcloud/index.ts
+++ b/packages/model-runtime/src/siliconcloud/index.ts
@@ -45,7 +45,7 @@ export const LobeSiliconCloudAI = createOpenAICompatibleRuntime({
return {
...rest,
- ...(['qwen3'].some((keyword) => model.toLowerCase().includes(keyword))
+ ...(['qwen3', 'deepseek-v3.1'].some((keyword) => model.toLowerCase().includes(keyword))
? {
enable_thinking: thinking !== undefined ? thinking.type === 'enabled' : false,
thinking_budget: