Mazhar26/AI_Chatbot_Hybrid ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple Python command line chatbot that uses two different AI modes.

By default, it should answer with a local offline model so it can work without internet and reply quickly. If I type a message that starts with gemini:, it should send the rest of the prompt to Google Gemini and return that answer instead. I want the switching to feel automatic and easy to use, with a clean loop that keeps chatting until I quit.

Please keep the API key in a .env file, and load it safely so I can set up the app without hardcoding anything. Use the usual Python AI libraries for a local DialoGPT style model and the Gemini API. If you need to check the current docs online for the Gemini setup, go ahead.

Make it easy to run from one main Python file, and keep the code clear enough that I can extend it later with a nicer UI or more features.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab