diff options
| author | sigoden <sigoden@gmail.com> | 2024-06-06 05:27:21 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-06 05:27:21 +0800 |
| commit | c26594c3c85fb99ad5b0db1c535b337585d3c103 (patch) | |
| tree | 1829b2b1eee599fd835f2eb6f4751097c145b802 /src/repl | |
| parent | 171a46eee2afcb92bcbbd6a11b52ebc82f2476db (diff) | |
| download | aichat-c26594c3c85fb99ad5b0db1c535b337585d3c103.tar.gz | |
refactor: config refinement (#570)
Diffstat (limited to 'src/repl')
| -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 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(); } } |
