fix: Make datetime info message more explicit to prevent LLM confusion about current year (#6101)
Co-authored-by: tlongwell-block <109685178+tlongwell-block@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
a131b08817
commit
108ffad4a4
@@ -1247,7 +1247,7 @@ impl ExtensionManager {
|
|||||||
|
|
||||||
pub async fn collect_moim(&self) -> Option<String> {
|
pub async fn collect_moim(&self) -> Option<String> {
|
||||||
let timestamp = chrono::Local::now().format("%Y-%m-%d %H:%M:%S").to_string();
|
let timestamp = chrono::Local::now().format("%Y-%m-%d %H:%M:%S").to_string();
|
||||||
let mut content = format!("<info-msg>\nDatetime: {}\n", timestamp);
|
let mut content = format!("<info-msg>\nIt is currently {}\n", timestamp);
|
||||||
|
|
||||||
let extensions = self.extensions.lock().await;
|
let extensions = self.extensions.lock().await;
|
||||||
for (name, extension) in extensions.iter() {
|
for (name, extension) in extensions.iter() {
|
||||||
|
|||||||
Reference in New Issue
Block a user