llmwire - v2.2.0
    Preparing search index...

    Function parseJson

    • Parses a JSON answer, tolerating the ```json fence a model adds despite being told not to.

      Parameters

      • text: string

      Returns { value: unknown } | { error: string }