mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-11 14:40:52 -07:00
Cap Thinking Budget to prevent runaway thought loops (#12416)
This commit is contained in:
@@ -548,7 +548,7 @@ their corresponding top-level category object in your `settings.json` file.
|
|||||||
|
|
||||||
- **`experimental.codebaseInvestigatorSettings.thinkingBudget`** (number):
|
- **`experimental.codebaseInvestigatorSettings.thinkingBudget`** (number):
|
||||||
- **Description:** The thinking budget for the Codebase Investigator agent.
|
- **Description:** The thinking budget for the Codebase Investigator agent.
|
||||||
- **Default:** `-1`
|
- **Default:** `8192`
|
||||||
- **Requires restart:** Yes
|
- **Requires restart:** Yes
|
||||||
|
|
||||||
- **`experimental.codebaseInvestigatorSettings.model`** (string):
|
- **`experimental.codebaseInvestigatorSettings.model`** (string):
|
||||||
|
|||||||
@@ -1253,7 +1253,7 @@ const SETTINGS_SCHEMA = {
|
|||||||
label: 'Thinking Budget',
|
label: 'Thinking Budget',
|
||||||
category: 'Experimental',
|
category: 'Experimental',
|
||||||
requiresRestart: true,
|
requiresRestart: true,
|
||||||
default: -1,
|
default: 8192,
|
||||||
description:
|
description:
|
||||||
'The thinking budget for the Codebase Investigator agent.',
|
'The thinking budget for the Codebase Investigator agent.',
|
||||||
showInDialog: false,
|
showInDialog: false,
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ export const DEFAULT_GEMINI_MODEL_AUTO = 'auto';
|
|||||||
|
|
||||||
export const DEFAULT_GEMINI_EMBEDDING_MODEL = 'gemini-embedding-001';
|
export const DEFAULT_GEMINI_EMBEDDING_MODEL = 'gemini-embedding-001';
|
||||||
|
|
||||||
// Some thinking models do not default to dynamic thinking which is done by a value of -1
|
// Cap the thinking at 8192 to prevent run-away thinking loops.
|
||||||
export const DEFAULT_THINKING_MODE = -1;
|
export const DEFAULT_THINKING_MODE = 8192;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determines the effective model to use, applying fallback logic if necessary.
|
* Determines the effective model to use, applying fallback logic if necessary.
|
||||||
|
|||||||
@@ -832,8 +832,8 @@
|
|||||||
"thinkingBudget": {
|
"thinkingBudget": {
|
||||||
"title": "Thinking Budget",
|
"title": "Thinking Budget",
|
||||||
"description": "The thinking budget for the Codebase Investigator agent.",
|
"description": "The thinking budget for the Codebase Investigator agent.",
|
||||||
"markdownDescription": "The thinking budget for the Codebase Investigator agent.\n\n- Category: `Experimental`\n- Requires restart: `yes`\n- Default: `-1`",
|
"markdownDescription": "The thinking budget for the Codebase Investigator agent.\n\n- Category: `Experimental`\n- Requires restart: `yes`\n- Default: `8192`",
|
||||||
"default": -1,
|
"default": 8192,
|
||||||
"type": "number"
|
"type": "number"
|
||||||
},
|
},
|
||||||
"model": {
|
"model": {
|
||||||
|
|||||||
Reference in New Issue
Block a user