diff options
| author | sigoden <sigoden@gmail.com> | 2024-08-28 09:42:29 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-28 09:42:29 +0800 |
| commit | 298a45232b0f52fce5973075b33326a64be13462 (patch) | |
| tree | 51e70d6d333e5c03d79abd16aebae982eda9f5e5 /src/config | |
| parent | 11022f88de0ca591b92feab2b24ab41bbb5560d4 (diff) | |
| download | aichat-298a45232b0f52fce5973075b33326a64be13462.tar.gz | |
refactor: template for including files (#807)
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/input.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/input.rs b/src/config/input.rs index dd68749..9c7a666 100644 --- a/src/config/input.rs +++ b/src/config/input.rs @@ -72,7 +72,7 @@ impl Input { texts.push(String::new()); } for (path, contents) in files { - texts.push(format!("<!-- include: {path} -->\n\n{contents}\n")); + texts.push(format!("`{path}`:\n\n{contents}\n")); } let (role, with_session, with_agent) = resolve_role(&config.read(), role); Ok(Self { |
