mihir-s-05 / aihelp

MIT License
0 stars 0 forks source link

AIHelp

AIHelp is a command-line tool that uses the GroqCloud API to interpret and execute natural language commands.

Installation

Prerequisites

Installation Steps

  1. Install pipx (if not already installed):

    sudo apt install pipx
    pipx ensurepath

    After running these commands, restart your terminal or run source ~/.bashrc to update your PATH.

  2. Clone this repository:

    git clone https://github.com/mihir-s-05/aihelp.git
    cd aihelp
  3. Install AIHelp using pipx:

    pipx install .
  4. Test the Installation: Open a new terminal window and test the command:

    aihelp --help

Configuration

Set up your GroqCloud API key as an environment variable:

  1. Open your shell configuration file (e.g., ~/.bashrc, ~/.zshrc):

    nano ~/.bashrc
  2. Add the following line at the end of the file:

    export GROQ_API_KEY=your_api_key_here
  3. Save the file and reload your shell configuration:

    source ~/.bashrc

Usage

Use the tool with a natural language command:

aihelp "your natural language command here"

Model Management

Examples

  1. Default usage:

    aihelp "copy data.txt from /home/user/documents to /home/user/backup"
  2. With a specific model (one-time use):

    aihelp "copy data.txt from /home/user/documents to /home/user/backup" -m llama-3.1-8b-instant
  3. Set a new default model:

    aihelp --set-model llama-3.1-8b-instant
  4. Show current default model:

    aihelp --show-model
  5. Reset to original default model:

    aihelp --reset-model

Note

Uninstallation

To uninstall AIHelp, use the following command:

pipx uninstall aihelp

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request with your improvements.