17da967f92
- 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.
14 lines
504 B
YAML
14 lines
504 B
YAML
# Generate session title prompt templates
|
|
templates:
|
|
- id: "default_session_title"
|
|
name: "Standard Title"
|
|
description: "Generate a concise session title from user's question"
|
|
default: true
|
|
content: |
|
|
Generate a short session title based on the user's question.
|
|
|
|
Requirements:
|
|
- 3-8 words
|
|
- 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 |