summaryrefslogtreecommitdiffstats
path: root/src/repl
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-07-12 17:58:04 +0800
committerGitHub <noreply@github.com>2024-07-12 17:58:04 +0800
commitcfcf624e3be72364b4c3123e4f48be559f1edb40 (patch)
tree98960e02299b5ef348c6bc7dab73b95945a26b7e /src/repl
parent5ca8975bbc20c94de0066a53a9b562e4a196c66e (diff)
downloadaichat-cfcf624e3be72364b4c3123e4f48be559f1edb40.tar.gz
refactor: `.starter` rendered in markdown format (#708)
Diffstat (limited to 'src/repl')
-rw-r--r--src/repl/mod.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/repl/mod.rs b/src/repl/mod.rs
index 0100cb0..e151745 100644
--- a/src/repl/mod.rs
+++ b/src/repl/mod.rs
@@ -286,15 +286,7 @@ impl Repl {
}
None => {
let banner = self.config.read().agent_banner()?;
- let output = format!(
- r#"Usage: .starter <text>...
-
-Tips: use <tab> to autocomplete conversation starter text.
----------------------------------------------------------
-
-{banner}"#
- );
-
+ let output = self.config.read().markdown_render(&banner)?;
println!("{output}");
}
},