summary fix
This commit is contained in:
parent
8db58dcb1e
commit
1755705339
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 분석 결과 저장
|
// 분석 결과 저장
|
||||||
|
Loading…
x
Reference in New Issue
Block a user