mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 19:37:47 +01:00
fix: web search config
This commit is contained in:
@@ -35,12 +35,10 @@
|
|||||||
|
|
||||||
const submitHandler = async () => {
|
const submitHandler = async () => {
|
||||||
// Convert domain filter string to array before sending
|
// Convert domain filter string to array before sending
|
||||||
if (webConfig?.search?.domain_filter_list) {
|
webConfig.search.domain_filter_list = webConfig.search.domain_filter_list
|
||||||
webConfig.search.domain_filter_list = webConfig.search.domain_filter_list
|
.split(',')
|
||||||
.split(',')
|
.map((domain) => domain.trim())
|
||||||
.map(domain => domain.trim())
|
.filter((domain) => domain.length > 0);
|
||||||
.filter(domain => domain.length > 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
const res = await updateRAGConfig(localStorage.token, {
|
const res = await updateRAGConfig(localStorage.token, {
|
||||||
web: webConfig,
|
web: webConfig,
|
||||||
@@ -354,7 +352,9 @@
|
|||||||
|
|
||||||
<input
|
<input
|
||||||
class="w-full rounded-lg py-2 px-4 text-sm bg-gray-50 dark:text-gray-300 dark:bg-gray-850 outline-none"
|
class="w-full rounded-lg py-2 px-4 text-sm bg-gray-50 dark:text-gray-300 dark:bg-gray-850 outline-none"
|
||||||
placeholder={$i18n.t('Enter domains separated by commas (e.g., example.com,site.org)')}
|
placeholder={$i18n.t(
|
||||||
|
'Enter domains separated by commas (e.g., example.com,site.org)'
|
||||||
|
)}
|
||||||
bind:value={webConfig.search.domain_filter_list}
|
bind:value={webConfig.search.domain_filter_list}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user