mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 18:50:56 +08:00
fix: qwen3 check (#5811)
This commit is contained in:
parent
5ae6562f5b
commit
a8b183b2a6
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user