mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-24 23:06:51 +00:00
fix: 修复一些代码报错; 移除了好友复刻的功能
This commit is contained in:
@@ -15,7 +15,7 @@ import { groupAnalyticsService } from './services/groupAnalyticsService'
|
||||
import { annualReportService } from './services/annualReportService'
|
||||
import { exportService, ExportOptions } from './services/exportService'
|
||||
import { KeyService } from './services/keyService'
|
||||
import { cloneService } from './services/cloneService'
|
||||
|
||||
|
||||
// 配置自动更新
|
||||
autoUpdater.autoDownload = false
|
||||
@@ -445,27 +445,7 @@ function registerIpcHandlers() {
|
||||
})
|
||||
|
||||
// 私聊克隆
|
||||
ipcMain.handle('clone:indexSession', async (_, sessionId: string, options?: any) => {
|
||||
return await cloneService.indexSession(sessionId, options, (payload) => {
|
||||
mainWindow?.webContents.send('clone:indexProgress', payload)
|
||||
})
|
||||
})
|
||||
|
||||
ipcMain.handle('clone:query', async (_, payload: { sessionId: string; keyword: string; options?: any }) => {
|
||||
return await cloneService.queryMemory(payload.sessionId, payload.keyword, payload.options || {})
|
||||
})
|
||||
|
||||
ipcMain.handle('clone:getToneGuide', async (_, sessionId: string) => {
|
||||
return await cloneService.getToneGuide(sessionId)
|
||||
})
|
||||
|
||||
ipcMain.handle('clone:generateToneGuide', async (_, sessionId: string, sampleSize?: number) => {
|
||||
return await cloneService.generateToneGuide(sessionId, sampleSize || 500)
|
||||
})
|
||||
|
||||
ipcMain.handle('clone:chat', async (_, payload: { sessionId: string; message: string; topK?: number }) => {
|
||||
return await cloneService.chat(payload)
|
||||
})
|
||||
|
||||
ipcMain.handle('image:decrypt', async (_, payload: { sessionId?: string; imageMd5?: string; imageDatName?: string; force?: boolean }) => {
|
||||
return imageDecryptService.decryptImage(payload)
|
||||
|
||||
Reference in New Issue
Block a user