Skip to content

Releases: CREVIOS/CLI-GPT

Release list

Ask GPT

Choose a tag to compare

@CREVIOS CREVIOS released this 08 Apr 16:04
325c53b

Ask GPT Tool

Ask GPT Tool is a command-line interface that enables interaction with OpenAI's GPT models directly from your terminal.

Features

  • Menu Navigation: Navigate through a menu system to perform various actions.
  • Prompt Input: Input prompts or questions for the GPT model to generate responses.
  • OpenAI API Integration: Integrates with OpenAI's API to generate responses using GPT models.
  • Error Handling: Handles errors during API calls or other operations gracefully.
  • Persistent Storage: Stores the OpenAI API key persistently for seamless usage across sessions.
  • Customization: Allows customization for different API keys and accounts.

Usage

Installation

  1. Ensure Node.js is installed on your system.
  2. Clone the repository or download the CLI code.
  3. Navigate to the directory containing the CLI code.
  4. Install dependencies by running:
    npm install -g

Set Up OpenAI API Key

  1. Execute the CLI by running:
    ask_gpt
  2. If the OpenAI API key is not set, you will be prompted to set it. Follow the instructions to provide your API key.

Interact with the CLI

  1. After setting up the API key, you'll be presented with a menu.
  2. Choose an option from the menu to perform the desired action (e.g., ask a prompt, view or set the API key, etc.).
  3. Follow the prompts and instructions provided by the CLI to interact with the GPT models.

Exiting the CLI

To exit the CLI, choose the "Exit" option from the menu. The CLI will terminate gracefully.

Example

./your-cli-file
ASk GPT Tool

Interact with OpenAI GPT models directly from your terminal.

? Select an option: [Ask a prompt] [Set OpenAI API Key] [View current API Key] [Clear current API Key] [Exit]

Dependencies

  • OpenAI
  • Conf
  • Chalk
  • Inquirer
  • Figlet