diff --git a/src/config.rs b/src/config.rs index 30d864e..ee9d9c7 100644 --- a/src/config.rs +++ b/src/config.rs @@ -16,7 +16,7 @@ pub fn shared_config_path() -> String { format!("{}/ai.syui.log/config.json", config_dir()) } -/// Path to aigpt config: $cfg/ai.syui.gpt/config.json +/// Path to aigpt config (same content as shared, may be symlink) pub fn gpt_config_path() -> String { format!("{}/ai.syui.gpt/config.json", config_dir()) } diff --git a/src/headless.rs b/src/headless.rs index 92eecb2..6d6a99f 100644 --- a/src/headless.rs +++ b/src/headless.rs @@ -575,7 +575,7 @@ fn save_to_aigpt_memory(decision: &str, agents: &[serde_json::Value]) { } fn aigpt_memory_dir() -> Option { - let config_path = config::gpt_config_path(); + let config_path = config::shared_config_path(); let content = std::fs::read_to_string(&config_path).ok()?; let config: serde_json::Value = serde_json::from_str(&content).ok()?;