jordimerejo / RustOpenAi

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Rust 100.0%