diff --git a/crates/llm-base/src/loader.rs b/crates/llm-base/src/loader.rs index cb2356d8..c19fcd42 100644 --- a/crates/llm-base/src/loader.rs +++ b/crates/llm-base/src/loader.rs @@ -338,7 +338,9 @@ pub enum LoadError { /// There is insufficient information to guess the model architecture from the provided file. /// /// A model architecture must be provided to load the model. - #[error("could not guess model architecture from {path:?}")] + #[error( + "could not guess model architecture from {path:?}. Please provide a model architecture." + )] MissingModelArchitecture { /// The path that failed. path: PathBuf, diff --git a/crates/llm/src/lib.rs b/crates/llm/src/lib.rs index 291503a5..e583967c 100644 --- a/crates/llm/src/lib.rs +++ b/crates/llm/src/lib.rs @@ -149,7 +149,7 @@ macro_rules! define_models { )* _ => Err(UnsupportedModelArchitecture(format!( - "{s} is not a supported model architecture" + "{s} is not one of supported model architectures: {:?}", ModelArchitecture::ALL ))), } }