diff options
| author | sigoden <sigoden@gmail.com> | 2024-05-14 12:43:16 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-14 12:43:16 +0800 |
| commit | 79d0bba640d954cd3e6acd7f4e83900eb9d56a1c (patch) | |
| tree | e266ca283735b91bc2964ec4040b088cf7b865ed /src/repl/mod.rs | |
| parent | 5284a18248bb8e48eaa4a1e6ddcf73d944d23783 (diff) | |
| download | aichat-79d0bba640d954cd3e6acd7f4e83900eb9d56a1c.tar.gz | |
feat: allow binding model to the role (#505)
Diffstat (limited to 'src/repl/mod.rs')
| -rw-r--r-- | src/repl/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/repl/mod.rs b/src/repl/mod.rs index 743cf69..5c42d93 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -163,6 +163,9 @@ impl Repl { ".model" => match args { Some(name) => { self.config.write().set_model(name)?; + if self.config.read().state().is_normal() { + self.config.write().set_model_id(); + } } None => println!("Usage: .model <name>"), }, |
