Merge pull request #10864 from kurtdami/perplexity_integration

feat: add perplexity integration to web search
This commit is contained in:
Timothy Jaeryang Baek
2025-02-27 13:51:03 -08:00
committed by GitHub
5 changed files with 122 additions and 2 deletions

View File

@@ -29,7 +29,8 @@
'tavily',
'jina',
'bing',
'exa'
'exa',
'perplexity'
];
let youtubeLanguage = 'en';
@@ -361,6 +362,17 @@
/>
</div>
</div>
{:else if webConfig.search.engine === 'perplexity'}
<div>
<div class=" self-center text-xs font-medium mb-1">
{$i18n.t('Perplexity API Key')}
</div>
<SensitiveInput
placeholder={$i18n.t('Enter Perplexity API Key')}
bind:value={webConfig.search.perplexity_api_key}
/>
</div>
{:else if webConfig.search.engine === 'bing'}
<div class="mb-2.5 flex w-full flex-col">
<div>