summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/model.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/model.rs b/src/client/model.rs
index acf04a3..17646c9 100644
--- a/src/client/model.rs
+++ b/src/client/model.rs
@@ -45,21 +45,21 @@ impl Model {
pub fn retrieve_chat(config: &Config, model_id: &str) -> Result<Self> {
match Self::find(&list_chat_models(config), model_id) {
Some(v) => Ok(v),
- None => bail!("Invalid chat model '{model_id}'"),
+ None => bail!("Unknown chat model '{model_id}'"),
}
}
pub fn retrieve_embedding(config: &Config, model_id: &str) -> Result<Self> {
match Self::find(&list_embedding_models(config), model_id) {
Some(v) => Ok(v),
- None => bail!("Invalid embedding model '{model_id}'"),
+ None => bail!("Unknown embedding model '{model_id}'"),
}
}
pub fn retrieve_reranker(config: &Config, model_id: &str) -> Result<Self> {
match Self::find(&list_reranker_models(config), model_id) {
Some(v) => Ok(v),
- None => bail!("Invalid reranker model '{model_id}'"),
+ None => bail!("Unknown reranker model '{model_id}'"),
}
}