mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-02 09:20:42 -07:00
Change default compress threshold to 0.7 for api key users (#13079)
This commit is contained in:
committed by
GitHub
parent
9d74b7c0e8
commit
6d83d3440c
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user