refac
This commit is contained in:
@@ -257,24 +257,23 @@
|
||||
const generateTitleHandler = async () => {
|
||||
const content = note.data.content.md;
|
||||
const DEFAULT_TITLE_GENERATION_PROMPT_TEMPLATE = `### Task:
|
||||
Generate a concise, 3-5 word title with an emoji summarizing the content in the content's primary language.
|
||||
Generate a concise title summarizing the content in the content's primary language.
|
||||
### Guidelines:
|
||||
- The title should clearly represent the main theme or subject of the content.
|
||||
- Use emojis that enhance understanding of the topic, but avoid quotation marks or special formatting.
|
||||
- Keep it short: 2-4 words is best.
|
||||
- Do not use emojis, quotation marks, or special formatting.
|
||||
- Write the title in the content's primary language.
|
||||
- Prioritize accuracy over excessive creativity; keep it clear and simple.
|
||||
- Prioritize accuracy over creativity.
|
||||
- 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:
|
||||
- { "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" }
|
||||
- { "title": "Stock Trends" },
|
||||
- { "title": "Chocolate Chip Cookies" },
|
||||
- { "title": "Music Streaming" },
|
||||
- { "title": "Remote Work" }
|
||||
### Content:
|
||||
<content>
|
||||
${content}
|
||||
|
||||
Reference in New Issue
Block a user