fix: re-enable tool stripping after testing

With tools present, LS enters full agentic mode doing multi-turn
tool calls (file searches, terminal commands, etc.). A simple
weather question caused 40+ Google API calls in 120s before timeout.
Tool stripping is required to maintain single-turn behavior.
This commit is contained in:
Nikketryhard
2026-02-14 22:18:02 -06:00
parent 3e3af85798
commit 146be139a2

View File

@@ -9,8 +9,9 @@ use serde_json::Value;
use tracing::info;
/// Strip ALL tool definitions.
/// Set to false to allow tools through (for tool call testing).
const STRIP_ALL_TOOLS: bool = false;
/// Must be true: with tools present, the LS enters full agentic mode
/// (multi-turn tool calls, file searches, etc.) burning quota.
const STRIP_ALL_TOOLS: bool = true;
/// Modify a streamGenerateContent request body in-place.
/// Returns the modified JSON bytes, or None if modification wasn't possible.