Update smart-ai.lua