fix: type
This commit is contained in:
parent
bf5fb5df49
commit
32ee2aa63a
@ -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#"{
|
||||
|
Loading…
Reference in New Issue
Block a user