Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions service/src/chatgpt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,9 @@ search result: <search_result>${searchResultContent}</search_result>`,
}
}

// This model does not support setting reasoning effort, so set reasoning to empty object
if (model === 'gpt-5.1-chat-latest') {
// Models that start with 'gpt' and end with 'chat-latest' (e.g., gpt-5.1-chat-latest, gpt-5.2-chat-latest)
// do not support setting reasoning effort, so set reasoning to empty object
if (model.startsWith('gpt') && model.endsWith('chat-latest')) {
reasoning = {}
}

Expand Down
2 changes: 1 addition & 1 deletion service/src/storage/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export async function getOriginConfig() {
}

if (!isNotEmptyString(config.siteConfig.chatModels))
config.siteConfig.chatModels = 'gpt-4.1,gpt-4.1-mini,gpt-4.1-nano'
config.siteConfig.chatModels = 'gpt-5.2,gpt-5-mini,gpt-5-nano'
return config
}

Expand Down