jplhomer / rustpal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rustpal: A ChatGPT assistant built with Rust

I'm using this to learn Rust. It was fun to build.

Screen.Recording.2023-03-15.at.12.21.05.PM.mp4

Usage

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?"

About


Languages

Language:Rust 100.0%