Cap Thinking Budget to prevent runaway thought loops (#12416)

This commit is contained in:
Abhi
2025-11-03 13:39:06 -05:00
committed by GitHub
parent 9d642f3bb1
commit 59e0b10e6c
4 changed files with 6 additions and 6 deletions

View File

@@ -12,8 +12,8 @@ export const DEFAULT_GEMINI_MODEL_AUTO = 'auto';
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
export const DEFAULT_THINKING_MODE = -1;
// Cap the thinking at 8192 to prevent run-away thinking loops.
export const DEFAULT_THINKING_MODE = 8192;
/**
* Determines the effective model to use, applying fallback logic if necessary.