From 994f17b430f6ce8b068370a851e973f4f5f4e0d0 Mon Sep 17 00:00:00 2001 From: silentoplayz <50341825+silentoplayz@users.noreply.github.com> Date: Thu, 8 May 2025 07:31:51 +0000 Subject: [PATCH] Update config.py Update DEFAULT_TITLE_GENERATION_PROMPT_TEMPLATE --- backend/open_webui/config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/open_webui/config.py b/backend/open_webui/config.py index f213dcf5e..cf5aa6324 100644 --- a/backend/open_webui/config.py +++ b/backend/open_webui/config.py @@ -1364,6 +1364,9 @@ Generate a concise, 3-5 word title with an emoji summarizing the chat history. - Use emojis that enhance understanding of the topic, but avoid quotation marks or special formatting. - Write the title in the chat's primary language; default to English if multilingual. - Prioritize accuracy over excessive creativity; keep it clear and simple. +- Your entire response must consist solely of the JSON object, without any introductory or concluding text. +- The output must be a single, raw JSON object, without any markdown code fences or other encapsulating text. +- Ensure no conversational text, affirmations, or explanations precede or follow the raw JSON output, as this will cause direct parsing failure. ### Output: JSON format: { "title": "your concise title here" } ### Examples: