diff options
| author | sigoden <sigoden@gmail.com> | 2025-01-17 20:06:28 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-17 20:06:28 +0800 |
| commit | 30dae5c12b81a6f92be138966d8930fa15612cb0 (patch) | |
| tree | ecb641bedbe8798d6b477f1036d714b99f1a8081 /src/config/agent.rs | |
| parent | 50c60e8097f5148c30295a296063d0fc8391a5f4 (diff) | |
| download | aichat-30dae5c12b81a6f92be138966d8930fa15612cb0.tar.gz | |
feat: support macro (#1087)
Diffstat (limited to 'src/config/agent.rs')
| -rw-r--r-- | src/config/agent.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/agent.rs b/src/config/agent.rs index 731dd91..533e7a9 100644 --- a/src/config/agent.rs +++ b/src/config/agent.rs @@ -68,7 +68,7 @@ impl Agent { let rag = if rag_path.exists() { Some(Arc::new(Rag::load(config, DEFAULT_AGENT_NAME, &rag_path)?)) - } else if !definition.documents.is_empty() && !config.read().cli_info_flag { + } else if !definition.documents.is_empty() && !config.read().info_flag { let mut ans = false; if *IS_STDOUT_TERMINAL { ans = Confirm::new("The agent has the documents, init RAG?") |
