mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-06 05:09:09 +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)) {
|
if (!isSupportedReasoningEffortOpenAIModel(model)) {
|
||||||
return {}
|
return {}
|
||||||
}
|
}
|
||||||
|
|
||||||
const openAI = getStoreSetting('openAI') as any
|
const openAI = getStoreSetting('openAI') as any
|
||||||
const summaryText = openAI.summaryText as OpenAISummaryText
|
const summaryText = (openAI?.summaryText as OpenAISummaryText) || 'off'
|
||||||
|
|
||||||
let summary: string | undefined = undefined
|
let summary: string | undefined = undefined
|
||||||
|
|
||||||
if (summaryText === 'off' || model.id.includes('o1-pro')) {
|
if (summaryText === 'off' || model.id.includes('o1-pro')) {
|
||||||
summary = undefined
|
summary = undefined
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user