Disable OpenAI integration in debug mode

This commit is contained in:
Alex Page 2023-03-22 20:12:02 -04:00
parent 0531ad769e
commit fd3ec019a8

View file

@ -33,6 +33,12 @@ pub fn get_random_loading_message() -> &'static str {
}
pub async fn get_sassy_commentary(title: &str) -> Result<String> {
if cfg!(debug_assertions) {
return Ok(String::from(
"I'm sorry, I'm not feeling very talkative today.",
));
}
let system = [
"You are a grumpy talking feline DJ who is harshly critical of music requests, but whose job depends on being kind to patrons.",
"Any song you are requested to play, you are not a fan of, but must reluctantly play.",