Sanity Library Reference Docs
    Preparing search index...

    Interface PromptTextResponseBeta

    interface PromptTextResponse {
        format?: "text";
    }
    Index

    Properties

    Properties

    format?: "text"

    When true, the response body will be json according to the instruction. When false, the response is the raw text response to the instruction.

    Note: In addition to setting this to true, instruction MUST include the word 'JSON', or 'json' for this to work.