
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
prompt
is designed to provide users a command-line interface for the ChatGPT API, which uses OpenAI's GPT language model to generate text based on user input.
The application helps you start a session
with ChatGPT so that the context
is preserved and longer conversions with contexts are considered. The user's prompts and the responses are sent back to ChatGPT everytime.
The ChatGPT api usage depends on the number of tokens used and it is important that you use the tokens wisely. After a prompt has been answered the application will resend the last prompt and answer in the next prompt, this makes sure you can have a continued conversion with ChatGPT much like using ChatGPT in a single chat session
. This makes the token count larger and larger as you continue to chat. If you are not concerned with context use the --clear
flag which will save your token usage. Use the model
option to add
I hope you find it useful.
The application requires you to have an api token to query the OpenAI's ChatGPT api. You can read about and get it here https://platform.openai.com/account/api-keys .
Install the prompt python package directly from pypi.
pip install promptcli
I would recommend using pipx instead of pip to install cli applications on you machine.
Usage: prompt [OPTIONS] COMMAND [ARGS]...
🥝 A command line application to interact with OpenAI's ChatGPT.
Options:
--version Show the version and exit.
--clear 🌊 Clear the context each round of chat
--model 🔄 The OpenAI model type.
--help Show this message and exit.
Commands:
update 🔐 Update the OpenAI API key.
Please feel to create issues or request for features. More options and commands will be added to the application in the near future.
FAQs
A command line application to help wrap the OpenAI ChatGPT api.
We found that promptcli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.