summaryrefslogtreecommitdiffstats
path: root/src/repl/mod.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-06-06 05:27:21 +0800
committerGitHub <noreply@github.com>2024-06-06 05:27:21 +0800
commitc26594c3c85fb99ad5b0db1c535b337585d3c103 (patch)
tree1829b2b1eee599fd835f2eb6f4751097c145b802 /src/repl/mod.rs
parent171a46eee2afcb92bcbbd6a11b52ebc82f2476db (diff)
downloadaichat-c26594c3c85fb99ad5b0db1c535b337585d3c103.tar.gz
refactor: config refinement (#570)
Diffstat (limited to 'src/repl/mod.rs')
-rw-r--r--src/repl/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repl/mod.rs b/src/repl/mod.rs
index 291bcd2..bf5fd8e 100644
--- a/src/repl/mod.rs
+++ b/src/repl/mod.rs
@@ -200,7 +200,7 @@ impl Repl {
".model" => match args {
Some(name) => {
self.config.write().set_model(name)?;
- if self.config.read().state().is_empty() {
+ if !self.config.read().has_role_or_session() {
self.config.write().set_model_id();
}
}