mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-26 02:04:37 +08:00
fix(ai): share AI log opening route
This commit is contained in:
1 parent
b18181b514
commit
70ada5031c
11 files changed
+131
-58
No files matched your search
@@ -47,6 +47,7 @@ import { registerImportRoutes } from './import'
|
||||
import { openDirectoryPath, showPathInFolder } from './cache'
|
||||
import { getVersion } from '../../../version'
|
||||
import { buildWebUpdateCheckResult } from './update-check'
|
||||
import { getServerAiLogger } from '../../../ai/logger'
|
||||
|
||||
export interface AiContextOptions {
|
||||
aiDataDir: string
|
||||
@@ -121,6 +122,7 @@ export function registerWebRoutes(
|
||||
nativeBinding: options?.nativeBinding,
|
||||
semanticIndexService,
|
||||
analyticsService,
|
||||
getCurrentAiLogPath: () => getServerAiLogger()?.getExistingLogPath() ?? null,
|
||||
openDirectory: openDirectoryPath,
|
||||
showInFolder: showPathInFolder,
|
||||
downloadsDir: resolvedPathProvider.getDownloadsDir(),
|
||||
|
||||
Reference in new issue
Block a user