diff --git a/src/renderer/src/aiCore/clients/openai/OpenAIApiClient.ts b/src/renderer/src/aiCore/clients/openai/OpenAIApiClient.ts index 85fc6cb717..e39d3834bd 100644 --- a/src/renderer/src/aiCore/clients/openai/OpenAIApiClient.ts +++ b/src/renderer/src/aiCore/clients/openai/OpenAIApiClient.ts @@ -7,6 +7,7 @@ import { isDoubaoThinkingAutoModel, isGrokReasoningModel, isNotSupportSystemMessageModel, + isQwen3235BA22BThinkingModel, isQwenMTModel, isQwenReasoningModel, isReasoningModel, @@ -145,6 +146,9 @@ export class OpenAIAPIClient extends OpenAIBaseClient< return { reasoning: { enabled: false, exclude: true } } } if (isSupportedThinkingTokenQwenModel(model) || isSupportedThinkingTokenHunyuanModel(model)) { + if (isQwen3235BA22BThinkingModel(model)) { + return {} + } return { enable_thinking: false } } @@ -192,7 +196,7 @@ export class OpenAIAPIClient extends OpenAIBaseClient< // Qwen models if (isSupportedThinkingTokenQwenModel(model)) { const thinkConfig = { - enable_thinking: true, + enable_thinking: isQwen3235BA22BThinkingModel(model) ? undefined : true, thinking_budget: budgetTokens } if (this.provider.id === 'dashscope') {