summaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-04-28 06:15:10 +0000
committersigoden <sigoden@gmail.com>2024-04-28 06:43:17 +0000
commit212ff1674eba9125fbffe914a63a4f364f550a80 (patch)
tree0f9c807850bb8fa44903e2461d1a8ab0c06f0c7b /src/config
parent7bda1eace29dde7c1c7ce5e8ab4bc911cfb90c3f (diff)
downloadaichat-212ff1674eba9125fbffe914a63a4f364f550a80.tar.gz
refactor: minor improvements
- config.example.yaml comments - `--serve` description - No model error
Diffstat (limited to 'src/config')
-rw-r--r--src/config/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs
index 7807204..56f3122 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -396,7 +396,7 @@ impl Config {
let models = list_models(self);
let model = Model::find(&models, value);
match model {
- None => bail!("Invalid model '{}'", value),
+ None => bail!("No model '{}'", value),
Some(model) => {
if let Some(session) = self.session.as_mut() {
session.set_model(model.clone())?;