Merge pull request #13677 from silentoplayz/dev

refactor: Improve Default Title Generation Prompt Template for robust JSON output
This commit is contained in:
Tim Jaeryang Baek 2025-05-08 12:38:05 +04:00 committed by GitHub
commit f6b20ca109
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: