summaryrefslogtreecommitdiffstats
path: root/src/config/role.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-10-05 07:15:51 +0800
committerGitHub <noreply@github.com>2024-10-05 07:15:51 +0800
commit11a706a68d1a1a22817f2264bdbbbe7036897378 (patch)
treebc51aad062d9667be8d334f5d9fc8ebe146ec5a0 /src/config/role.rs
parent7f37317afb4c4d2b373b30b8066084ce6439d694 (diff)
downloadaichat-11a706a68d1a1a22817f2264bdbbbe7036897378.tar.gz
feat: when saving input to message.md, use file paths instead of file contents (#905)
Diffstat (limited to 'src/config/role.rs')
-rw-r--r--src/config/role.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/role.rs b/src/config/role.rs
index 68366d0..9b9f46d 100644
--- a/src/config/role.rs
+++ b/src/config/role.rs
@@ -235,7 +235,7 @@ impl Role {
} else if self.is_embedded_prompt() {
self.prompt.replace(INPUT_PLACEHOLDER, &input_markdown)
} else {
- format!("{}\n\n{}", self.prompt, input.render())
+ format!("{}\n\n{}", self.prompt, input_markdown)
}
}