Timothy Jaeryang Baek 4 месяцев назад
Родитель
Сommit
3f71fa641f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      backend/open_webui/routers/channels.py

+ 1 - 1
backend/open_webui/routers/channels.py

@@ -344,7 +344,7 @@ async def model_response_handler(request, channel, message, user):
                     "role": "system",
                     "content": f"You are {model.get('name', model_id)}, participating in a threaded conversation. Be concise and conversational."
                     + (
-                        f"Here's the thread history:\n\n\n{''.join([f'{msg}\n\n' for msg in thread_history])}\n\n\nContinue the conversation naturally as {model.get('name', model_id)}, addressing the most recent message while being aware of the full context."
+                        f"Here's the thread history:\n\n\n{'\n\n'.join([f'{msg}' for msg in thread_history])}\n\n\nContinue the conversation naturally as {model.get('name', model_id)}, addressing the most recent message while being aware of the full context."
                         if thread_history
                         else ""
                     ),