diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/model.rs | 4 | ||||
| -rw-r--r-- | src/config/input.rs | 3 |
2 files changed, 0 insertions, 7 deletions
diff --git a/src/client/model.rs b/src/client/model.rs index 60320cb..4b0457f 100644 --- a/src/client/model.rs +++ b/src/client/model.rs @@ -178,10 +178,6 @@ impl Model { self.data.max_output_tokens } - pub fn supports_vision(&self) -> bool { - self.data.supports_vision - } - pub fn no_stream(&self) -> bool { self.data.no_stream } 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); |
