{ await submitHandler(); saveHandler(); }} >
{$i18n.t('Web Search')}
{#if webConfig}
{#if webConfig.ENABLE_WEB_SEARCH_CONFIRMATION}
{/if}
{$i18n.t('Select a engine')}
{#each webSearchEngines as engine} {#if engine === 'duckduckgo' || engine === 'ddgs'}
DDGS
{:else if engine === 'serphouse'}
SERPHouse
{:else}
{engine}
{/if} {/each}
{#if webConfig.WEB_SEARCH_ENGINE !== ''} {#if webConfig.WEB_SEARCH_ENGINE === 'ollama_cloud'}
{$i18n.t('Ollama Cloud API Key')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'perplexity_search'}
{$i18n.t('Perplexity Search API URL')}
{$i18n.t('Perplexity API Key')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'searxng'}
{$i18n.t('Searxng Query URL')}
{$i18n.t('Searxng search language (all, en, es, de, fr, etc.)')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'yacy'}
{$i18n.t('Yacy Instance URL')}
{$i18n.t('Yacy Username')}
{$i18n.t('Yacy Password')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'google_pse'}
{$i18n.t('Google PSE API Key')}
{$i18n.t('Google PSE Engine Id')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'brave'}
{$i18n.t('Brave Search API Key')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'brave_llm_context'}
{$i18n.t('Brave Search API Key')}
{$i18n.t('Context Tokens')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'kagi'}
{$i18n.t('Kagi Search API Key')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'mojeek'}
{$i18n.t('Mojeek Search API Key')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'bocha'}
{$i18n.t('Bocha Search API Key')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'serpstack'}
{$i18n.t('Serpstack API Key')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'serper'}
{$i18n.t('Serper API Key')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'serphouse'}
{$i18n.t('SERPHouse API Key')}
{$i18n.t('SERPHouse Domain')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'serply'}
{$i18n.t('Serply API Key')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'tavily'}
{$i18n.t('Tavily API Key')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'searchapi'}
{$i18n.t('SearchApi API Key')}
{$i18n.t('SearchApi Engine')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'serpapi'}
{$i18n.t('SerpApi API Key')}
{$i18n.t('SerpApi Engine')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'jina'}
{$i18n.t('Jina API Base URL')}
{$i18n.t('Jina API Key')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'bing'}
{$i18n.t('Bing Search V7 Endpoint')}
{$i18n.t('Bing Search V7 Subscription Key')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'exa'}
{$i18n.t('Exa API Key')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'perplexity'}
{$i18n.t('Perplexity API Key')}
{$i18n.t('Perplexity Model')}
{$i18n.t('Sonar')}
{$i18n.t('Sonar Pro')}
{$i18n.t('Sonar Reasoning')}
{$i18n.t('Sonar Reasoning Pro')}
{$i18n.t('Sonar Deep Research')}
{$i18n.t('Perplexity Search Context Usage')}
{$i18n.t('Low')}
{$i18n.t('Medium')}
{$i18n.t('High')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'microsoft_web_iq'}
{$i18n.t('Microsoft Web IQ API Base URL')}
{$i18n.t('Microsoft Web IQ API Key')}
{$i18n.t('Language')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'sougou'}
{$i18n.t('Sougou Search API sID')}
{$i18n.t('Sougou Search API SK')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'firecrawl'}
{$i18n.t('Firecrawl API Base URL')}
{$i18n.t('Firecrawl API Key')}
{$i18n.t('Firecrawl Timeout (s)')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'external'}
{$i18n.t('External Web Search URL')}
{$i18n.t('External Web Search API Key')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'yandex'}
{$i18n.t('Yandex Web Search URL')}
{$i18n.t('Yandex Web Search API Key')}
{$i18n.t('Yandex Web Search config')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'youcom'}
{$i18n.t('You.com API Key')}
{:else if webConfig.WEB_SEARCH_ENGINE === 'linkup'}
{$i18n.t('Linkup API Key')}
{$i18n.t('Parameters')}
{/if} {#if webConfig.WEB_SEARCH_ENGINE === 'duckduckgo'}
{$i18n.t('DDGS Backend')}
{$i18n.t('Auto (Random)')}
{$i18n.t('Bing')}
{$i18n.t('Brave')}
{$i18n.t('DuckDuckGo')}
{$i18n.t('Google')}
{$i18n.t('Grokipedia')}
{$i18n.t('Mojeek')}
{$i18n.t('Wikipedia')}
{$i18n.t('Yahoo')}
{$i18n.t('Yandex')}
{/if} {/if} {#if webConfig.ENABLE_WEB_SEARCH}
{$i18n.t('Search Result Count')}
{$i18n.t('Concurrent Requests')}
{/if}
{$i18n.t('Default')}
{#each webLoaderEngines as engine}
{engine}
{/each}
{#if webConfig.WEB_LOADER_ENGINE === '' || webConfig.WEB_LOADER_ENGINE === 'safe_web'}
{:else if webConfig.WEB_LOADER_ENGINE === 'playwright'}
{$i18n.t('Playwright WebSocket URL')}
{$i18n.t('Playwright Timeout (ms)')}
{:else if webConfig.WEB_LOADER_ENGINE === 'firecrawl' && webConfig.WEB_SEARCH_ENGINE !== 'firecrawl'}
{$i18n.t('Firecrawl API Base URL')}
{$i18n.t('Firecrawl API Key')}
{:else if webConfig.WEB_LOADER_ENGINE === 'tavily'}
{$i18n.t('Tavily Extract Depth')}
{#if webConfig.WEB_SEARCH_ENGINE !== 'tavily'}
{$i18n.t('Tavily API Key')}
{/if}
{:else if webConfig.WEB_LOADER_ENGINE === 'microsoft_web_iq'}
{#if webConfig.WEB_SEARCH_ENGINE !== 'microsoft_web_iq'}
{$i18n.t('Microsoft Web IQ API Base URL')}
{$i18n.t('Microsoft Web IQ API Key')}
{$i18n.t('Language')}
{/if}
{:else if webConfig.WEB_LOADER_ENGINE === 'external'}
{$i18n.t('External Web Loader URL')}
{$i18n.t('External Web Loader API Key')}
{/if}
{/if}
{$i18n.t('Save')}