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 OpenAI API with the gpt-3.5-turbo model to help developers be more productive. Currently DeveloperGPT provides two main functionalities:
1. Natural Language to Terminal Commands
2. Chat with OpenAI GPT-3.5 Inside the Terminal
NOTE: Chat moderation is NOT implemented - all your chat messages should follow the OpenAI terms of use.
Install it from PyPI
pip install -U developergpt
Setup
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
Usage
# see available commands
$ developergpt
# chat with GPT-3.5 inside the terminal
$ developergpt chat
# natural language to terminal commands
$ developergpt cmd
OpenAI API Usage
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).
Development
DeveloperGPT is currently under active development.
Read the CONTRIBUTING.md file.
Future Work
- Add tests + update CI pipeline
- Switch to poetry package manager
- Prettify model output
- Support other models (hugging-face)
- Add docs
Credit
- 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.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2e421ed01b769e92f25f2e4cce7da8d73326dec7b9633b717296c4965e9f107 |
|
MD5 | 21cf72d5cdbf07ef6192657a4a752cf3 |
|
BLAKE2b-256 | 3ab3c8b33d99378ecbdb50c170a700dcbc9d12968422982339bee2e443110e2a |