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
2 changes: 1 addition & 1 deletion docs/get-started/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/config/settingsSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/services/chatCompressionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions schemas/settings.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down