fix config path
This commit is contained in:
@@ -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> {
|
||||||
|
|||||||
@@ -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<()> {
|
||||||
|
|||||||
Reference in New Issue
Block a user