Interface PerplexityNodeParameters

Source
interface PerplexityNodeParameters {
    messages?: {
        message: {
            content?: string;
            role: "system" | "user" | "assistant";
        }[];
    };
    model?: | "r1-1776"
    | "sonar"
    | "sonar-deep-research"
    | "sonar-pro"
    | "sonar-reasoning"
    | "sonar-reasoning-pro";
    operation?: "complete";
    options?: {
        frequencyPenalty?: number;
        maxTokens?: number;
        presencePenalty?: number;
        returnImages?: boolean;
        returnRelatedQuestions?: boolean;
        searchDomainFilter?: string;
        searchRecency?: "hour"
        | "day"
        | "week"
        | "month";
        temperature?: number;
        topK?: number;
        topP?: number;
    };
    simplify?: boolean;
}

Properties§

Source§

readonly messages?: {
    message: {
        content?: string;
        role: "system" | "user" | "assistant";
    }[];
}

Any optional system messages must be sent first, followed by alternating user and assistant messages Default: {"message":[{"role":"user","content":""}]} Type options: {"multipleValues":true,"sortable":true}

Source§

readonly model?:
    | "r1-1776"
    | "sonar"
    | "sonar-deep-research"
    | "sonar-pro"
    | "sonar-reasoning"
    | "sonar-reasoning-pro"

The model which will generate the completion Default: "r1-1776"

Source§

readonly operation?: "complete"

Default: "complete"

Source§

readonly options?: {
    frequencyPenalty?: number;
    maxTokens?: number;
    presencePenalty?: number;
    returnImages?: boolean;
    returnRelatedQuestions?: boolean;
    searchDomainFilter?: string;
    searchRecency?: "hour" | "day" | "week" | "month";
    temperature?: number;
    topK?: number;
    topP?: number;
}

Default: {}

Source§

readonly simplify?: boolean

Whether to return only essential fields (ID, citations, message)