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 git+https://github.com/Frodotus/aish.git

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

Uploaded Source

Built Distribution

aish-0.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aish-0.1.tar.gz
  • Upload date:
  • Size: 6.1 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.tar.gz
Algorithm Hash digest
SHA256 cb9c5df46a00f085dda86f03e9ed02df926d7fc1f05c15db74c2037b1d1dcf7b
MD5 dd6e2b207ebcca7d30f7caa0d436c3e4
BLAKE2b-256 8bee14b2018aebb4c589527aed07a037d6724a72059a86c1d3937b88a3b9a5ae

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: aish-0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 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-py3-none-any.whl
Algorithm Hash digest
SHA256 3ade0d8167b85f77b55635b75d16406084f0aaf8611cc9a3d31c44cf3f6d691b
MD5 b061653ff8a6c7ed1e50358c2081f6aa
BLAKE2b-256 82a120ba5f1cc6959cdda4ba13bb92aa67202c50d14a31dcd3d46d9411f6f523

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