Skip to main content

assess

Function assess 

Source
pub fn assess(
    prompt_characters: i64,
    window: i64,
    requested_max_tokens: Option<i64>,
) -> Verdict
Expand description

Decide whether a prompt of prompt_characters fits window, and clamp the completion length to the space that remains.