mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-29 08:31:48 -05:00
refac/fix: system prompt duplication
This commit is contained in:
1 parent
6c4deed37a
commit
a1fc99c66f
3 files changed
+24
-5
No files matched your search
@@ -1004,7 +1004,7 @@ async def process_chat_payload(request, form_data, user, metadata, model):
|
||||
if system_message:
|
||||
try:
|
||||
form_data = apply_system_prompt_to_body(
|
||||
system_message.get("content"), form_data, metadata, user
|
||||
system_message.get("content"), form_data, metadata, user, replace=True
|
||||
)
|
||||
except:
|
||||
pass
|
||||
|
||||
Reference in new issue
Block a user