diff --git a/packages/adapter-azure-openai/package.json b/packages/adapter-azure-openai/package.json index 048e08d4d..f4143fc63 100644 --- a/packages/adapter-azure-openai/package.json +++ b/packages/adapter-azure-openai/package.json @@ -57,7 +57,7 @@ }, "peerDependencies": { "koishi": "^4.18.9", - "koishi-plugin-chatluna": "^1.3.0-alpha.54" + "koishi-plugin-chatluna": "^1.3.0-alpha.55" }, "resolutions": { "@langchain/core": "0.3.62", diff --git a/packages/adapter-claude/package.json b/packages/adapter-claude/package.json index 9a45c73c3..430127f01 100644 --- a/packages/adapter-claude/package.json +++ b/packages/adapter-claude/package.json @@ -59,7 +59,7 @@ }, "peerDependencies": { "koishi": "^4.18.9", - "koishi-plugin-chatluna": "^1.3.0-alpha.54" + "koishi-plugin-chatluna": "^1.3.0-alpha.55" }, "resolutions": { "@langchain/core": "0.3.62", diff --git a/packages/adapter-deepseek/package.json b/packages/adapter-deepseek/package.json index a5fd333a0..27855872b 100644 --- a/packages/adapter-deepseek/package.json +++ b/packages/adapter-deepseek/package.json @@ -71,7 +71,7 @@ }, "peerDependencies": { "koishi": "^4.18.9", - "koishi-plugin-chatluna": "^1.3.0-alpha.54" + "koishi-plugin-chatluna": "^1.3.0-alpha.55" }, "koishi": { "category": "ai", diff --git a/packages/adapter-dify/package.json b/packages/adapter-dify/package.json index 937a00d04..e48e6bb0b 100644 --- a/packages/adapter-dify/package.json +++ b/packages/adapter-dify/package.json @@ -70,7 +70,7 @@ }, "peerDependencies": { "koishi": "^4.18.9", - "koishi-plugin-chatluna": "^1.3.0-alpha.54" + "koishi-plugin-chatluna": "^1.3.0-alpha.55" }, "koishi": { "description": { diff --git a/packages/adapter-doubao/package.json b/packages/adapter-doubao/package.json index 1ba5df43d..826980946 100644 --- a/packages/adapter-doubao/package.json +++ b/packages/adapter-doubao/package.json @@ -71,7 +71,7 @@ }, "peerDependencies": { "koishi": "^4.18.9", - "koishi-plugin-chatluna": "^1.3.0-alpha.54" + "koishi-plugin-chatluna": "^1.3.0-alpha.55" }, "koishi": { "description": { diff --git a/packages/adapter-gemini/package.json b/packages/adapter-gemini/package.json index 8c0693039..82538cbc8 100644 --- a/packages/adapter-gemini/package.json +++ b/packages/adapter-gemini/package.json @@ -73,7 +73,7 @@ }, "peerDependencies": { "koishi": "^4.18.9", - "koishi-plugin-chatluna": "^1.3.0-alpha.54", + "koishi-plugin-chatluna": "^1.3.0-alpha.55", "koishi-plugin-chatluna-storage-service": "^0.0.9" }, "peerDependenciesMeta": { diff --git a/packages/adapter-hunyuan/package.json b/packages/adapter-hunyuan/package.json index 119e49d82..9209957c3 100644 --- a/packages/adapter-hunyuan/package.json +++ b/packages/adapter-hunyuan/package.json @@ -71,7 +71,7 @@ }, "peerDependencies": { "koishi": "^4.18.9", - "koishi-plugin-chatluna": "^1.3.0-alpha.54" + "koishi-plugin-chatluna": "^1.3.0-alpha.55" }, "koishi": { "description": { diff --git a/packages/adapter-ollama/package.json b/packages/adapter-ollama/package.json index c27cec69c..58cbfdfad 100644 --- a/packages/adapter-ollama/package.json +++ b/packages/adapter-ollama/package.json @@ -55,7 +55,7 @@ }, "peerDependencies": { "koishi": "^4.18.9", - "koishi-plugin-chatluna": "^1.3.0-alpha.54" + "koishi-plugin-chatluna": "^1.3.0-alpha.55" }, "resolutions": { "@langchain/core": "0.3.62", diff --git a/packages/adapter-openai-like/package.json b/packages/adapter-openai-like/package.json index cea79aa5a..afc94323b 100644 --- a/packages/adapter-openai-like/package.json +++ b/packages/adapter-openai-like/package.json @@ -71,7 +71,7 @@ }, "peerDependencies": { "koishi": "^4.18.9", - "koishi-plugin-chatluna": "^1.3.0-alpha.54" + "koishi-plugin-chatluna": "^1.3.0-alpha.55" }, "koishi": { "description": { diff --git a/packages/adapter-openai/package.json b/packages/adapter-openai/package.json index f51050c59..570e6aa0c 100644 --- a/packages/adapter-openai/package.json +++ b/packages/adapter-openai/package.json @@ -71,7 +71,7 @@ }, "peerDependencies": { "koishi": "^4.18.9", - "koishi-plugin-chatluna": "^1.3.0-alpha.54" + "koishi-plugin-chatluna": "^1.3.0-alpha.55" }, "koishi": { "description": { diff --git a/packages/adapter-qwen/package.json b/packages/adapter-qwen/package.json index 225b8ceba..85d64ad03 100644 --- a/packages/adapter-qwen/package.json +++ b/packages/adapter-qwen/package.json @@ -71,7 +71,7 @@ }, "peerDependencies": { "koishi": "^4.18.9", - "koishi-plugin-chatluna": "^1.3.0-alpha.54" + "koishi-plugin-chatluna": "^1.3.0-alpha.55" }, "koishi": { "description": { diff --git a/packages/adapter-rwkv/package.json b/packages/adapter-rwkv/package.json index bc3a43d81..f193ed741 100644 --- a/packages/adapter-rwkv/package.json +++ b/packages/adapter-rwkv/package.json @@ -70,7 +70,7 @@ }, "peerDependencies": { "koishi": "^4.18.9", - "koishi-plugin-chatluna": "^1.3.0-alpha.54" + "koishi-plugin-chatluna": "^1.3.0-alpha.55" }, "koishi": { "description": { diff --git a/packages/adapter-spark/package.json b/packages/adapter-spark/package.json index bd8fc0b35..b3a7ddf65 100644 --- a/packages/adapter-spark/package.json +++ b/packages/adapter-spark/package.json @@ -72,7 +72,7 @@ }, "peerDependencies": { "koishi": "^4.18.9", - "koishi-plugin-chatluna": "^1.3.0-alpha.54" + "koishi-plugin-chatluna": "^1.3.0-alpha.55" }, "koishi": { "description": { diff --git a/packages/adapter-wenxin/package.json b/packages/adapter-wenxin/package.json index 9813b808f..6ca3ed887 100644 --- a/packages/adapter-wenxin/package.json +++ b/packages/adapter-wenxin/package.json @@ -71,7 +71,7 @@ }, "peerDependencies": { "koishi": "^4.18.9", - "koishi-plugin-chatluna": "^1.3.0-alpha.54" + "koishi-plugin-chatluna": "^1.3.0-alpha.55" }, "koishi": { "description": { diff --git a/packages/adapter-zhipu/package.json b/packages/adapter-zhipu/package.json index 2cfed5e6f..e9e9f1358 100644 --- a/packages/adapter-zhipu/package.json +++ b/packages/adapter-zhipu/package.json @@ -73,7 +73,7 @@ }, "peerDependencies": { "koishi": "^4.18.9", - "koishi-plugin-chatluna": "^1.3.0-alpha.54" + "koishi-plugin-chatluna": "^1.3.0-alpha.55" }, "koishi": { "description": { diff --git a/packages/core/package.json b/packages/core/package.json index 5813e8d69..7c023c198 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,7 +1,7 @@ { "name": "koishi-plugin-chatluna", "description": "chatluna for koishi", - "version": "1.3.0-alpha.54", + "version": "1.3.0-alpha.55", "main": "lib/index.cjs", "module": "lib/index.mjs", "typings": "lib/index.d.ts", diff --git a/packages/core/src/config.ts b/packages/core/src/config.ts index 5de4e3e7b..a14e3826c 100644 --- a/packages/core/src/config.ts +++ b/packages/core/src/config.ts @@ -23,7 +23,7 @@ export interface Config { sendThinkingMessageTimeout: number showThoughtMessage: boolean splitMessage: boolean - blackList: Computed> + blackList: Computed> censor: boolean autoDelete: boolean autoDeleteTimeout: number @@ -99,9 +99,9 @@ export const Config: Schema = Schema.intersect([ }), Schema.object({ - blackList: Schema.computed(Schema.boolean().default(false)).default( - false - ) + blackList: Schema.computed( + Schema.number().min(0).max(1).step(1).default(0) + ).default(0) }), Schema.object({ diff --git a/packages/core/src/llm-core/chain/prompt.ts b/packages/core/src/llm-core/chain/prompt.ts index eecb3c705..4b513986d 100644 --- a/packages/core/src/llm-core/chain/prompt.ts +++ b/packages/core/src/llm-core/chain/prompt.ts @@ -179,9 +179,16 @@ Your goal is to craft an insightful, engaging response that seamlessly integrate usedTokens += messageTokens } + if (usedTokens > this.sendTokenLimit) { + logger?.warn( + `After system prompts, the max tokens exceeded: ${usedTokens} > ${this.sendTokenLimit}. Try increasing the adapter token limit or optimizing the system prompts.` + ) + } + const inputTokens = await this.tokenCounter( getMessageContent(input.content) ) + const longHistory = (variables?.['long_memory'] ?? []) as Document[] const knowledge = (variables?.['knowledge'] ?? []) as Document[] const otherDocuments = (variables?.['documents'] ?? []) as Document[][] @@ -191,6 +198,7 @@ Your goal is to craft an insightful, engaging response that seamlessly integrate authorsNote && (authorsNote.content?.length ?? 0) > 0 ? await this._counterAuthorsNote(authorsNote, variables) : [null, 0] + usedTokens += inputTokens if (usedTokensAuthorsNote > 0) { @@ -382,6 +390,9 @@ Your goal is to craft an insightful, engaging response that seamlessly integrate usedTokens + messageTokens > this.sendTokenLimit - (documents.length > 0 ? 480 : 80) ) { + logger?.warn( + `Exceeded token limit (${usedTokens} + ${messageTokens} > ${this.sendTokenLimit}) of the message placeholder` + ) break } diff --git a/packages/core/src/llm-core/platform/model.ts b/packages/core/src/llm-core/platform/model.ts index 1f19dbd30..c82c0aea6 100644 --- a/packages/core/src/llm-core/platform/model.ts +++ b/packages/core/src/llm-core/platform/model.ts @@ -34,6 +34,7 @@ import { chunkArray } from 'koishi-plugin-chatluna/llm-core/utils/chunk' import { encodingForModel } from '../utils/tiktoken' import { formatFunctionDefinitions } from '../utils/function_def' import { getMessageContent } from 'koishi-plugin-chatluna/utils/string' +import { logger } from 'koishi-plugin-chatluna' export interface ChatLunaModelCallOptions extends BaseChatModelCallOptions { model?: string @@ -434,6 +435,10 @@ export class ChatLunaChatModel extends BaseChatModel { const messageTokens = await this._countMessageTokens(message) if (totalTokens + messageTokens > maxTokenLimit) { + logger?.warn( + // eslint-disable-next-line max-len + `Message length exceeds token limit. ${totalTokens + messageTokens} > ${maxTokenLimit}. Try increasing the adapter token limit or reducing the message length.` + ) break } diff --git a/packages/core/src/llm-core/vectorstores/base.ts b/packages/core/src/llm-core/vectorstores/base.ts index 489a47d8d..e51541461 100644 --- a/packages/core/src/llm-core/vectorstores/base.ts +++ b/packages/core/src/llm-core/vectorstores/base.ts @@ -64,6 +64,8 @@ export abstract class ChatLunaSaveableVectorStore< ) ) + await this.save() + return ids } @@ -90,6 +92,7 @@ export abstract class ChatLunaSaveableVectorStore< if (options.deleteAll) { await this._docstore.delete({ deleteAll: true }) + await this.save() return } @@ -113,6 +116,8 @@ export abstract class ChatLunaSaveableVectorStore< if (!ids || ids.length === 0) return await this._docstore.delete({ ids }) + + await this.save() } _vectorstoreType(): string { diff --git a/packages/core/src/locales/en-US.schema.yml b/packages/core/src/locales/en-US.schema.yml index caf6be308..da281df40 100644 --- a/packages/core/src/locales/en-US.schema.yml +++ b/packages/core/src/locales/en-US.schema.yml @@ -35,7 +35,7 @@ $inner: streamResponse: 'Enable stream response. Initiates message sending during reply generation. Note: Disables rendering output mode and incompatible with plugin mode.' - $desc: Blacklist Management - blackList: Configure blacklist. Use cautiously to avoid unintended blocking. + blackList: Configure blacklist. Use cautiously to avoid unintended blocking. The number 1 indicates enabled blacklist. Set to zero value to unenable blacklist. blockText: Set fixed reply for blacklisted users. - $desc: History Management diff --git a/packages/core/src/locales/zh-CN.schema.yml b/packages/core/src/locales/zh-CN.schema.yml index 0b1de1f84..67945b5c2 100644 --- a/packages/core/src/locales/zh-CN.schema.yml +++ b/packages/core/src/locales/zh-CN.schema.yml @@ -35,7 +35,7 @@ $inner: - $desc: 黑名单选项 blackList: - $desc: 设置黑名单列表。请谨慎使用,只对需要拉黑的用户或群启用。错误配置可能导致所有聊天被拉黑而无法响应。 + $desc: 设置黑名单列表。请谨慎使用,只对需要拉黑的用户或群启用。1 表示启用黑名单,0 表示不启用黑名单。默认值为 0。 blockText: 设置对被拉黑用户的固定回复内容。 - $desc: 历史记录选项 diff --git a/packages/core/src/middlewares/auth/black_list.ts b/packages/core/src/middlewares/auth/black_list.ts index d111a52cf..88d3dac99 100644 --- a/packages/core/src/middlewares/auth/black_list.ts +++ b/packages/core/src/middlewares/auth/black_list.ts @@ -11,7 +11,7 @@ export function apply(ctx: Context, config: Config, chain: ChatChain) { .middleware('black_list', async (session, context) => { const resolved = await session.resolve(config.blackList) - if (resolved === true) { + if (resolved === 1) { logger.debug( `[黑名单] ${session.username}(${session.userId}): ${session.content}` ) diff --git a/packages/core/src/middlewares/system/wipe.ts b/packages/core/src/middlewares/system/wipe.ts index 6beabd065..e18f28c5f 100644 --- a/packages/core/src/middlewares/system/wipe.ts +++ b/packages/core/src/middlewares/system/wipe.ts @@ -67,7 +67,7 @@ export function apply(ctx: Context, config: Config, chain: ChatChain) { } try { - await fs.rm('data/chathub/temp', { recursive: true }) + await fs.rm('data/chatluna/temp', { recursive: true }) } catch (e) { logger.warn(`wipe: ${e}`) } diff --git a/packages/core/src/services/chat.ts b/packages/core/src/services/chat.ts index c364a2ca3..2c726de72 100644 --- a/packages/core/src/services/chat.ts +++ b/packages/core/src/services/chat.ts @@ -348,7 +348,7 @@ export class ChatLunaService extends Service { private _createTempDir() { // create dir data/chathub/temp use fs // ? - const tempPath = path.resolve(this.ctx.baseDir, 'data/chathub/temp') + const tempPath = path.resolve(this.ctx.baseDir, 'data/chatluna/temp') if (!fs.existsSync(tempPath)) { fs.mkdirSync(tempPath, { recursive: true }) } diff --git a/packages/extension-long-memory/package.json b/packages/extension-long-memory/package.json index 93d6b9c75..ea857d7d5 100644 --- a/packages/extension-long-memory/package.json +++ b/packages/extension-long-memory/package.json @@ -64,7 +64,7 @@ }, "peerDependencies": { "koishi": "^4.18.9", - "koishi-plugin-chatluna": "^1.3.0-alpha.54" + "koishi-plugin-chatluna": "^1.3.0-alpha.55" }, "resolutions": { "@langchain/core": "0.3.62", diff --git a/packages/extension-mcp/package.json b/packages/extension-mcp/package.json index 2091c4537..c9d816470 100644 --- a/packages/extension-mcp/package.json +++ b/packages/extension-mcp/package.json @@ -1,7 +1,7 @@ { "name": "koishi-plugin-chatluna-mcp-client", "description": "MCP Client for ChatLuna", - "version": "1.3.0-alpha.6", + "version": "1.3.0-alpha.7", "main": "lib/index.cjs", "module": "lib/index.mjs", "typings": "lib/index.d.ts", @@ -59,7 +59,7 @@ }, "peerDependencies": { "koishi": "^4.18.9", - "koishi-plugin-chatluna": "^1.3.0-alpha.54", + "koishi-plugin-chatluna": "^1.3.0-alpha.55", "koishi-plugin-chatluna-storage-service": "^0.0.9" }, "peerDependenciesMeta": { diff --git a/packages/extension-mcp/src/service.ts b/packages/extension-mcp/src/service.ts index 90df6b5c5..3019c90c7 100644 --- a/packages/extension-mcp/src/service.ts +++ b/packages/extension-mcp/src/service.ts @@ -12,7 +12,7 @@ import { SSEClientTransport } from '@modelcontextprotocol/sdk/client/sse.js' import { callTool } from './utils' export class ChatLunaMCPClientService extends Service { - private _client: Client + private _clients: Client[] = [] private _globalTools: Record< string, @@ -31,18 +31,11 @@ export class ChatLunaMCPClientService extends Service { ) { super(ctx, 'chatluna_mcp') - this._client = new Client({ - name: 'ChatLuna', - version: '1.0.0', - title: 'ChatLuna ModelContext Protocol Client', - description: 'A client for the ChatLuna ModelContext Protocol' - }) - this._plugin = plugin ctx.on('ready', async () => { logger.info('Initializing MCP client service') - const prepared = await this.prepareClient() + const prepared = await this.prepareClients() if (!prepared) { logger.warn( @@ -60,7 +53,7 @@ export class ChatLunaMCPClientService extends Service { }) } - async prepareClient() { + async prepareClients() { let serverConfigs: Config['server'][0][] = [] try { @@ -88,7 +81,6 @@ export class ChatLunaMCPClientService extends Service { return false } - let availableServers = 0 for (const serverConfig of serverConfigs) { const { command, args, env, cwd, url, type, headers } = serverConfig @@ -103,6 +95,12 @@ export class ChatLunaMCPClientService extends Service { cwd } + if (parsedArgs.args == null && parsedArgs.command != null) { + const splitted = command.split(' ') + parsedArgs.command = splitted[0] + parsedArgs.args = splitted.slice(1) + } + for (const key in parsedArgs) { if ( parsedArgs[key] === undefined || @@ -114,7 +112,7 @@ export class ChatLunaMCPClientService extends Service { } transport = new StdioClientTransport(parsedArgs) - } else if (url.includes('sse') || type.includes('sse')) { + } else if (url.includes('sse') || type?.includes('sse')) { transport = new SSEClientTransport(new URL(url), { requestInit: { headers: headers ?? {} @@ -133,11 +131,20 @@ export class ChatLunaMCPClientService extends Service { ) try { - await this._client.connect(transport) + const client = new Client({ + name: 'ChatLuna', + version: '1.0.0', + title: 'ChatLuna ModelContext Protocol Client', + description: + 'A client for the ChatLuna ModelContext Protocol' + }) + + await client.connect(transport) + + this._clients.push(client) logger.debug('MCP client connected at', serverConfig) - availableServers++ } catch (error) { - logger.error( + this.ctx.logger.error( `Failed to connect to server at ${JSON.stringify( serverConfig )}`, @@ -146,53 +153,55 @@ export class ChatLunaMCPClientService extends Service { } } - return availableServers > 0 + return this._clients.length > 0 } async registerClientToolsToSchema() { - const mcpTools = await this._client.listTools() - const schemaValueArray: Record = {} - for (const tool of mcpTools.tools) { - schemaValueArray[tool.name] = { - name: tool.name, - enabled: this.config.tools[tool.name]?.enabled ?? true, - selector: this.config.tools[tool.name]?.selector ?? [] + for (const client of this._clients) { + const mcpTools = await client.listTools() + + for (const tool of mcpTools.tools) { + schemaValueArray[tool.name] = { + name: tool.name, + enabled: this.config.tools?.[tool.name]?.enabled ?? true, + selector: this.config.tools?.[tool.name]?.selector ?? [] + } } } this._globalTools = schemaValueArray - - /* this.ctx.schema.set( - 'tools', - Schema.dict( - Schema.object({ - name: Schema.string(), - enabled: Schema.boolean(), - selector: Schema.array(Schema.string()).default([]) - }) - ).default(schemaValueArray) - ) */ } async registerClientTools() { - const mcpTools = await this._client.listTools() - const forkTools = { ...this._globalTools } + const toolToClientMap: Record< + string, + [Client, Awaited>['tools'][number]] + > = {} + + for (const client of this._clients) { + const mcpTools = await client.listTools() + for (const tool of mcpTools.tools) { + toolToClientMap[tool.name] = [client, tool] as const + } + } + let length = 0 for (const name in forkTools) { const toolConfig = forkTools[name] - const mcpTool = mcpTools.tools.find((t) => t.name === name) + const mapping = toolToClientMap[name] - if (!mcpTool) { + if (!mapping) { logger.warn(`Tool ${name} not found in MCP`) continue } - // Skip if tool is explicitly disabled - if (toolConfig.enabled === false) { + const [client, mcpTool] = mapping + + if (toolConfig?.enabled === false) { logger.debug(`Tool ${name} is disabled, skipping registration`) continue } @@ -200,7 +209,7 @@ export class ChatLunaMCPClientService extends Service { const langChainTool = tool( async (input: Record) => { return callTool({ - client: this.client, + client, toolName: mcpTool.name, args: input, serverName: name, @@ -241,11 +250,13 @@ export class ChatLunaMCPClientService extends Service { } async stop() { - await this._client.close() + for (const client of this._clients) { + await client.close() + } } - get client() { - return this._client + get clients() { + return this._clients } get globalTools() { diff --git a/packages/extension-tools/package.json b/packages/extension-tools/package.json index 1309392d1..90cdae5d2 100644 --- a/packages/extension-tools/package.json +++ b/packages/extension-tools/package.json @@ -70,7 +70,7 @@ }, "peerDependencies": { "koishi": "^4.18.9", - "koishi-plugin-chatluna": "^1.3.0-alpha.54", + "koishi-plugin-chatluna": "^1.3.0-alpha.55", "koishi-plugin-chatluna-knowledge-chat": "^1.0.23", "koishi-plugin-chatluna-storage-service": "^0.0.9" }, diff --git a/packages/extension-variable/package.json b/packages/extension-variable/package.json index 85c6783d1..59c414fc8 100644 --- a/packages/extension-variable/package.json +++ b/packages/extension-variable/package.json @@ -59,7 +59,7 @@ }, "peerDependencies": { "koishi": "^4.18.9", - "koishi-plugin-chatluna": "^1.3.0-alpha.54" + "koishi-plugin-chatluna": "^1.3.0-alpha.55" }, "resolutions": { "@langchain/core": "0.3.62", diff --git a/packages/renderer-image/package.json b/packages/renderer-image/package.json index 89c3e717a..d12f3aa14 100644 --- a/packages/renderer-image/package.json +++ b/packages/renderer-image/package.json @@ -64,7 +64,7 @@ }, "peerDependencies": { "koishi": "^4.18.9", - "koishi-plugin-chatluna": "^1.3.0-alpha.54" + "koishi-plugin-chatluna": "^1.3.0-alpha.55" }, "koishi": { "description": { diff --git a/packages/service-embeddings/package.json b/packages/service-embeddings/package.json index 7e4b413e7..c7facdae3 100644 --- a/packages/service-embeddings/package.json +++ b/packages/service-embeddings/package.json @@ -64,7 +64,7 @@ }, "peerDependencies": { "koishi": "^4.18.9", - "koishi-plugin-chatluna": "^1.3.0-alpha.54" + "koishi-plugin-chatluna": "^1.3.0-alpha.55" }, "koishi": { "description": { diff --git a/packages/service-image/package.json b/packages/service-image/package.json index df3ccc39d..38775ed2e 100644 --- a/packages/service-image/package.json +++ b/packages/service-image/package.json @@ -60,7 +60,7 @@ }, "peerDependencies": { "koishi": "^4.18.9", - "koishi-plugin-chatluna": "^1.3.0-alpha.54" + "koishi-plugin-chatluna": "^1.3.0-alpha.55" }, "resolutions": { "@langchain/core": "0.3.62", diff --git a/packages/service-search/package.json b/packages/service-search/package.json index 9d652f494..826d9f409 100644 --- a/packages/service-search/package.json +++ b/packages/service-search/package.json @@ -76,7 +76,7 @@ }, "peerDependencies": { "koishi": "^4.18.9", - "koishi-plugin-chatluna": "^1.3.0-alpha.54" + "koishi-plugin-chatluna": "^1.3.0-alpha.55" }, "koishi": { "description": { diff --git a/packages/service-vector-store/package.json b/packages/service-vector-store/package.json index e8e229c9e..dedbf99f7 100644 --- a/packages/service-vector-store/package.json +++ b/packages/service-vector-store/package.json @@ -59,7 +59,7 @@ "@zilliz/milvus2-sdk-node": "^2.6.0", "faiss-node": "^0.5.1", "koishi": "^4.18.9", - "koishi-plugin-chatluna": "^1.3.0-alpha.54" + "koishi-plugin-chatluna": "^1.3.0-alpha.55" }, "peerDependenciesMeta": { "@zilliz/milvus2-sdk-node": { diff --git a/packages/shared-adapter/package.json b/packages/shared-adapter/package.json index fbb131f70..4676fb61b 100644 --- a/packages/shared-adapter/package.json +++ b/packages/shared-adapter/package.json @@ -70,6 +70,6 @@ }, "peerDependencies": { "koishi": "^4.18.9", - "koishi-plugin-chatluna": "^1.3.0-alpha.54" + "koishi-plugin-chatluna": "^1.3.0-alpha.55" } }