From 171a46eee2afcb92bcbbd6a11b52ebc82f2476db Mon Sep 17 00:00:00 2001 From: sigoden Date: Wed, 5 Jun 2024 21:21:20 +0800 Subject: refactor: change error message of the model does not support vision (#568) --- src/config/input.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/config') diff --git a/src/config/input.rs b/src/config/input.rs index 56ae5ed..0406a5e 100644 --- a/src/config/input.rs +++ b/src/config/input.rs @@ -189,7 +189,7 @@ impl Input { stream: bool, ) -> Result { if !self.medias.is_empty() && !model.supports_vision() { - bail!("The current model does not support vision."); + bail!("The current model does not support vision. Is the model configured with `supports_vision: true`?"); } let messages = self.build_messages()?; self.config.read().model.guard_max_input_tokens(&messages)?; -- cgit v1.2.3