mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07:00
💄 style: add Kimi K2 Thinking to Qwen Provider (#10287)
* 💄 style: add GLM-4.6 and Kimi K2 Thinking to Qwen * 💄 style: update Qwen model configurations and extend reasoning capabilities
This commit is contained in:
@@ -3,6 +3,31 @@ import { AIChatModelCard, AIImageModelCard } from '../types/aiModel';
|
||||
// https://help.aliyun.com/zh/model-studio/models?spm=a2c4g.11186623
|
||||
|
||||
const qwenChatModels: AIChatModelCard[] = [
|
||||
{
|
||||
abilities: {
|
||||
functionCall: true,
|
||||
reasoning: true,
|
||||
},
|
||||
contextWindowTokens: 262_144,
|
||||
description:
|
||||
'kimi-k2-thinking模型是月之暗面提供的具有通用 Agentic能力和推理能力的思考模型,它擅长深度推理,并可通过多步工具调用,帮助解决各类难题。',
|
||||
displayName: 'Kimi K2 Thinking',
|
||||
id: 'kimi-k2-thinking',
|
||||
maxOutput: 16_384,
|
||||
organization: 'Qwen',
|
||||
pricing: {
|
||||
currency: 'CNY',
|
||||
units: [
|
||||
{ name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
|
||||
{ name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },
|
||||
],
|
||||
},
|
||||
releasedAt: '2025-11-10',
|
||||
settings: {
|
||||
extendParams: ['reasoningBudgetToken'],
|
||||
},
|
||||
type: 'chat',
|
||||
},
|
||||
{
|
||||
abilities: {
|
||||
reasoning: true,
|
||||
@@ -109,6 +134,7 @@ const qwenChatModels: AIChatModelCard[] = [
|
||||
{
|
||||
abilities: {
|
||||
reasoning: true,
|
||||
search: true,
|
||||
},
|
||||
contextWindowTokens: 131_072,
|
||||
description:
|
||||
@@ -131,6 +157,7 @@ const qwenChatModels: AIChatModelCard[] = [
|
||||
{
|
||||
abilities: {
|
||||
reasoning: true,
|
||||
search: true,
|
||||
},
|
||||
contextWindowTokens: 131_072,
|
||||
description: 'DeepSeek V3.1 模型为混合推理架构模型,同时支持思考模式与非思考模式。',
|
||||
@@ -151,6 +178,7 @@ const qwenChatModels: AIChatModelCard[] = [
|
||||
},
|
||||
{
|
||||
abilities: {
|
||||
functionCall: true,
|
||||
search: true,
|
||||
},
|
||||
contextWindowTokens: 131_072,
|
||||
@@ -1231,6 +1259,7 @@ const qwenChatModels: AIChatModelCard[] = [
|
||||
},
|
||||
{
|
||||
abilities: {
|
||||
reasoning: true,
|
||||
vision: true,
|
||||
},
|
||||
config: {
|
||||
@@ -1239,7 +1268,7 @@ const qwenChatModels: AIChatModelCard[] = [
|
||||
contextWindowTokens: 65_536,
|
||||
description:
|
||||
'Qwen-Omni 模型能够接收文本、图片、音频、视频等多种模态的组合输入,并生成文本或语音形式的回复, 提供多种拟人音色,支持多语言和方言的语音输出,可应用于文本创作、视觉识别、语音助手等场景。',
|
||||
displayName: 'Qwen Omni Turbo',
|
||||
displayName: 'Qwen3 Omni Flash',
|
||||
id: 'qwen3-omni-flash',
|
||||
maxOutput: 16_384,
|
||||
organization: 'Qwen',
|
||||
@@ -1432,6 +1461,9 @@ const qwenChatModels: AIChatModelCard[] = [
|
||||
{ name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },
|
||||
],
|
||||
},
|
||||
settings: {
|
||||
extendParams: ['reasoningBudgetToken'],
|
||||
},
|
||||
type: 'chat',
|
||||
},
|
||||
{
|
||||
@@ -1473,7 +1505,7 @@ const qwenChatModels: AIChatModelCard[] = [
|
||||
],
|
||||
},
|
||||
settings: {
|
||||
extendParams: ['enableReasoning', 'reasoningBudgetToken'],
|
||||
extendParams: ['reasoningBudgetToken'],
|
||||
},
|
||||
type: 'chat',
|
||||
},
|
||||
@@ -1517,7 +1549,7 @@ const qwenChatModels: AIChatModelCard[] = [
|
||||
],
|
||||
},
|
||||
settings: {
|
||||
extendParams: ['enableReasoning', 'reasoningBudgetToken'],
|
||||
extendParams: ['reasoningBudgetToken'],
|
||||
},
|
||||
type: 'chat',
|
||||
},
|
||||
@@ -1976,7 +2008,9 @@ const qwenChatModels: AIChatModelCard[] = [
|
||||
},
|
||||
{
|
||||
abilities: {
|
||||
functionCall: true,
|
||||
reasoning: true,
|
||||
search: true,
|
||||
},
|
||||
contextWindowTokens: 131_072,
|
||||
description:
|
||||
@@ -1996,6 +2030,10 @@ const qwenChatModels: AIChatModelCard[] = [
|
||||
type: 'chat',
|
||||
},
|
||||
{
|
||||
abilities: {
|
||||
functionCall: true,
|
||||
search: true,
|
||||
},
|
||||
contextWindowTokens: 65_536,
|
||||
description:
|
||||
'DeepSeek-V3 为自研 MoE 模型,671B 参数,激活 37B,在 14.8T token 上进行了预训练,在长文本、代码、数学、百科、中文能力上表现优秀。',
|
||||
|
||||
@@ -51,9 +51,15 @@ export const LobeQwenAI = createOpenAICompatibleRuntime({
|
||||
thinking_budget:
|
||||
thinking?.budget_tokens === 0 ? 0 : thinking?.budget_tokens || undefined,
|
||||
}
|
||||
: ['qwen3', 'qwen-turbo', 'qwen-plus', 'deepseek-v3.1'].some((keyword) =>
|
||||
model.toLowerCase().includes(keyword),
|
||||
)
|
||||
: [
|
||||
'qwen3',
|
||||
'qwen-turbo',
|
||||
'qwen-plus',
|
||||
'qwen-flash',
|
||||
'deepseek-v3.1',
|
||||
'deepseek-v3.2',
|
||||
'glm',
|
||||
].some((keyword) => model.toLowerCase().includes(keyword))
|
||||
? {
|
||||
enable_thinking: thinking !== undefined ? thinking.type === 'enabled' : false,
|
||||
thinking_budget:
|
||||
|
||||
Reference in New Issue
Block a user