adding image support for gif and webp (#11237)

Adds image support for gif and webp images. Tested using webp and gif
(both single and multi image gif files)
This commit is contained in:
natea-oai
2026-02-09 14:47:22 -08:00
committed by GitHub
parent 373f5467ef
commit ed977dbeda
4 changed files with 37 additions and 4 deletions
@@ -1540,7 +1540,11 @@ impl ChatComposer {
fn is_image_path(path: &str) -> bool {
let lower = path.to_ascii_lowercase();
lower.ends_with(".png") || lower.ends_with(".jpg") || lower.ends_with(".jpeg")
lower.ends_with(".png")
|| lower.ends_with(".jpg")
|| lower.ends_with(".jpeg")
|| lower.ends_with(".gif")
|| lower.ends_with(".webp")
}
fn trim_text_elements(