Skip to main content

has_supported_image_extension

Function has_supported_image_extension 

Source
pub fn has_supported_image_extension(path: &Path) -> bool
Expand description

Validates that the image file path has a provider-supported extension.

BMP/TIFF/SVG are intentionally excluded: no LLM vision API accepts them, and sending them produces 400 invalid_value errors.