OpenRouter Support, Insight Chat and User injection #56
@@ -18,8 +18,7 @@ use crate::otel::global_tracer;
|
|||||||
pub const DAILY_SUMMARY_MESSAGE_LIMIT: usize = 300;
|
pub const DAILY_SUMMARY_MESSAGE_LIMIT: usize = 300;
|
||||||
|
|
||||||
/// System prompt used when generating daily conversation summaries.
|
/// System prompt used when generating daily conversation summaries.
|
||||||
pub const DAILY_SUMMARY_SYSTEM_PROMPT: &str =
|
pub const DAILY_SUMMARY_SYSTEM_PROMPT: &str = "You are a conversation summarizer. Create clear, factual summaries with \
|
||||||
"You are a conversation summarizer. Create clear, factual summaries with \
|
|
||||||
precise subject attribution AND extract distinctive keywords. Focus on \
|
precise subject attribution AND extract distinctive keywords. Focus on \
|
||||||
specific, unique terms that differentiate this conversation from others.";
|
specific, unique terms that differentiate this conversation from others.";
|
||||||
|
|
||||||
|
|||||||
@@ -202,7 +202,11 @@ async fn main() -> Result<()> {
|
|||||||
let user_name = user_display_name();
|
let user_name = user_display_name();
|
||||||
println!("\nMessage preview:");
|
println!("\nMessage preview:");
|
||||||
for (i, msg) in messages.iter().take(3).enumerate() {
|
for (i, msg) in messages.iter().take(3).enumerate() {
|
||||||
let sender: &str = if msg.is_sent { &user_name } else { &msg.contact };
|
let sender: &str = if msg.is_sent {
|
||||||
|
&user_name
|
||||||
|
} else {
|
||||||
|
&msg.contact
|
||||||
|
};
|
||||||
let preview = msg.body.chars().take(60).collect::<String>();
|
let preview = msg.body.chars().take(60).collect::<String>();
|
||||||
println!(" {}. {}: {}...", i + 1, sender, preview);
|
println!(" {}. {}: {}...", i + 1, sender, preview);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user