mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 18:50:56 +08:00
fix: settings -> openAI -> summaryText undefined
This commit is contained in:
parent
abbafe29a1
commit
e70114bd26
@ -210,9 +210,12 @@ export abstract class BaseOpenAIProvider extends BaseProvider {
|
||||
if (!isSupportedReasoningEffortOpenAIModel(model)) {
|
||||
return {}
|
||||
}
|
||||
|
||||
const openAI = getStoreSetting('openAI') as any
|
||||
const summaryText = openAI.summaryText as OpenAISummaryText
|
||||
const summaryText = (openAI?.summaryText as OpenAISummaryText) || 'off'
|
||||
|
||||
let summary: string | undefined = undefined
|
||||
|
||||
if (summaryText === 'off' || model.id.includes('o1-pro')) {
|
||||
summary = undefined
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user