From bf07cdf256e1e3008578972f5916a4d6763554f5 Mon Sep 17 00:00:00 2001 From: sigoden Date: Tue, 29 Oct 2024 14:15:02 +0800 Subject: refactor: improve code quality (#956) --- src/repl/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/repl/mod.rs') diff --git a/src/repl/mod.rs b/src/repl/mod.rs index e2181cc..b392eb4 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -658,10 +658,9 @@ async fn ask( let client = input.create_client()?; config.write().before_chat_completion(&input)?; let (output, tool_results) = if input.stream() { - call_chat_completions_streaming(&input, client.as_ref(), config, abort_signal.clone()) - .await? + call_chat_completions_streaming(&input, client.as_ref(), abort_signal.clone()).await? } else { - call_chat_completions(&input, client.as_ref(), config).await? + call_chat_completions(&input, false, client.as_ref()).await? }; config .write() -- cgit v1.2.3