Skip to main content

refine_markdown

Function refine_markdown 

Source
pub fn refine_markdown(
    cfg: &AiConfig,
    markdown: &str,
    options: &RefineAiOptions,
) -> Result<String, Error>
Expand description

Rewrites markdown with a generative pass, per options.

Returns the model’s response verbatim (trimmed of leading/trailing whitespace). Callers that need a lossless/idempotent guarantee should run crate::refine::refine (feature refine) instead, or in addition, before this.