https://github.com/protik09/terminal-ai
Super Fast 0-Shot AI assistant in the terminal
https://github.com/protik09/terminal-ai
Last synced: over 1 year ago
JSON representation
Super Fast 0-Shot AI assistant in the terminal
- Host: GitHub
- URL: https://github.com/protik09/terminal-ai
- Owner: protik09
- Created: 2024-05-17T03:40:12.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-17T06:24:13.000Z (about 2 years ago)
- Last Synced: 2024-05-18T04:36:43.400Z (about 2 years ago)
- Language: Python
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terminal-AI

   
  
A zero-shot AI assistant in the terminal, backended by the *GROQ AI*, for blazing fast responses. The **free** API key from *GROQ* can be obtained [here](https://console.groq.com/keys)
## Installation
To install protai, simply run the following command in your terminal:
```bash
pip install --upgrade protai
```
## Usage
To use this application, simply run the following command in your terminal:
```bash
protai
```
*For example:*

>[!Note]
> On first run you will be prompted to enter your **free** *Groq AI* API key. You can get one at the [**Groq AI website**](https://console.groq.com/keys).
>[!IMPORTANT]
> You need to have a _**valid Groq AI API key**_ to use this application.
## Development
The application is using the _**llama-3.1-8b-instant**_ model for its instant inference, as that has the fastest response time.
The interactive version is using the **llama-3.3-70b-versatile** for its 0-shot inference.
If you wish to develop for this application, you can clone the repository and install the dependencies using the scripts given:
```bash
git clone https://github.com/protik09/terminal-ai.git
cd terminal-ai
./activate_venv.sh
```
or
```powershell
git clone https://github.com/protik09/terminal-ai.git
cd terminal-ai
.\activate_venv.ps1
```
To generate the wheel and upload to PyPI, we use the following command:
```bash
python setup.py upload
```
> [!IMPORTANT]
> Only the current maintainer has access to the [**PyPI**](https://pypi.org/project/protai/) repository API key. If you wish to contribute, please fork the repository and submit a pull request.
### Prerequisites
>[!NOTE]
>* Python 3.10 or later 🐍
>* Groq AI API key (available at [Groq AI website](https://console.groq.com/keys))
### Program Flow Chart

### Contributing
Contributions are welcome! If you'd like to contribute to this application, please fork the repository and submit a pull request.
>[!WARNING]
> WSL2 is not supported for development. Please use a native Linux or Windows environment. There are issues with keyring access in WSL2.
## License
This application is licensed under the MIT License. See [LICENSE](LICENSE) for details.