diff options
| author | sigoden <sigoden@gmail.com> | 2024-06-05 21:21:20 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-05 21:21:20 +0800 |
| commit | 171a46eee2afcb92bcbbd6a11b52ebc82f2476db (patch) | |
| tree | 35407b2870ea764c04c218a05303e9150b7401b4 /src/config | |
| parent | ce8d6d750d2f9522a0206d74e996fb45c5e521b6 (diff) | |
| download | aichat-171a46eee2afcb92bcbbd6a11b52ebc82f2476db.tar.gz | |
refactor: change error message of the model does not support vision (#568)
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/input.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<ChatCompletionsData> { 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)?; |
