summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-06-27 08:21:49 +0800
committerGitHub <noreply@github.com>2024-06-27 08:21:49 +0800
commit33a0049a81103c1f6c5639b9cec43cb14a9ef367 (patch)
tree7402b251e2d75aaf5306487b70265f35c8d52b22 /src/main.rs
parent1ced451c2723c36b7e0cb70e6c0755cdbad457c3 (diff)
downloadaichat-33a0049a81103c1f6c5639b9cec43cb14a9ef367.tar.gz
refactor: saved messages ignore embedding context (#659)
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 3 insertions, 3 deletions
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 {