From 888b468576118103bb0664a5a7d21394915228ae Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 12 Apr 2025 23:00:34 -0700 Subject: [PATCH] fix --- backend/open_webui/routers/retrieval.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/open_webui/routers/retrieval.py b/backend/open_webui/routers/retrieval.py index 87f978767..8f89351ac 100644 --- a/backend/open_webui/routers/retrieval.py +++ b/backend/open_webui/routers/retrieval.py @@ -512,8 +512,8 @@ async def update_rag_config( ): # RAG settings request.app.state.config.RAG_TEMPLATE = ( - form_data.TEMPLATE - if form_data.TEMPLATE is not None + form_data.RAG_TEMPLATE + if form_data.RAG_TEMPLATE is not None else request.app.state.config.RAG_TEMPLATE ) request.app.state.config.TOP_K = (