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.5.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

aish-0.1.5-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file aish-0.1.5.tar.gz.

File metadata

  • Download URL: aish-0.1.5.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for aish-0.1.5.tar.gz
Algorithm Hash digest
SHA256 1f294eb82c4f52912e046cd85ebe1e041fc4b2e0929b4375bcb3c1d73df400ab
MD5 6e9698c1c7c9b8ab233ceea7498ca1ef
BLAKE2b-256 a676d08e1b8df0fbd74ea8c7317a482fd2de8d2a34e570842846a5c8377b375c

See more details on using hashes here.

Provenance

File details

Details for the file aish-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: aish-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for aish-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ab62a3745e36312102b0620c7f5b1f7b2bd371cfb0691f2ee8fbb610d1f6aa59
MD5 9060a663567b6fc8fb91996861112382
BLAKE2b-256 af37aaafb0f036a44145f928f745011ef5fd768050048fd290c7bcdca7f8e377

See more details on using hashes here.

Provenance

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