From f9847475b8eae99a70f16dc63bac67da2632474a Mon Sep 17 00:00:00 2001 From: sigoden Date: Thu, 13 Jun 2024 19:41:54 +0800 Subject: feat: add rag and bot related cli options (#595) --- src/repl/mod.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/repl') 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 "#), }, -- cgit v1.2.3