(&self)
| 629 | } |
| 630 | |
| 631 | pub async fn do_get_last_model(&self) -> Option<String> { |
| 632 | if let Some(ref callback) = self.get_last_model { |
| 633 | callback(self.session_id.clone()).await.ok().flatten() |
| 634 | } else { |
| 635 | None |
| 636 | } |
| 637 | } |
| 638 | |
| 639 | pub fn with_create_synthetic_message<F, Fut>(mut self, callback: F) -> Self |
| 640 | where |