Skip to content

A minimal Python based GPT CLI query app to run on light hardware. Uses GPT-3.5-turbo model, written mostly by the GPT-4 model.

License

Notifications You must be signed in to change notification settings

Jeevus3D/minimalgpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Small ChatGPT CLI Application for Raspberry Pi

A lightweight command-line interface to interact with OpenAI's GPT models, optimized for Raspberry Pi Zero and similar hardware.

Installation

1. Prerequisites

Ensure you have Python and Pip installed. If not, run:

sudo apt-get update sudo apt-get upgrade sudo apt-get install python3 python3-pip

2. Clone the Repository

Clone this repository to your Raspberry Pi:

git clone https://github.com/Jeevus3D/minimalgpt.git cd minimapgpt

3. Install Dependencies

Install the required Python libraries:

pip3 install openai configparser

4 . Make the Script Executable

chmod +x chat.py

5. Global Access

To make the script accessible from anywhere in the CLI, move it to a directory in your PATH:

sudo mv chat.py /usr/local/bin/

Usage:

From anywhere in the CLI, run:

chat "Your query here"

For example:

chat "What is the capital of France?"

Optional: Create an Alias

If you named your script something other than chat, but you want to use the chat command, add an alias:

echo "alias chat='/path/to/your/script'" >> ~/.bashrc source ~/.bashrc

Replace /path/to/your/script with the actual path to your script.

About

A minimal Python based GPT CLI query app to run on light hardware. Uses GPT-3.5-turbo model, written mostly by the GPT-4 model.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages