mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-06-13 02:26:35 +08:00
feat: 新增会话相关function calling调用
This commit is contained in:
@@ -54,6 +54,8 @@ import {
|
||||
getSessionStats,
|
||||
updateSessionGapThreshold,
|
||||
getSessions,
|
||||
searchSessions,
|
||||
getSessionMessages,
|
||||
} from './query'
|
||||
import { streamImport, streamParseFileInfo } from './import'
|
||||
|
||||
@@ -130,6 +132,8 @@ const syncHandlers: Record<string, (payload: any) => any> = {
|
||||
getSessionStats: (p) => getSessionStats(p.sessionId),
|
||||
updateSessionGapThreshold: (p) => updateSessionGapThreshold(p.sessionId, p.gapThreshold),
|
||||
getSessions: (p) => getSessions(p.sessionId),
|
||||
searchSessions: (p) => searchSessions(p.sessionId, p.keywords, p.timeFilter, p.limit, p.previewCount),
|
||||
getSessionMessages: (p) => getSessionMessages(p.sessionId, p.chatSessionId, p.limit),
|
||||
}
|
||||
|
||||
// 异步消息处理器(流式操作)
|
||||
|
||||
Reference in New Issue
Block a user