mirror of
https://github.com/andy-stack/vaultkeeper-ai.git
synced 2026-07-22 06:42:03 +00:00
Implement automatic conversation title generation using Gemini API. Add IConversationNamingService interface with GeminiConversationNamingService implementation. Integrate naming service into ChatService to generate titles on first user message. Update ConversationFileSystemService to support title updates via file renaming.
8 lines
No EOL
570 B
TypeScript
8 lines
No EOL
570 B
TypeScript
export const NamePrompt: string = `You are a conversation title generator. Given a user's first message, generate a concise, descriptive title (maximum 6 words) that captures the essence of their request.
|
|
|
|
Rules:
|
|
- Maximum 6 words
|
|
- No quotes or special formatting
|
|
- Capitalize appropriately
|
|
- Be specific and descriptive
|
|
- Return ONLY the title, nothing else` |