Tanush404/local-ai-chatbot ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple chatbot app in Python that I can run locally and talk to like ChatGPT.

I want one version that works offline with a local model, and another version that can connect to an online AI if needed. The chat should feel clean and easy to use, with a message history, a text box to type into, and a clear way to reset the conversation. If it helps, make the app easy to launch from the command line and include whatever setup notes are needed so I can get it running quickly.

Please keep the interface polished but straightforward, and make sure the code is organized so I can understand and tweak it later. If you need current instructions or model details, look them up online.