You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
model: 'claude-3-haiku-20240307',// Use faster, cheaper model for title generation
213
-
systemPrompt: 'You are a helpful assistant that generates concise, descriptive titles for chat conversations. Create a title that captures the main topic or question being discussed. Keep it under 50 characters and make it specific and clear.',
196
+
systemPrompt:
197
+
'You are a helpful assistant that generates concise, descriptive titles for chat conversations. Create a title that captures the main topic or question being discussed. Keep it under 50 characters and make it specific and clear.',
214
198
context: `Generate a concise title for a conversation that starts with this user message: "${userMessage}"
215
199
216
200
Return only the title text, nothing else.`,
@@ -230,4 +214,4 @@ Return only the title text, nothing else.`,
230
214
logger.error('Failed to generate chat title:',error)
model: 'claude-3-haiku-20240307',// Use faster, cheaper model for title generation
49
-
systemPrompt: 'You are a helpful assistant that generates concise, descriptive titles for chat conversations. Create a title that captures the main topic or question being discussed. Keep it under 50 characters and make it specific and clear.',
49
+
systemPrompt:
50
+
'You are a helpful assistant that generates concise, descriptive titles for chat conversations. Create a title that captures the main topic or question being discussed. Keep it under 50 characters and make it specific and clear.',
50
51
context: `Generate a concise title for a conversation that starts with this user message: "${userMessage}"
51
52
52
53
Return only the title text, nothing else.`,
@@ -171,7 +172,8 @@ Content: ${chunkText}`
171
172
letconversationContext=''
172
173
if(conversationHistory.length>0){
173
174
conversationContext='\n\nConversation History:\n'
174
-
conversationHistory.slice(-6).forEach((msg: any)=>{// Include last 6 messages for context
0 commit comments