Sgpt

From Notes_Wiki
Revision as of 17:00, 22 February 2025 by Saurabh (talk | contribs) (Created page with "Home > API access to AI tools > Sgpt To install sgpt on Rocky Linux 9.x use: # Download the rpm file from https://github.com/tbckr/sgpt/releases # Install using "dnf localinstall" # Get OpenAI API keys via https://platform.openai.com/api-keys # Configure key in .bashrc via as: #:<pre> #:: export OPENAI_API_KEY="<key>" #:</pre> # Open a new terminal and search with: #:<pre> #:: sgpt "mass of sun" #:: sgpt sh --execute "list all files in current dire...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > API access to AI tools > Sgpt

To install sgpt on Rocky Linux 9.x use:

  1. Download the rpm file from https://github.com/tbckr/sgpt/releases
  2. Install using "dnf localinstall"
  3. Get OpenAI API keys via https://platform.openai.com/api-keys
  4. Configure key in .bashrc via as:
    export OPENAI_API_KEY="<key>"
  5. Open a new terminal and search with:
    sgpt "mass of sun"
    sgpt sh --execute "list all files in current directory sorted by modification time in desecening order"


Home > API access to AI tools > Sgpt