mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-04 20:00:00 +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)
|
const conversation = JSON.stringify(structredMessages)
|
||||||
|
|
||||||
|
// 复制 assistant 对象,并强制关闭思考预算
|
||||||
|
const summaryAssistant = {
|
||||||
|
...assistant,
|
||||||
|
settings: {
|
||||||
|
...assistant.settings,
|
||||||
|
reasoning_effort: undefined,
|
||||||
|
qwenThinkMode: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const params: CompletionsParams = {
|
const params: CompletionsParams = {
|
||||||
callType: 'summary',
|
callType: 'summary',
|
||||||
messages: conversation,
|
messages: conversation,
|
||||||
assistant: { ...assistant, prompt, model },
|
assistant: { ...summaryAssistant, prompt, model },
|
||||||
maxTokens: 1000,
|
maxTokens: 1000,
|
||||||
streamOutput: false
|
streamOutput: false,
|
||||||
|
enableReasoning: false
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user