mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
feat(ai): add summary strategy with brief and standard detail levels
Support two summary strategies (brief/standard) for AI-generated session summaries. Users can choose their preferred detail level in Settings > AI > Session Index. Standard (default) produces richer summaries covering people, events, and key details. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
eaff16d555
commit
6727ff609c
21 files changed
+173
-47
No files matched your search
@@ -284,9 +284,10 @@ export const sessionApi = {
|
||||
dbSessionId: string,
|
||||
chatSessionId: number,
|
||||
locale?: string,
|
||||
forceRegenerate?: boolean
|
||||
forceRegenerate?: boolean,
|
||||
strategy?: 'brief' | 'standard'
|
||||
): Promise<{ success: boolean; summary?: string; error?: string }> => {
|
||||
return ipcRenderer.invoke('session:generateSummary', dbSessionId, chatSessionId, locale, forceRegenerate)
|
||||
return ipcRenderer.invoke('session:generateSummary', dbSessionId, chatSessionId, locale, forceRegenerate, strategy)
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user