summaryrefslogtreecommitdiffstats
path: root/src/config/agent.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-07-28 10:15:43 +0800
committerGitHub <noreply@github.com>2024-07-28 10:15:43 +0800
commitc5b2be641acd43375f92fa04fb679911840c1c56 (patch)
tree1654b09766b87c41e707da7fcf75dbc6b1b2c7c9 /src/config/agent.rs
parent49b61129c95a3528eaf25dabcb55825b5ed7be72 (diff)
downloadaichat-c5b2be641acd43375f92fa04fb679911840c1c56.tar.gz
feat: ask for confirmation when some rag documents fail to load (#760)
Diffstat (limited to 'src/config/agent.rs')
-rw-r--r--src/config/agent.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/agent.rs b/src/config/agent.rs
index 5416586..c09c8a9 100644
--- a/src/config/agent.rs
+++ b/src/config/agent.rs
@@ -68,7 +68,7 @@ impl Agent {
println!("The agent has the documents, initializing RAG...");
let mut document_paths = vec![];
for path in &definition.documents {
- if Rag::is_url_path(path) {
+ if is_url(path) {
document_paths.push(path.to_string());
} else {
let new_path = safe_join_path(&functions_dir, path)