From 79d0bba640d954cd3e6acd7f4e83900eb9d56a1c Mon Sep 17 00:00:00 2001 From: sigoden Date: Tue, 14 May 2024 12:43:16 +0800 Subject: feat: allow binding model to the role (#505) --- src/repl/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/repl/mod.rs') 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 "), }, -- cgit v1.2.3