summary fix

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

View File

@ -174,6 +174,7 @@ 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) {
try {
summaryRepository.saveSummary({ summaryRepository.saveSummary({
sessionId: this.currentSessionId, sessionId: this.currentSessionId,
text: responseText, text: responseText,
@ -181,7 +182,10 @@ Keep all points concise and build upon previous analysis if provided.`,
bullet_json: JSON.stringify(structuredData.topic.bullets), bullet_json: JSON.stringify(structuredData.topic.bullets),
action_json: JSON.stringify(structuredData.actions), action_json: JSON.stringify(structuredData.actions),
model: 'gpt-4.1' model: 'gpt-4.1'
}).catch(err => console.error('[DB] Failed to save summary:', err)); });
} catch (err) {
console.error('[DB] Failed to save summary:', err);
}
} }
// 분석 결과 저장 // 분석 결과 저장