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 | |
| parent | b666fc6bd24a039d2d23a312fa453d0fe3ed79ab (diff) | |
| download | aichat-df4440a2a049d26c61a540d3254cd885345fbd6c.tar.gz | |
refactor: no gaurd vision model (#1111)
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); |
