From a7518937f0ea14db60cf0308aa43eee84a9152df Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Mon, 14 Apr 2025 13:34:09 -0700 Subject: [PATCH] LLMs: Perplexity: add Deep Research --- .../server/openai/models/perplexity.models.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/modules/llms/server/openai/models/perplexity.models.ts b/src/modules/llms/server/openai/models/perplexity.models.ts index d0858b600..45c49bd23 100644 --- a/src/modules/llms/server/openai/models/perplexity.models.ts +++ b/src/modules/llms/server/openai/models/perplexity.models.ts @@ -4,6 +4,21 @@ import { LLM_IF_OAI_Chat, LLM_IF_OAI_Reasoning } from '~/common/stores/llms/llms const _knownPerplexityChatModels: ModelDescriptionSchema[] = [ + // Deep Research Model + { + id: 'sonar-deep-research', + label: 'Sonar Deep Research 🌐', + description: 'Expert-level research model conducting exhaustive searches and generating comprehensive reports with 128k context window', + contextWindow: 128000, + interfaces: [LLM_IF_OAI_Chat, LLM_IF_OAI_Reasoning], + chatPrice: { + input: 2, + output: 8, + // reasoning: 3, // Special pricing for reasoning tokens + // Note: also has $5 per 1000 searches cost + }, + }, + // Current Perplexity Models { id: 'sonar-reasoning-pro',