const fs = require('fs');
const file1 = 'src/llm/gemini-chat.ts';

if (fs.existsSync(file1)) {
  let code1 = fs.readFileSync(file1, 'utf8');
  code1 = code1.replace(/if \(opts\.includeThoughts\) \{\n\s*config\.thinkingConfig = \{ thinkingBudget: 1024 \};\n\s*\}/g, '');
  code1 = code1.replace(/thinkingConfig: \{ thinkingBudget: 1024 \},/g, '');
  fs.writeFileSync(file1, code1);
  console.log("Stripped thinkingConfig entirely from Runner Gemini payload");
}
