fix: type

This commit is contained in:
0xMRTT 2023-06-17 17:09:44 +02:00
parent bf5fb5df49
commit 32ee2aa63a
Signed by: 0xMRTT
GPG Key ID: 910B287304120902

View File

@ -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<String>) -> Result<Vec<Delta>, Box<dyn std::error::Error>> {
pub async fn ask(&mut self, prompt: &str, parent_message_id: Option<String>) -> Result<Vec<Delta>, Box<dyn std::error::Error>> {
let mut body = String::new();
body.push_str(r#"{