refactor: change error message of the model does not support vision (#568)

pull/570/head
sigoden 3 weeks ago committed by GitHub
parent ce8d6d750d
commit 171a46eee2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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)?;

Loading…
Cancel
Save