fix: qwen3 check (#5811)

This commit is contained in:
SuYao 2025-05-10 13:52:39 +08:00 committed by GitHub
parent 5ae6562f5b
commit a8b183b2a6

View File

@ -402,7 +402,7 @@ export default class OpenAICompatibleProvider extends BaseOpenAiProvider {
await this.checkIsCopilot()
const lastUserMsg = userMessages.findLast((m) => m.role === 'user')
if (lastUserMsg) {
if (lastUserMsg && isSupportedThinkingTokenQwenModel(model)) {
const postsuffix = '/no_think'
// qwenThinkMode === true 表示思考模式啓用,此時不應添加 /no_think如果存在則移除
const qwenThinkModeEnabled = assistant.settings?.qwenThinkMode === true