developergpt is a command line tool that allows users to use natural language to execute commands and chat with GPT-3.5 models
Project description
DeveloperGPT
DeveloperGPT is a terminal application that uses the latest LLMs to help developers be more productive.
By default, DeveloperGPT uses the gpt-3.5-turbo model from OpenAI, but you can also use the open-source BLOOM model (some features are currently not supported when using BLOOM). Support for more models and features is coming soon!
DeveloperGPT has two main features:
1. Natural Language to Terminal Commands
Supported Models: GPT3.5 (default), BLOOM
NOTE: Currently, command explanations are not supported when using BLOOM. Commands using BLOOM may also require more revision to get the desired output.
2. Chat with GPT-3.5 Inside the Terminal
Supported Models: GPT3.5 (only)
NOTE: Chat moderation is NOT implemented - all your chat messages should follow the OpenAI terms of use.
Install DeveloperGPT from PyPI
pip install -U developergpt
Setup
DeveloperGPT uses the GPT-3.5 model from OpenAI by default (with full feature support).
Get your own OpenAI API Key: https://platform.openai.com/account/api-keys
# Do this once
# set OpenAI API Key (using zsh for example)
$ echo 'export OPENAI_API_KEY=[your_key_here]' >> ~/.zshenv
# reload the environment (or just quit and open a new terminal)
$ source ~/.zshenv
If you just want to use the BLOOM model with Feature 1 (Natural Language to Terminal Commands) only, you don't need to setup an OpenAI key.
Usage
# see available commands
$ developergpt
# chat with GPT-3.5 inside the terminal
$ developergpt chat
# natural language to terminal commands using GPT-3.5 (default)
$ developergpt cmd
# natural langauge to terminal commands using BLOOM
$ developergpt --model bloom cmd
OpenAI API Usage (GPT-3.5)
You can monitor your OpenAI API usage here: https://platform.openai.com/account/usage
DeveloperGPT uses the gpt-3.5-turbo
model which is very cost efficient (1/10 the cost of models such as text-davinci-003
). Based on preliminary testing, using DeveloperGPT should cost no more than 10 cents per day (assuming ~100 requests/day).
Hugging-Face API Usage (BLOOM)
Currently, using the BLOOM model does not require a Hugging Face Inference API token and is free (but rate limited).
Contributing
Read the CONTRIBUTING.md file.
Future Roadmap
- Add support for more open-source models (Vicuna-13B?)
Credit
- Thanks to Hugging Face and the NLP community for open-source models!
- This project uses the Python project template from https://github.com/rochacbruno/python-project-template
- This project was written with assistance from ChatGPT and Github CoPilot.
Project details
Release history Release notifications | RSS feed
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
Hashes for developergpt-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 114f7e8a05c7b59e0cd651e6f49c4df086ff346ceda12a0919dd1cb30fa4a7ea |
|
MD5 | d803f6e424fe3c7927ce90b5c6446ec8 |
|
BLAKE2b-256 | 38341ff65228cd6d8a5906693c8370159cfce477b4b56489512d3ca4a3791273 |