A Terminal based application written in Golang for quick Q&A with GenAI models.
Currently supports Gemini (1.5 Flash) and OpenAI (GPT-4o)
You Need To Have Go Installed To Use This Application
- Clone the repo using the following command
git clone https://github.com/srivats22/termai.git
- Open a terminal/command prompt window and navigate to where the project is cloned
- Run the following command
go install
- Once the install is completed run the following command
this will generate an output that looks like the image below
termai
Once you have cloned and installed the application, you can move on to the one-time setup of AI Models.
-
Run the following command
termai setup
you will see a screen like below choose the AI model you want to configure first -
After Choosing the Model you will be prompted to enter you API key once you complete that step you can start interacting with the models using the command mentioned invoking the AI Models
- To Invoke Gemini
Replace Enter Question with the question you want to ask Gemini This command supports streaming so you will see the response as soon as the AI starts replying
termai gemini Enter Question
- To Invoke OpenAI
Replace Enter Question with the question you want to ask OpenAI Currently the application doesn't support streaming and will be made available in the future
termai oai Enter Question