diff options
| author | sigoden <sigoden@gmail.com> | 2024-10-29 14:31:04 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-29 14:31:04 +0800 |
| commit | 740f4060f1272063ec89f2b93ed334d3ed1cbfe4 (patch) | |
| tree | 7afe796777841202e14cb636ca49c956ad3e70f1 /src/repl/mod.rs | |
| parent | bf07cdf256e1e3008578972f5916a4d6763554f5 (diff) | |
| download | aichat-740f4060f1272063ec89f2b93ed334d3ed1cbfe4.tar.gz | |
fix: unexpected Ctrl-C/Ctrl-D handling in non-stream REPL Chat (#957)
Diffstat (limited to 'src/repl/mod.rs')
| -rw-r--r-- | src/repl/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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() |
