mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
feat(ai): expose global memory management api
This commit is contained in:
1 parent
ed8ab84b4b
commit
2938c42f9f
10 files changed
+375
-2
No files matched your search
@@ -221,6 +221,7 @@ export async function startHttpServer(options?: HttpServerOptions): Promise<{
|
||||
aiContext: {
|
||||
aiDataDir,
|
||||
aiChatManager,
|
||||
aiMemoryService,
|
||||
assistantManager,
|
||||
skillManagerCore,
|
||||
llmConfigStore,
|
||||
|
||||
@@ -24,6 +24,7 @@ import type { PathProvider } from '@openchatlab/core'
|
||||
import type {
|
||||
DatabaseManager,
|
||||
AIChatManager,
|
||||
AIMemoryService,
|
||||
AssistantManager,
|
||||
SkillManagerCore,
|
||||
LLMConfigStore,
|
||||
@@ -59,6 +60,7 @@ import { getServerAiLogger } from '../../../ai/logger'
|
||||
export interface AiContextOptions {
|
||||
aiDataDir: string
|
||||
aiChatManager: AIChatManager
|
||||
aiMemoryService: AIMemoryService
|
||||
assistantManager: AssistantManager
|
||||
skillManagerCore: SkillManagerCore
|
||||
llmConfigStore: LLMConfigStore
|
||||
@@ -177,6 +179,7 @@ export function registerWebRoutes(
|
||||
...(ai && {
|
||||
aiDataDir: ai.aiDataDir,
|
||||
aiChatManager: ai.aiChatManager,
|
||||
aiMemoryService: ai.aiMemoryService,
|
||||
assistantManager: ai.assistantManager,
|
||||
skillManagerCore: ai.skillManagerCore,
|
||||
llmConfigStore: ai.llmConfigStore,
|
||||
|
||||
Reference in new issue
Block a user