mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #12806] [MERGED] fix: Resolve small bugs on updated web/rag settings #46067
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/12806
Author: @tth37
Created: 4/13/2025
Status: ✅ Merged
Merged: 4/13/2025
Merged by: @tjbck
Base:
dev← Head:fix_web_rag_settings📝 Commits (2)
8d53f1efix: small bugs on updated web/rag settingsdb9d4eaformat📊 Changes
2 files changed (+15 additions, -7 deletions)
View changed files
📝
backend/open_webui/routers/retrieval.py(+3 -3)📝
src/lib/components/admin/Settings/WebSearch.svelte(+12 -4)📄 Description
This PR addresses minor issues identified after recent updates to the web search / rag configuration settings.
Backend (
routers/retrieval.py):form_data.enable_google_drive_integrationtoform_data.ENABLE_GOOGLE_DRIVE_INTEGRATION.ConfigFormwas updated to uppercase, but the retrieval router was still using the lowercase version. (Potential 500 error)request.app.state.config.YOUTUBE_LOADER_TRANSLATIONtorequest.app.state.YOUTUBE_LOADER_TRANSLATION.app.stateobject rather than within the nestedconfigattribute. (Potential 500 error)Frontend (
WebSearch.svelte):requiredattribute from the web loader selector input.required, users could not submit the form if the default value ("safe_web") was intended.webConfig.YOUTUBE_LOADER_LANGUAGEto a list data type before submitting the form update.list[str], similar to domain filter list. (Potential 4xx error)webConfig.WEB_SEARCH_DOMAIN_FILTER_LIST.join(', ')to.join(',').🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.