toukoum/DEFAI ? reverse-engineered prompt
Reverse engineered prompt
Build me a clean AI chat web app that runs locally and feels polished.
I want a homepage where I can type messages and have a back and forth conversation with a model, with a nice chat UI, smooth animations, and a modern look. It should work with either an OpenAI API key or a local Ollama setup if I want to run the model on my own machine. Make the interface simple enough to start chatting right away, with a good mobile friendly layout and a few nice details like message bubbles, loading states, and an easy way to reset the conversation.
Please set it up so I can run it with npm install and npm run dev, and make sure the environment variables are easy to configure from a .env file. If you need anything unclear from the model docs, look up the current docs online and wire it up properly.