From 33a0049a81103c1f6c5639b9cec43cb14a9ef367 Mon Sep 17 00:00:00 2001 From: sigoden Date: Thu, 27 Jun 2024 08:21:49 +0800 Subject: refactor: saved messages ignore embedding context (#659) --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 470054e..f89ec47 100644 --- a/src/main.rs +++ b/src/main.rs @@ -162,7 +162,7 @@ async fn main() -> Result<()> { #[async_recursion] async fn start_directive( config: &GlobalConfig, - mut input: Input, + input: Input, no_stream: bool, code_mode: bool, abort_signal: AbortSignal, @@ -196,7 +196,7 @@ async fn start_directive( }; config .write() - .after_chat_completion(&mut input, &output, &tool_results)?; + .after_chat_completion(&input, &output, &tool_results)?; config.write().exit_session()?; @@ -237,7 +237,7 @@ async fn shell_execute(config: &GlobalConfig, shell: &Shell, mut input: Input) - } config .write() - .after_chat_completion(&mut input, &eval_str, &[])?; + .after_chat_completion(&input, &eval_str, &[])?; let render_options = config.read().render_options()?; let mut markdown_render = MarkdownRender::init(render_options)?; if config.read().dry_run { -- cgit v1.2.3