diff --git a/src/lib.rs b/src/lib.rs index 49dff2a..12979c6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -46,12 +46,12 @@ impl ThebAI { } } else { return ThebAI { - parent_message_id: String::from("8c00bd29-75b0-42c7-9d4f-05a94ac8b2de"), + parent_message_id: Some(String::from("8c00bd29-75b0-42c7-9d4f-05a94ac8b2de")), } } } - pub async fn ask(&self, prompt: &str, parent_message_id: Option) -> Result, Box> { + pub async fn ask(&mut self, prompt: &str, parent_message_id: Option) -> Result, Box> { let mut body = String::new(); body.push_str(r#"{