• Fix common LLM markup mistakes for a provider.

    Closes opening tags that should be self-closing (e.g. the LLM writes <expression value="happy"> instead of <expression value="happy"/> — or <expr type="sound" label="laugh"> instead of <expr type="sound" label="laugh"/>).

    Parameters

    • provider: string
    • text: string

    Returns string