summary fix

This commit is contained in:
jhyang0 2025-07-08 02:50:57 +09:00
parent 8db58dcb1e
commit 1755705339

View File

@ -174,14 +174,18 @@ Keep all points concise and build upon previous analysis if provided.`,
const structuredData = this.parseResponseText(responseText, this.previousAnalysisResult); const structuredData = this.parseResponseText(responseText, this.previousAnalysisResult);
if (this.currentSessionId) { if (this.currentSessionId) {
summaryRepository.saveSummary({ try {
sessionId: this.currentSessionId, summaryRepository.saveSummary({
text: responseText, sessionId: this.currentSessionId,
tldr: structuredData.summary.join('\n'), text: responseText,
bullet_json: JSON.stringify(structuredData.topic.bullets), tldr: structuredData.summary.join('\n'),
action_json: JSON.stringify(structuredData.actions), bullet_json: JSON.stringify(structuredData.topic.bullets),
model: 'gpt-4.1' action_json: JSON.stringify(structuredData.actions),
}).catch(err => console.error('[DB] Failed to save summary:', err)); model: 'gpt-4.1'
});
} catch (err) {
console.error('[DB] Failed to save summary:', err);
}
} }
// 분석 결과 저장 // 분석 결과 저장