Skip to main content

reference_passes_through

Function reference_passes_through 

Source
pub fn reference_passes_through(
    source: Dialect,
    target: Dialect,
    image: bool,
    reference: &ResourceReference,
) -> bool
Expand description

Whether a media reference converted from source reaches target as a reference the upstream reads itself, so no bytes need fetching. Only URLs to dialects with a URL form for that media, and file IDs between the OpenAI dialects, survive conversion; every other reference is fetched. Tests pin this against what the direct transforms actually keep.