Skip to main content

normalize_prompt

Function normalize_prompt 

Source
pub fn normalize_prompt(
    images: Vec<ImageContent>,
    auto_resize: bool,
    limits: Option<&ImageResize>,
) -> (Vec<ImageContent>, Vec<String>)
Expand description

pi’s _normalizePromptImages: a prompt’s images processed for the model, with pi’s notes, which include the omission note of each image that fails.