From 52010accc90e0afb23771d89910bf00164aed2b1 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 29 Jan 2025 20:11:37 -0800 Subject: [PATCH] refac --- backend/open_webui/config.py | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/backend/open_webui/config.py b/backend/open_webui/config.py index f65726c3c..d60f3d436 100644 --- a/backend/open_webui/config.py +++ b/backend/open_webui/config.py @@ -1101,24 +1101,20 @@ 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. - -### Examples: -- 📉 Stock Market Trends -- 🍪 Perfect Chocolate Chip Recipe -- Evolution of Music Streaming -- Remote Work Productivity Tips -- Artificial Intelligence in Healthcare -- 🎮 Video Game Development Insights - ### Output: JSON format: { "title": "your concise title here" } - +### Examples: +- { "title": "📉 Stock Market Trends" }, +- { "title": "🍪 Perfect Chocolate Chip Recipe" }, +- { "title": "Evolution of Music Streaming" }, +- { "title": "Remote Work Productivity Tips" }, +- { "title": "Artificial Intelligence in Healthcare" }, +- { "title": "🎮 Video Game Development Insights" } ### Chat History: {{MESSAGES:END:2}} """ - TAGS_GENERATION_PROMPT_TEMPLATE = PersistentConfig( "TAGS_GENERATION_PROMPT_TEMPLATE", "task.tags.prompt_template",