diff --git a/docs/get-started/configuration.md b/docs/get-started/configuration.md index 4864e9a649..3bd6bda748 100644 --- a/docs/get-started/configuration.md +++ b/docs/get-started/configuration.md @@ -300,7 +300,7 @@ their corresponding top-level category object in your `settings.json` file. - **`model.compressionThreshold`** (number): - **Description:** The fraction of context usage at which to trigger context compression (e.g. 0.2, 0.3). - - **Default:** `0.2` + - **Default:** `0.7` - **Requires restart:** Yes - **`model.skipNextSpeakerCheck`** (boolean): diff --git a/packages/cli/src/config/settingsSchema.ts b/packages/cli/src/config/settingsSchema.ts index 32a949114e..38e3d84fca 100644 --- a/packages/cli/src/config/settingsSchema.ts +++ b/packages/cli/src/config/settingsSchema.ts @@ -683,7 +683,7 @@ const SETTINGS_SCHEMA = { label: 'Compression Threshold', category: 'Model', requiresRestart: true, - default: 0.2 as number, + default: 0.7 as number, description: 'The fraction of context usage at which to trigger context compression (e.g. 0.2, 0.3).', showInDialog: true, diff --git a/packages/core/src/services/chatCompressionService.ts b/packages/core/src/services/chatCompressionService.ts index 985d1c7448..b51a2031ac 100644 --- a/packages/core/src/services/chatCompressionService.ts +++ b/packages/core/src/services/chatCompressionService.ts @@ -19,7 +19,7 @@ import { getInitialChatHistory } from '../utils/environmentContext.js'; * Default threshold for compression token count as a fraction of the model's * token limit. If the chat history exceeds this threshold, it will be compressed. */ -export const DEFAULT_COMPRESSION_TOKEN_THRESHOLD = 0.2; +export const DEFAULT_COMPRESSION_TOKEN_THRESHOLD = 0.7; /** * The fraction of the latest chat history to keep. A value of 0.3 diff --git a/schemas/settings.schema.json b/schemas/settings.schema.json index bb846b9fc4..38dc843d5a 100644 --- a/schemas/settings.schema.json +++ b/schemas/settings.schema.json @@ -412,8 +412,8 @@ "compressionThreshold": { "title": "Compression Threshold", "description": "The fraction of context usage at which to trigger context compression (e.g. 0.2, 0.3).", - "markdownDescription": "The fraction of context usage at which to trigger context compression (e.g. 0.2, 0.3).\n\n- Category: `Model`\n- Requires restart: `yes`\n- Default: `0.2`", - "default": 0.2, + "markdownDescription": "The fraction of context usage at which to trigger context compression (e.g. 0.2, 0.3).\n\n- Category: `Model`\n- Requires restart: `yes`\n- Default: `0.7`", + "default": 0.7, "type": "number" }, "skipNextSpeakerCheck": {