const fs = require('fs');

// Fix gemini-chat.ts name error
let geminiCode = fs.readFileSync('src/llm/gemini-chat.ts', 'utf8');
geminiCode = geminiCode.replace('name: part.functionCall.name,', 'name: part.functionCall.name || "",');
fs.writeFileSync('src/llm/gemini-chat.ts', geminiCode);

