1
0

fix config path

This commit is contained in:
2026-03-01 14:51:00 +09:00
parent 6f3c9d25a8
commit 3365e7634d
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ use std::path::PathBuf;
fn config_dir() -> PathBuf { fn config_dir() -> PathBuf {
dirs::config_dir() dirs::config_dir()
.unwrap_or_else(|| PathBuf::from(".")) .unwrap_or_else(|| PathBuf::from("."))
.join("aigpt") .join("ai.syui.gpt")
} }
pub fn read_core() -> Result<String> { pub fn read_core() -> Result<String> {

View File

@@ -5,7 +5,7 @@ use std::path::PathBuf;
fn config_dir() -> PathBuf { fn config_dir() -> PathBuf {
dirs::config_dir() dirs::config_dir()
.unwrap_or_else(|| PathBuf::from(".")) .unwrap_or_else(|| PathBuf::from("."))
.join("aigpt") .join("ai.syui.gpt")
} }
pub fn save_memory(content: &str) -> Result<()> { pub fn save_memory(content: &str) -> Result<()> {