GeminiAI is an interactive CLI-based AI assistant built using Python. It allows users to chat with a custom AI model through a simple and engaging terminal interface. The assistant supports session management, dynamic system prompts, and real-time response streaming.
- Interactive CLI for chat-based AI interactions.
- Customizable system prompt for flexible response styles.
- Session management with unique session IDs.
- Clear and colorful terminal outputs.
- Dynamic text streaming for AI responses.
Follow these steps to install and run the script in Termux:
-
Update & Install Python:
pkg update -y && pkg upgrade -y pkg install python git -y
-
Clone the Repository:
git clone https://github.com/notsopreety/geminiai.git
-
Navigate to the Directory:
cd geminiai
-
Install Dependencies: Install Python dependencies using
pip
:pip install -r requirements.txt
-
Make the Script Globally Accessible: Create a symbolic link for the script:
echo "cd $(pwd) && python run.py" > $PREFIX/bin/geminiai chmod +x $PREFIX/bin/geminiai
To start the assistant, simply type the following in your terminal:
geminiai
/new
- Start a new chat session./system
- Change the system prompt./clear
- Clear the screen./exit
- Exit the application.
Welcome to the Advanced AI Assistant CLI!
==================================================
[New Chat Session: 1234abcd]
AI Assistant: Hello! I'm ready to help. What would you like to discuss?
You: What is Python?
AI Assistant: Python is a high-level, interpreted programming language known for its simplicity and versatility.
This project is licensed under the MIT License.
Created by Samir Thakuri.
API by Syed Samir Chowdhury.