Remove old openai crate

This commit is contained in:
Alex Page 2024-01-25 19:09:54 -05:00
parent c9fcdba421
commit e9b38c069a
3 changed files with 5 additions and 122 deletions

View file

@ -9,7 +9,6 @@ use commands::*;
use std::{env, sync::Arc};
use anyhow::Result;
use openai::set_key;
use parking_lot::Mutex;
use poise::serenity_prelude as serenity;
use reqwest::Client as HttpClient;
@ -54,9 +53,6 @@ async fn main() -> Result<()> {
env::var("OPENAI_API_KEY")
.expect("Expected an OpenAI API key in the environment: OPENAI_API_KEY");
// OLD
set_key(env::var("OPENAI_KEY").expect("Expected an OpenAI key in the environment: OPENAI_KEY"));
let token =
env::var("DISCORD_TOKEN").expect("Expected a bot token in the environment: DISCORD_TOKEN");