diff options
| author | sigoden <sigoden@gmail.com> | 2024-10-22 07:38:45 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-22 07:38:45 +0800 |
| commit | c7d85c624b1bd4ab8118ff80d692ee2b40669537 (patch) | |
| tree | 90f1c957645add0f6eb33c9664257407a3d41a57 /src/config/agent.rs | |
| parent | a165fd19e752e3a998dedfe640e9ec838c2737c6 (diff) | |
| download | aichat-c7d85c624b1bd4ab8118ff80d692ee2b40669537.tar.gz | |
refactor: several improvements (#943)
- rename agents_config_dir to agents_data_dir
- do not save empty role name while saving the session
- rename delete keys (roles/sessions/rags/agents => role/session/rag/agent-data)
- improve some printing messages
Diffstat (limited to 'src/config/agent.rs')
| -rw-r--r-- | src/config/agent.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config/agent.rs b/src/config/agent.rs index 9dcf62b..d4af67a 100644 --- a/src/config/agent.rs +++ b/src/config/agent.rs @@ -102,7 +102,7 @@ impl Agent { format!("Failed to save agent config to '{}'", config_path.display()) })?; - println!("✨ Saved agent config to '{}'", config_path.display()); + println!("✨ Saved agent config to '{}'.", config_path.display()); Ok(()) } @@ -114,7 +114,7 @@ impl Agent { .display() .to_string() .into(); - value["config_dir"] = Config::agent_config_dir(&self.name)? + value["data_dir"] = Config::agent_data_dir(&self.name)? .display() .to_string() .into(); |
