refac/fix: system prompt duplication

This commit is contained in:
Timothy Jaeryang Baek
2025-10-02 02:57:54 -05:00
parent 6c4deed37a
commit a1fc99c66f
3 changed files with 24 additions and 5 deletions

View File

@@ -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