Crates.io | gptshell |
lib.rs | gptshell |
version | 0.1.11 |
source | src |
created_at | 2023-03-11 18:15:13.82562 |
updated_at | 2023-04-08 14:31:23.905976 |
description | GPTshell is a tool for developers to query and interact with ChatGPT's language capabilities. GPTshell's aim is to simplify the process of using natural language processing while developing. |
homepage | |
repository | https://github.com/lyledean1/gptshell |
max_upload_size | |
id | 807435 |
size | 820,648 |
GPTshell is an early prototype of a tool for developers to query and interact with ChatGPT's language capabilities. GPTshell's aim is to simplify the process of using natural language processing and increase productivity while developing.
The tool was used during the development of this shell with ChatGPT and OpenAI! Any feedback is welcome as its still an early prototype.
Download and run gptshell
in your terminal.
Quickly build up powerful queries by loading files of code, specifying specific lines of code and exporting chat sessions for future use. Essentially reducing the feedback loop time with ChatGPT vs using a web browser where you have to navigate between different files, IDEs and copy & paste.
Example usage - debugging Rust. Rust is notoriously difficult language to learn, and here is an example of how using GPTshell could improve your workflow.
cmd("cargo test")
in gptshell (this will run in the current working dir)print()
)file("./src/main/rs")
)chat()
I currently run this in my VSCode so adds a quick feedback loop without having to use ChatGPT in a browser.
cargo install gptshell
Recommended way to install while still in development
Run help()
in the GPTshell for a list of these commands.
Note: Initial focus has been on the shell interactivity so currently only supports chat and completions.
✅ completions
✅ chat
🚧 edits
🚧 images
🚧 moderations
🚧 audio
This assumes you have an OpenAI Developer Account
After generating the token, set the env variable
export OPENAI_API_KEY={API_KEY}