mirror of
https://github.com/open-webui/open-webui
synced 2025-06-23 02:16:52 +00:00
fix
This commit is contained in:
parent
9348c05f1a
commit
888b468576
@ -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 = (
|
||||
|
Loading…
Reference in New Issue
Block a user