refactor: update session title generation and language context handling
- Modified the session title generation template to focus on extracting only the intent of the user's question. - Enhanced the session service to include language context when generating titles. - Updated middleware to inject language into the request context. - Added a new test suite for validating SSRF safety of URLs.
This commit is contained in:
@@ -9,8 +9,6 @@ templates:
|
||||
|
||||
Requirements:
|
||||
- 3-8 words
|
||||
- Extract the core topic
|
||||
- Only extract the intent of the user's question, don't answer about it
|
||||
- Output only the title, no explanation needed
|
||||
- IMPORTANT: Use {{language}} for the title
|
||||
|
||||
User question:
|
||||
- IMPORTANT: Use {{language}} for the title
|
||||
Reference in New Issue
Block a user