Cool, can you make it use local free models because I'm broke and can't afford AI's crazy costs.

Yep, change nothing in the code in the article but spin up an Ollama server and use the OpenAI API https://docs.ollama.com/api/openai-compatibility.