Explorar o código

Update config.py

Update DEFAULT_TITLE_GENERATION_PROMPT_TEMPLATE
silentoplayz hai 5 meses
pai
achega
994f17b430
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      backend/open_webui/config.py

+ 3 - 0
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: