diff options
| author | sigoden <sigoden@gmail.com> | 2024-06-13 19:41:54 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-13 19:41:54 +0800 |
| commit | f9847475b8eae99a70f16dc63bac67da2632474a (patch) | |
| tree | 032c9eb02540cf8644a2df103d8a45dfc54557be /src/repl/mod.rs | |
| parent | 255b194bcc538b2557caa60c5b607b4c4bfc0abd (diff) | |
| download | aichat-f9847475b8eae99a70f16dc63bac67da2632474a.tar.gz | |
feat: add rag and bot related cli options (#595)
Diffstat (limited to 'src/repl/mod.rs')
| -rw-r--r-- | src/repl/mod.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/repl/mod.rs b/src/repl/mod.rs index 0b74e73..d56b790 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -79,7 +79,7 @@ lazy_static! { ), ReplCommand::new( ".exit session", - "End the current session", + "End the session", AssertState::True(StateFlags::SESSION_EMPTY | StateFlags::SESSION) ), ReplCommand::new( @@ -105,7 +105,7 @@ lazy_static! { ), ReplCommand::new( ".starter", - "Use converstaion starters", + "Use the conversation starter", AssertState::True(StateFlags::BOT) ), ReplCommand::new( @@ -138,14 +138,13 @@ impl Repl { let editor = Self::create_editor(config)?; let prompt = ReplPrompt::new(config); - - let abort = create_abort_signal(); + let abort_signal = create_abort_signal(); Ok(Self { config: config.clone(), editor, prompt, - abort_signal: abort, + abort_signal, }) } @@ -254,7 +253,8 @@ impl Repl { } ".bot" => match args { Some(name) => { - Config::use_bot(&self.config, name, self.abort_signal.clone()).await?; + Config::use_bot(&self.config, name, None, self.abort_signal.clone()) + .await?; } None => println!(r#"Usage: .bot <name>"#), }, |
