summaryrefslogtreecommitdiffstats
path: root/src/repl
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-03-20 22:51:51 +0800
committerGitHub <noreply@github.com>2023-03-20 22:51:51 +0800
commit19ce62ab769b74a8e417cd1213b7711a5ed55638 (patch)
treea47d48798710855b3faca84e54d4e3ffb8776c2f /src/repl
parent28f019b72c1027207ec8dc82844401512712464d (diff)
downloadaichat-19ce62ab769b74a8e417cd1213b7711a5ed55638.tar.gz
feat: check token usage in dry_run mode (#82)
Diffstat (limited to 'src/repl')
-rw-r--r--src/repl/handler.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/repl/handler.rs b/src/repl/handler.rs
index 014a851..8d51439 100644
--- a/src/repl/handler.rs
+++ b/src/repl/handler.rs
@@ -51,6 +51,7 @@ impl ReplCmdHandler {
self.reply.borrow_mut().clear();
return Ok(());
}
+ self.config.read().maybe_print_send_tokens(&input);
let wg = WaitGroup::new();
let ret = render_stream(
&input,