mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-04 20:00:00 +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()
|
await this.checkIsCopilot()
|
||||||
|
|
||||||
const lastUserMsg = userMessages.findLast((m) => m.role === 'user')
|
const lastUserMsg = userMessages.findLast((m) => m.role === 'user')
|
||||||
if (lastUserMsg) {
|
if (lastUserMsg && isSupportedThinkingTokenQwenModel(model)) {
|
||||||
const postsuffix = '/no_think'
|
const postsuffix = '/no_think'
|
||||||
// qwenThinkMode === true 表示思考模式啓用,此時不應添加 /no_think,如果存在則移除
|
// qwenThinkMode === true 表示思考模式啓用,此時不應添加 /no_think,如果存在則移除
|
||||||
const qwenThinkModeEnabled = assistant.settings?.qwenThinkMode === true
|
const qwenThinkModeEnabled = assistant.settings?.qwenThinkMode === true
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user