Skip to content

A CLI application in which integrates OpenAI's GPT-3 API using Rust

Notifications You must be signed in to change notification settings

alexdphan/RustOpenAi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RustOpenAi 🤖


A CLI application in which integrates OpenAI's GPT-3 API using Rust


Spent an hour building this during my free time (Thanksgiving Week)

I wanted to play with AI a bit, while also getting some practice with Rust.

OpenAI had some models I could try out while using some free credits.

All I had to do was decide on a use case...

My use case was... To troll my friends lol


It was fun to send them wierd messages, but hopefully I'll expand more on this project during my free time.

How to Use

  1. Clone/Fork this repo

  2. Get an API secret key from OpenAI

  3. Go to your terminal or make a .env file and set OAI_TOKEN=YOUR_API_KEY

  4. Modify the premble variable to display how you want the AI to respond

  5. Type "Cargo Run"

  6. Ask any questions and have fun :D

About

A CLI application in which integrates OpenAI's GPT-3 API using Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages