Skip to main content

run_with

Function run_with 

Source
pub async fn run_with(
    force: bool,
    path: &Path,
    prompt: &mut impl PromptSource,
    hf: &mut impl HfTreeFetcher,
) -> Result<()>
Expand description

Drives the interactive flow against an arbitrary PromptSource. The flow short-circuits on existing files when force == false so an accidental re-run doesn’t burn through prompts before bailing. hf is the HuggingFace tree-listing client used to discover GGUF files for mistralrs model-id configs; tests pass a stub.