mirror of
				https://github.com/open-webui/open-webui
				synced 2025-06-26 18:26:48 +00:00 
			
		
		
		
	refac
This commit is contained in:
		
							parent
							
								
									6658e67113
								
							
						
					
					
						commit
						52010accc9
					
				@ -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:
 | 
			
		||||
<chat_history>
 | 
			
		||||
{{MESSAGES:END:2}}
 | 
			
		||||
</chat_history>"""
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
TAGS_GENERATION_PROMPT_TEMPLATE = PersistentConfig(
 | 
			
		||||
    "TAGS_GENERATION_PROMPT_TEMPLATE",
 | 
			
		||||
    "task.tags.prompt_template",
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user