diff options
| author | sigoden <sigoden@gmail.com> | 2025-01-21 21:54:12 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-21 21:54:12 +0800 |
| commit | df4440a2a049d26c61a540d3254cd885345fbd6c (patch) | |
| tree | caaaea31c7b84d49c26c39d6cfc9d9de7f07720d /src/config | |
| parent | b666fc6bd24a039d2d23a312fa453d0fe3ed79ab (diff) | |
| download | aichat-df4440a2a049d26c61a540d3254cd885345fbd6c.tar.gz | |
refactor: no gaurd vision model (#1111)
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/input.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/config/input.rs b/src/config/input.rs index 618bd33..58c0065 100644 --- a/src/config/input.rs +++ b/src/config/input.rs @@ -249,9 +249,6 @@ impl Input { model: &Model, stream: bool, ) -> Result<ChatCompletionsData> { - if !self.medias.is_empty() && !model.supports_vision() { - bail!("The current model does not support vision. Is the model configured with `supports_vision: true`?"); - } let mut messages = self.build_messages()?; if model.no_system_message() { patch_system_message(&mut messages); |
