mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-02 10:29:02 +08:00
fix(rename): disable thinking for topic rename (#7461)
This commit is contained in:
parent
a8e23966fa
commit
b4c8e42d87
@ -462,12 +462,23 @@ export async function fetchMessagesSummary({ messages, assistant }: { messages:
|
||||
})
|
||||
const conversation = JSON.stringify(structredMessages)
|
||||
|
||||
// 复制 assistant 对象,并强制关闭思考预算
|
||||
const summaryAssistant = {
|
||||
...assistant,
|
||||
settings: {
|
||||
...assistant.settings,
|
||||
reasoning_effort: undefined,
|
||||
qwenThinkMode: false
|
||||
}
|
||||
}
|
||||
|
||||
const params: CompletionsParams = {
|
||||
callType: 'summary',
|
||||
messages: conversation,
|
||||
assistant: { ...assistant, prompt, model },
|
||||
assistant: { ...summaryAssistant, prompt, model },
|
||||
maxTokens: 1000,
|
||||
streamOutput: false
|
||||
streamOutput: false,
|
||||
enableReasoning: false
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user