Prompt is a command line application designed to facilitate interaction with OpenAI's ChatGPT API. Developed by raiyanyahya, this tool allows users to engage with the ChatGPT model directly from their terminal, providing a streamlined and efficient method for generating text based on user input.
--clear
flag, which resets the context after each interaction to save tokens.--version
) and a help menu (--help
), aiding users in navigating and utilizing the application effectively.Prompt can be installed directly from PyPI using the following command:
pip install promptcli
For a more isolated environment, it is recommended to use pipx
:
pipx install promptcli
To use Prompt, the following basic command structure is applied:
prompt [OPTIONS] COMMAND [ARGS]...
Options include:
--version
: Displays the current version of the application.--clear
: Clears the conversation context to save tokens.--model
: Specifies the OpenAI model to use.Commands include:
update
: Updates the OpenAI API key.Before using Prompt, users must obtain an API token from OpenAI. This token is necessary to authenticate requests to the ChatGPT API. Information on obtaining and managing API keys can be found on the OpenAI platform website.
Prompt is hosted on GitHub, providing a platform for users to contribute to the project, report issues, and request new features. The project's repository includes comprehensive documentation in the README file, facilitating easy setup and usage for new users.
For more details, visit the project's website at promptcli.com.
Prompt is a practical tool for developers, researchers, and hobbyists who require direct command line access to advanced natural language processing models like ChatGPT, enhancing productivity and interaction flexibility.