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
Built Distribution
File details
Details for the file aish-0.1.7.tar.gz
.
File metadata
- Download URL: aish-0.1.7.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0db81291871f070fd59086f255a37357bc00eed28e7ebf90887b5db059dbd07b |
|
MD5 | e93b8939ab2d9784a566f4923eadf63d |
|
BLAKE2b-256 | 066373a347951ab6325591c751b568fbc0a53e338e76e9700a5ad3528f0cfe6b |
Provenance
File details
Details for the file aish-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: aish-0.1.7-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dc415c6ba1cbd92ab33dc3bf9ae18748758799edf2f9ae20cb46b714607d42c |
|
MD5 | f49d4bebaee08cba507974dc6dc775f5 |
|
BLAKE2b-256 | 74ac65fb6f87ae81664cbe8c6b6f42f16d7efcf61c0b4331e79d890883655852 |