mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-15 08:31:14 -07:00
Change default compress threshold to 0.5 for api key users (#13517)
This commit is contained in:
committed by
GitHub
parent
8c07ad2ab9
commit
c7b5dcd28f
@@ -304,7 +304,7 @@ their corresponding top-level category object in your `settings.json` file.
|
|||||||
- **`model.compressionThreshold`** (number):
|
- **`model.compressionThreshold`** (number):
|
||||||
- **Description:** The fraction of context usage at which to trigger context
|
- **Description:** The fraction of context usage at which to trigger context
|
||||||
compression (e.g. 0.2, 0.3).
|
compression (e.g. 0.2, 0.3).
|
||||||
- **Default:** `0.7`
|
- **Default:** `0.5`
|
||||||
- **Requires restart:** Yes
|
- **Requires restart:** Yes
|
||||||
|
|
||||||
- **`model.skipNextSpeakerCheck`** (boolean):
|
- **`model.skipNextSpeakerCheck`** (boolean):
|
||||||
|
|||||||
@@ -693,7 +693,7 @@ const SETTINGS_SCHEMA = {
|
|||||||
label: 'Compression Threshold',
|
label: 'Compression Threshold',
|
||||||
category: 'Model',
|
category: 'Model',
|
||||||
requiresRestart: true,
|
requiresRestart: true,
|
||||||
default: 0.7 as number,
|
default: 0.5 as number,
|
||||||
description:
|
description:
|
||||||
'The fraction of context usage at which to trigger context compression (e.g. 0.2, 0.3).',
|
'The fraction of context usage at which to trigger context compression (e.g. 0.2, 0.3).',
|
||||||
showInDialog: true,
|
showInDialog: true,
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import { getInitialChatHistory } from '../utils/environmentContext.js';
|
|||||||
* Default threshold for compression token count as a fraction of the model's
|
* 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.
|
* token limit. If the chat history exceeds this threshold, it will be compressed.
|
||||||
*/
|
*/
|
||||||
export const DEFAULT_COMPRESSION_TOKEN_THRESHOLD = 0.7;
|
export const DEFAULT_COMPRESSION_TOKEN_THRESHOLD = 0.5;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The fraction of the latest chat history to keep. A value of 0.3
|
* The fraction of the latest chat history to keep. A value of 0.3
|
||||||
|
|||||||
@@ -419,8 +419,8 @@
|
|||||||
"compressionThreshold": {
|
"compressionThreshold": {
|
||||||
"title": "Compression Threshold",
|
"title": "Compression Threshold",
|
||||||
"description": "The fraction of context usage at which to trigger context compression (e.g. 0.2, 0.3).",
|
"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.7`",
|
"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.5`",
|
||||||
"default": 0.7,
|
"default": 0.5,
|
||||||
"type": "number"
|
"type": "number"
|
||||||
},
|
},
|
||||||
"skipNextSpeakerCheck": {
|
"skipNextSpeakerCheck": {
|
||||||
|
|||||||
Reference in New Issue
Block a user