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
"title": "string (concise but descriptive title that captures the main topic)",
330
+
"summary": "string (detailed summary that covers ALL key points discussed. For meetings: include decisions made, action items, and key discussion points. For tutorials: cover all steps and concepts explained. For presentations: summarize all main arguments and supporting points. Write from 1st person perspective if the speaker is teaching/presenting, e.g. 'In this video, I walk through...'. Make it comprehensive enough that someone could understand the full content without watching.)",
331
+
"chapters": [{"title": "string (descriptive chapter title)", "start": number (seconds from start)}]
197
332
}
333
+
334
+
Guidelines:
335
+
- The summary should be detailed and comprehensive, not a brief overview
336
+
- Capture ALL important topics, not just the main theme
337
+
- For longer content, organize the summary by topic or chronologically
338
+
- Include specific details, names, numbers, and conclusions mentioned
339
+
- Chapters should mark distinct topic changes or sections
340
+
198
341
Return ONLY valid JSON without any markdown formatting or code blocks.
`[generateAiMetadata] OpenAI API error: ${aiRes.status}${errorText}`,
235
-
);
236
-
thrownewError(`OpenAI API error: ${aiRes.status}${errorText}`);
360
+
361
+
constchunkPrompt=`You are Cap AI, an expert at analyzing video content. This is section ${i+1} of ${chunks.length} from a longer video (timestamp ${Math.floor(chunk.startTime/60)}:${String(chunk.startTime%60).padStart(2,"0")} to ${Math.floor(chunk.endTime/60)}:${String(chunk.endTime%60).padStart(2,"0")}).
362
+
363
+
Analyze this section thoroughly and provide JSON:
364
+
{
365
+
"summary": "string (detailed summary of this section - capture ALL key points, topics discussed, decisions made, or concepts explained. Include specific details like names, numbers, action items, and conclusions. This should be 3-6 sentences minimum.)",
366
+
"keyPoints": ["string (specific key point or takeaway)", ...],
367
+
"chapters": [{"title": "string (descriptive title for this topic/section)", "start": number (seconds from video start)}]
368
+
}
369
+
370
+
Be thorough - this summary will be combined with other sections to create a comprehensive overview.
371
+
Return ONLY valid JSON without any markdown formatting or code blocks.
"title": "string (concise but descriptive title that captures the main topic/purpose)",
426
+
"summary": "string (COMPREHENSIVE summary that covers the entire video thoroughly. This should be detailed enough that someone could understand all the important content without watching. Include: main topics covered, key decisions or conclusions, important details mentioned, action items if any. Organize it logically - for meetings use topics/agenda items, for tutorials use steps/concepts, for presentations use main arguments. Write from 1st person perspective if appropriate. This should be several paragraphs for longer content.)"
427
+
}
428
+
429
+
The summary must be detailed and comprehensive - not a brief overview. Capture all the important information from every section.
430
+
Return ONLY valid JSON without any markdown formatting or code blocks.`;
0 commit comments