mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-28 11:39:23 +08:00
add summarize model setting
This commit is contained in:
@@ -92,6 +92,11 @@ function createEmptySession(): ChatSession {
|
||||
}
|
||||
|
||||
function getSummarizeModel(currentModel: string) {
|
||||
const config = useAppConfig.getState();
|
||||
if (config.summarizeModel) {
|
||||
return config.summarizeModel;
|
||||
}
|
||||
|
||||
// if it is using gpt-* models, force to use 4o-mini to summarize
|
||||
if (currentModel.startsWith("gpt")) {
|
||||
const configStore = useAppConfig.getState();
|
||||
|
||||
@@ -39,6 +39,7 @@ export const DEFAULT_CONFIG = {
|
||||
tightBorder: !!config?.isApp,
|
||||
sendPreviewBubble: true,
|
||||
enableAutoGenerateTitle: true,
|
||||
summarizeModel: "gpt-3.5-turbo" as ModelType,
|
||||
sidebarWidth: DEFAULT_SIDEBAR_WIDTH,
|
||||
|
||||
disablePromptHint: false,
|
||||
|
||||
Reference in New Issue
Block a user