Interact with OpenAI ChatGPT from the command line
In order to use this command line tool do the following:
- Open an account on OpenAI and create an API Key:
- Create an account at https://platform.openai.com/signup
- Go to https://platform.openai.com/account/api-keys
- Click Create new secret Key
- Copy and save this key somewhere safe.
- In the terminal that you will execute this tool you need to set an environment variable as follows:
- export OPENAI_API_KEY="<your secret key here>"
-
Install the Rust Language: See https://www.rust-lang.org/tools/install
-
Change directory into the root of this project and type "cargo run"
-
Enjoy!