From 869b9b994d031206aa2132e0b65ffe1caa8fcc77 Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Mon, 23 Jun 2025 08:27:15 -0700 Subject: [PATCH] Perplexity: enable search context size --- src/modules/llms/server/openai/models/perplexity.models.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/llms/server/openai/models/perplexity.models.ts b/src/modules/llms/server/openai/models/perplexity.models.ts index 664966e1c..32b6cab8e 100644 --- a/src/modules/llms/server/openai/models/perplexity.models.ts +++ b/src/modules/llms/server/openai/models/perplexity.models.ts @@ -12,7 +12,8 @@ const _knownPerplexityChatModels: ModelDescriptionSchema[] = [ contextWindow: 128000, interfaces: [LLM_IF_OAI_Chat, LLM_IF_OAI_Reasoning, LLM_IF_Tools_WebSearch], parameterSpecs: [ - { paramId: 'llmVndOaiReasoningEffort' }, // REUSE! + { paramId: 'llmVndOaiReasoningEffort', initialValue: 'medium' }, // REUSE! + { paramId: 'llmVndOaiWebSearchContext', initialValue: 'low' }, // REUSE! { paramId: 'llmVndPerplexitySearchMode' }, { paramId: 'llmVndPerplexityDateFilter' }, ], @@ -31,6 +32,7 @@ const _knownPerplexityChatModels: ModelDescriptionSchema[] = [ contextWindow: 128000, interfaces: [LLM_IF_OAI_Chat, LLM_IF_OAI_Reasoning, LLM_IF_Tools_WebSearch], parameterSpecs: [ + { paramId: 'llmVndOaiWebSearchContext', initialValue: 'low' }, // REUSE! { paramId: 'llmVndPerplexitySearchMode' }, { paramId: 'llmVndPerplexityDateFilter' }, ], @@ -47,6 +49,7 @@ const _knownPerplexityChatModels: ModelDescriptionSchema[] = [ contextWindow: 128000, interfaces: [LLM_IF_OAI_Chat, LLM_IF_OAI_Reasoning, LLM_IF_Tools_WebSearch], parameterSpecs: [ + { paramId: 'llmVndOaiWebSearchContext', initialValue: 'low' }, // REUSE! { paramId: 'llmVndPerplexitySearchMode' }, { paramId: 'llmVndPerplexityDateFilter' }, ], @@ -66,6 +69,7 @@ const _knownPerplexityChatModels: ModelDescriptionSchema[] = [ maxCompletionTokens: 8000, interfaces: [LLM_IF_OAI_Chat, LLM_IF_Tools_WebSearch], parameterSpecs: [ + { paramId: 'llmVndOaiWebSearchContext', initialValue: 'low' }, // REUSE! { paramId: 'llmVndPerplexitySearchMode' }, { paramId: 'llmVndPerplexityDateFilter' }, ], @@ -82,6 +86,7 @@ const _knownPerplexityChatModels: ModelDescriptionSchema[] = [ contextWindow: 128000, interfaces: [LLM_IF_OAI_Chat, LLM_IF_Tools_WebSearch], parameterSpecs: [ + { paramId: 'llmVndOaiWebSearchContext', initialValue: 'low' }, // REUSE! { paramId: 'llmVndPerplexitySearchMode' }, { paramId: 'llmVndPerplexityDateFilter' }, ],