fix: enable vision support for llamacpp provider (#3907)

The llamacpp provider was instantiated with vision disabled by default, causing image transfers from Telegram to fail. Use new_with_vision() with vision enabled, matching the behavior of other compatible providers.

Fixes #3802
This commit is contained in:
Argenis 2026-03-18 15:14:57 -04:00 committed by Roman Tataurov
parent f44c3515d1
commit ba7d371df4
No known key found for this signature in database
GPG Key ID: 70A51EF3185C334B

View File

@ -1320,11 +1320,12 @@ fn create_provider_with_url_and_options(
.map(str::trim)
.filter(|value| !value.is_empty())
.unwrap_or("llama.cpp");
Ok(compat(OpenAiCompatibleProvider::new(
Ok(compat(OpenAiCompatibleProvider::new_with_vision(
"llama.cpp",
base_url,
Some(llama_cpp_key),
AuthStyle::Bearer,
true,
)))
}
"sglang" => {