From 1aa647688f5606390b9fad68a7837f112eec966a Mon Sep 17 00:00:00 2001 From: JiangYingjin Date: Sun, 2 Mar 2025 01:23:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/store/config.ts | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/app/store/config.ts b/app/store/config.ts index 4256eba92..4c2bf30cd 100644 --- a/app/store/config.ts +++ b/app/store/config.ts @@ -4,7 +4,6 @@ import { getClientConfig } from "../config/client"; import { DEFAULT_INPUT_TEMPLATE, DEFAULT_MODELS, - DEFAULT_SIDEBAR_WIDTH, DEFAULT_TTS_ENGINE, DEFAULT_TTS_ENGINES, DEFAULT_TTS_MODEL, @@ -46,18 +45,20 @@ export const DEFAULT_CONFIG = { fontSize: 14, fontFamily: "", theme: Theme.Auto as Theme, - tightBorder: !!config?.isApp, - sendPreviewBubble: true, + // tightBorder: !!config?.isApp, + tightBorder: true, + sendPreviewBubble: false, enableAutoGenerateTitle: true, - sidebarWidth: DEFAULT_SIDEBAR_WIDTH, + // sidebarWidth: DEFAULT_SIDEBAR_WIDTH, + sidebarWidth: 100, enableArtifacts: true, // show artifacts config enableCodeFold: true, // code fold config - disablePromptHint: false, + disablePromptHint: true, - dontShowMaskSplashScreen: false, // dont show splash screen when create chat + dontShowMaskSplashScreen: true, // dont show splash screen when create chat hideBuiltinMasks: false, // dont add builtin masks customModels: "", @@ -68,12 +69,12 @@ export const DEFAULT_CONFIG = { providerName: "OpenAI" as ServiceProvider, temperature: 0.5, top_p: 1, - max_tokens: 4000, + max_tokens: 8000, presence_penalty: 0, frequency_penalty: 0, sendMemory: true, - historyMessageCount: 4, - compressMessageLengthThreshold: 1000, + historyMessageCount: 16, + compressMessageLengthThreshold: 1000000, compressModel: "", compressProviderName: "", enableInjectSystemPrompts: true,