A simple command-line chatbot built with Python and Google's Gemini API.
- Connects to Google's Gemini API
- Uses an API key stored securely in a
.envfile - Accepts questions from the terminal
- Maintains a continuous chat loop
- Type
exitto end the conversation
- Python
- Google Gemini API
- python-dotenv
- The API key is stored in a
.envfile. python-dotenvloads the environment variables.- The Gemini client is initialized using the API key.
- User messages are sent to the Gemini model.
- The model's response is displayed in the terminal.
- Improve conversation history and context
- Add better error handling
- Add streaming responses
- Improve the CLI interface
- Experiment with different Gemini models
- Build a backend API
- Deploy the application
gemini-cli-chatbot/
│
├── bot.py
├── .gitignore
└── README.md