summaryrefslogtreecommitdiffstats
path: root/src/repl
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-03-06 16:35:51 +0800
committersigoden <sigoden@gmail.com>2023-03-06 16:35:51 +0800
commitc12ae0275108acbbb124a41ff936b441723ae625 (patch)
tree1b4ed2a76d2c3518ff817770ee620ba1663c13ed /src/repl
parentf73f45ac9b9041fe9c3c1a10e3757523553a05b8 (diff)
downloadaichat-c12ae0275108acbbb124a41ff936b441723ae625.tar.gz
chore: improve code by renameing some function
Diffstat (limited to 'src/repl')
-rw-r--r--src/repl/handler.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repl/handler.rs b/src/repl/handler.rs
index 21c49a8..40ce101 100644
--- a/src/repl/handler.rs
+++ b/src/repl/handler.rs
@@ -76,7 +76,7 @@ impl ReplCmdHandler {
ReplyStreamHandler::new(None, self.ctrlc.clone())
};
self.client
- .acquire_stream(&input, prompt, &mut stream_handler)?;
+ .send_message_streaming(&input, prompt, &mut stream_handler)?;
let buffer = stream_handler.get_buffer();
self.config.borrow().save_message(
self.state.borrow_mut().save_file.as_mut(),