From 740f4060f1272063ec89f2b93ed334d3ed1cbfe4 Mon Sep 17 00:00:00 2001 From: sigoden Date: Tue, 29 Oct 2024 14:31:04 +0800 Subject: fix: unexpected Ctrl-C/Ctrl-D handling in non-stream REPL Chat (#957) --- src/repl/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/repl') diff --git a/src/repl/mod.rs b/src/repl/mod.rs index b392eb4..c08afc3 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -660,7 +660,7 @@ async fn ask( let (output, tool_results) = if input.stream() { call_chat_completions_streaming(&input, client.as_ref(), abort_signal.clone()).await? } else { - call_chat_completions(&input, false, client.as_ref()).await? + call_chat_completions(&input, false, client.as_ref(), abort_signal.clone()).await? }; config .write() -- cgit v1.2.3