I'm using this to learn Rust. It was fun to build.
Screen.Recording.2023-03-15.at.12.21.05.PM.mp4
Install dependencies:
cargo install
Get your OpenAI API key and export it as an environment variable in your shell:
export OPENAI_API_KEY=sk-...
Then, run the program:
cargo run -- "Hello. How tall is the Empire State Building?"
Or build it:
cargo build
And run it:
./target/debug/rustpal "Hello. How tall is the Empire State Building?"