gptcmd is a command-line tool for interacting with OpenAI’s GPT-3 language model. It offers three modes of operation:
Chunk mode: Splits a text file into smaller chunks, prepends a prompt to each chunk, sends the chunk to GPT-3, and concatenates the responses into a single output file.
Query mode: Sends a text query to GPT-3 and prints the response.
Run mode: Sends a text query to GPT-3 with a prompt to generate executable shell code, prompts the user to execute the code, and executes the code as shell commands.