Skip to content

About

Minimal command-line AI chatbot built with Python and Google Gemini. Supports retry logic, environment-based config, and optional .env file for local development.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Gemini AI Chatbot

A minimal command-line chatbot powered by Google Gemini via the google-genai Python SDK.

Features

  • Interactive terminal chat loop
  • Configurable model via environment variables
  • Automatic retry with backoff on server errors
  • Optional local .env support for development

Requirements

  • Python 3.8+
  • google-genai
  • python-dotenv (optional)
  • A Google Gemini API key

Installation

git clone https://github.com/sumitadhalkar/basic-ai-chatbot.git
cd basic-ai-chatbot
python -m venv .venv
.venv\Scripts\activate
pip install google-genai python-dotenv

Configuration

Create a local .env file for development (do not commit this file):

GEMINI_API_KEY=your-api-key-here

Alternatively set the environment variable directly:

$env:GEMINI_API_KEY="your-api-key-here"

Usage

python aibot.py

Type exit to quit the chatbot.

Notes

  • .env is intentionally excluded from version control.
  • This project is a minimal CLI chatbot example, not a production deployment.

About

Minimal command-line AI chatbot built with Python and Google Gemini. Supports retry logic, environment-based config, and optional .env file for local development.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages