Skip to content

About

a python CLI chatbot powered by the Google Gemini API

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Gemini CLI Chatbot

A simple command-line chatbot built with Python and Google's Gemini API.

Current Features

  • Connects to Google's Gemini API
  • Uses an API key stored securely in a .env file
  • Accepts questions from the terminal
  • Maintains a continuous chat loop
  • Type exit to end the conversation

Tech Stack

  • Python
  • Google Gemini API
  • python-dotenv

How It Works

  1. The API key is stored in a .env file.
  2. python-dotenv loads the environment variables.
  3. The Gemini client is initialized using the API key.
  4. User messages are sent to the Gemini model.
  5. The model's response is displayed in the terminal.

Future Plans

  • 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

Project Structure

gemini-cli-chatbot/
│
├── bot.py
├── .gitignore
└── README.md


About

a python CLI chatbot powered by the Google Gemini API

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages