const fs = require('fs');

const file1 = 'src/llm/gemini-chat.ts';
if (fs.existsSync(file1)) {
  let code1 = fs.readFileSync(file1, 'utf8');
  code1 = code1.replace(/thinkingBudgetTokens/g, 'thinkingBudget');
  fs.writeFileSync(file1, code1);
}

console.log("Patched thinkingBudget parameter for Runner");
