refactoring
different default system prompts for cli and audio
This commit is contained in:
@@ -52,7 +52,17 @@ impl DateTimeHandler {
|
||||
annotations(read_only_hint = true)
|
||||
)]
|
||||
fn get_weekday() -> String {
|
||||
Local::now().weekday().to_string()
|
||||
use chrono::Weekday::*;
|
||||
|
||||
match Local::now().weekday() {
|
||||
Mon => "Monday",
|
||||
Tue => "Tuesday",
|
||||
Wed => "Wednesday",
|
||||
Thu => "Thursday",
|
||||
Fri => "Friday",
|
||||
Sat => "Saturday",
|
||||
Sun => "Sunday",
|
||||
}.to_string()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user