feat: Adding You.com as a web search provider (#21599)
* Add ydc.py provider implementation * Add PersistentConfig entry for you.com * Add Youcom search function import * Update you.com configuration * Add you.com as a web search engine option in frontend * Add YOUCOM_API_KEY to main.py
This commit is contained in:
@@ -37,7 +37,8 @@
|
||||
'sougou',
|
||||
'firecrawl',
|
||||
'external',
|
||||
'yandex'
|
||||
'yandex',
|
||||
'youcom'
|
||||
];
|
||||
let webLoaderEngines = ['playwright', 'firecrawl', 'tavily', 'external'];
|
||||
|
||||
@@ -786,6 +787,19 @@
|
||||
</Tooltip>
|
||||
</div>
|
||||
</div>
|
||||
{:else if webConfig.WEB_SEARCH_ENGINE === 'youcom'}
|
||||
<div class="mb-2.5 flex w-full flex-col">
|
||||
<div>
|
||||
<div class=" self-center text-xs font-medium mb-1">
|
||||
{$i18n.t('You.com API Key')}
|
||||
</div>
|
||||
|
||||
<SensitiveInput
|
||||
placeholder={$i18n.t('Enter You.com API Key')}
|
||||
bind:value={webConfig.YOUCOM_API_KEY}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{#if webConfig.WEB_SEARCH_ENGINE === 'duckduckgo'}
|
||||
|
||||
Reference in New Issue
Block a user