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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: aish-0.1.8.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.8.tar.gz
Algorithm Hash digest
SHA256 bb2ec3dc0d6f4c1fae21e02a31a54c20723a6482b737b01c615e03a66917ad6c
MD5 636c36f519f011d2d040e2fb83709587
BLAKE2b-256 d8728025fc95324512d8da3c05943d65e37a2004b95bb0833e1c37d2b8be8bee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aish-0.1.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 942bef9624f89c96ca30cf1a87be980fe9a7cde1fcc6b3b905e1c7c96fa8dbfc
MD5 0a3c244634f81c566427e943ad7925fc
BLAKE2b-256 8ab07dddd072c4e0ad16edc0f46c67d66aa013318547d4eb524bf14de765a062

See more details on using hashes here.

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