(text: &str)
| 230 | } |
| 231 | |
| 232 | pub fn estimate_tokens(text: &str) -> u64 { |
| 233 | let char_count = text.chars().count() as u64; |
| 234 | char_count / 4 |
| 235 | } |
| 236 | |
| 237 | pub fn generate_summary_prompt() -> String { |
| 238 | r#"Provide a detailed prompt for continuing our conversation above. |