Skip to main content

A command-line application that interacts with the OpenAI ChatGPT API.

Project description

Aish - ChatGPT CLI

This command-line interface (CLI) application is used to interact with the OpenAI through the OpenAI API. The chatbot takes an input prompt and returns a response from the selected model.

Installation

Ensure you have Python 3.7+ installed. To install the required libraries, use:

    pip install aish

Usage

To use the application, you need to set the environment variable OPENAI_API_KEY with your OpenAI API key. Then, you can run the script from the terminal using the command:

    aish How can i list all files older than 30 days?
    aish -s How can i list all files older than 30 days?
    aish -c code Write a hello world app in python

Optional parameters will take default values if not provided:

  • ModelVersion: The model version that you want to use. Default is "gpt-3.5-turbo".
  • TemperatureValue: The randomness of the AI’s responses. A lower value makes the output more focused and deterministic, while higher values produce more diverse and random outputs. Default is 0.5.
  • TopPValue: A parameter for controlling randomness. A higher value generates more random responses, and a lower value generates more deterministic responses. Default is 0.5.
  • TimeoutValue: The maximum time in seconds that the request will wait for a response from the API. Default is 60.

Help

You can display the help message which provides details about the command usage and the different parameters by running:

    aish --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aish-0.1.8.tar.gz (8.3 kB view hashes)

Uploaded Source

Built Distribution

aish-0.1.8-py3-none-any.whl (9.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page