feat: Added Google PSE as an alternative web search provider (#65)
* Added Google PSE as an alternative web search tool * Removed unecessary comments * chore(ConfigManager): moved Google PSE input next to API key --------- Co-authored-by: AnotiaWang <anotia0202@gmail.com>
This commit is contained in:

committed by
GitHub

parent
651f445803
commit
5097c639d2
@ -91,6 +91,12 @@
|
||||
link: 'https://www.firecrawl.dev/app/api-keys',
|
||||
supportsCustomApiBase: true,
|
||||
},
|
||||
{
|
||||
label: 'Google PSE',
|
||||
value: 'google-pse',
|
||||
help: 'settings.webSearch.providers.google-pse.help',
|
||||
link: 'https://programmablesearchengine.google.com/', // Link to Google PSE console
|
||||
},
|
||||
])
|
||||
const tavilySearchTopicOptions = ['general', 'news', 'finance']
|
||||
const selectedAiProvider = computed(() =>
|
||||
@ -315,6 +321,26 @@
|
||||
:placeholder="$t('settings.webSearch.apiKey')"
|
||||
/>
|
||||
</UFormField>
|
||||
|
||||
<template v-if="config.webSearch.provider === 'google-pse'">
|
||||
<UFormField
|
||||
:label="
|
||||
$t('settings.webSearch.providers.google-pse.pseIdLabel')
|
||||
"
|
||||
required
|
||||
>
|
||||
<UInput
|
||||
v-model="config.webSearch.googlePseId"
|
||||
class="w-full"
|
||||
:placeholder="
|
||||
$t(
|
||||
'settings.webSearch.providers.google-pse.pseIdPlaceholder',
|
||||
)
|
||||
"
|
||||
/>
|
||||
</UFormField>
|
||||
</template>
|
||||
|
||||
<UFormField
|
||||
v-if="selectedWebSearchProvider?.supportsCustomApiBase"
|
||||
:label="$t('settings.webSearch.apiBase')"
|
||||
|
Reference in New Issue
Block a user