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";
}[];
}
readonly messages?: {
message: {
content?: string;
role: "system" | "user" | "assistant";
}[];
}
Source§readonly model?:
| "r1-1776"
| "sonar"
| "sonar-deep-research"
| "sonar-pro"
| "sonar-reasoning"
| "sonar-reasoning-pro"
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 options?: {
frequencyPenalty?: number;
maxTokens?: number;
presencePenalty?: number;
returnImages?: boolean;
returnRelatedQuestions?: boolean;
searchDomainFilter?: string;
searchRecency?: "hour" | "day" | "week" | "month";
temperature?: number;
topK?: number;
topP?: number;
}
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: {}
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}