浏览代码

Small Fix variable ssl_verification -> web_loader_ssl_verification (following python entity)

When changed via the web interface in Admin's WebSearch, the bypass option is not being persisted.
This change adjusts it to the same name as the one related in the python entity.
Davi Sclifo Zucon 6 月之前
父节点
当前提交
5306b49be0
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      backend/open_webui/apps/retrieval/main.py
  2. 2 2
      src/lib/components/admin/Settings/WebSearch.svelte

+ 2 - 2
backend/open_webui/apps/retrieval/main.py

@@ -428,7 +428,7 @@ async def get_rag_config(user=Depends(get_admin_user)):
             "translation": app.state.YOUTUBE_LOADER_TRANSLATION,
             "translation": app.state.YOUTUBE_LOADER_TRANSLATION,
         },
         },
         "web": {
         "web": {
-            "ssl_verification": app.state.config.ENABLE_RAG_WEB_LOADER_SSL_VERIFICATION,
+            "web_loader_ssl_verification": app.state.config.ENABLE_RAG_WEB_LOADER_SSL_VERIFICATION,
             "search": {
             "search": {
                 "enabled": app.state.config.ENABLE_RAG_WEB_SEARCH,
                 "enabled": app.state.config.ENABLE_RAG_WEB_SEARCH,
                 "engine": app.state.config.RAG_WEB_SEARCH_ENGINE,
                 "engine": app.state.config.RAG_WEB_SEARCH_ENGINE,
@@ -592,7 +592,7 @@ async def update_rag_config(form_data: ConfigUpdateForm, user=Depends(get_admin_
             "translation": app.state.YOUTUBE_LOADER_TRANSLATION,
             "translation": app.state.YOUTUBE_LOADER_TRANSLATION,
         },
         },
         "web": {
         "web": {
-            "ssl_verification": app.state.config.ENABLE_RAG_WEB_LOADER_SSL_VERIFICATION,
+            "web_loader_ssl_verification": app.state.config.ENABLE_RAG_WEB_LOADER_SSL_VERIFICATION,
             "search": {
             "search": {
                 "enabled": app.state.config.ENABLE_RAG_WEB_SEARCH,
                 "enabled": app.state.config.ENABLE_RAG_WEB_SEARCH,
                 "engine": app.state.config.RAG_WEB_SEARCH_ENGINE,
                 "engine": app.state.config.RAG_WEB_SEARCH_ENGINE,

+ 2 - 2
src/lib/components/admin/Settings/WebSearch.svelte

@@ -314,12 +314,12 @@
 						<button
 						<button
 							class="p-1 px-3 text-xs flex rounded transition"
 							class="p-1 px-3 text-xs flex rounded transition"
 							on:click={() => {
 							on:click={() => {
-								webConfig.ssl_verification = !webConfig.ssl_verification;
+								webConfig.web_loader_ssl_verification = !webConfig.web_loader_ssl_verification;
 								submitHandler();
 								submitHandler();
 							}}
 							}}
 							type="button"
 							type="button"
 						>
 						>
-							{#if webConfig.ssl_verification === true}
+							{#if webConfig.web_loader_ssl_verification === true}
 								<span class="ml-2 self-center">{$i18n.t('On')}</span>
 								<span class="ml-2 self-center">{$i18n.t('On')}</span>
 							{:else}
 							{:else}
 								<span class="ml-2 self-center">{$i18n.t('Off')}</span>
 								<span class="ml-2 self-center">{$i18n.t('Off')}</span>