ChatLunaLab / chatluna

多平台模型接入,可扩展,多种输出格式,提供大语言模型聊天服务的插件 | A bot plugin for LLM chat services with multi-model integration, extensibility, and various output formats
https://chatluna.chat
GNU Affero General Public License v3.0
173 stars 24 forks source link

[Bug] 无法正确回复 #243

Closed yu-xinx closed 1 month ago

yu-xinx commented 1 month ago

发送消息就999

image

以下是报错代码

chatluna ====================ChatLunaError:999====================
chatluna TypeError: generation.message._updateId is not a function
                            at /koishi/node_modules/koishi-plugin-chatluna/node_modules/@langchain/core/dist/language_models/chat_models.cjs:195:52
                            at Array.map (<anonymous>)
                            at ChatLunaChatModel._generateUncached (/koishi/node_modules/koishi-plugin-chatluna/node_modules/@langchain/core/dist/language_models/chat_models.cjs:188:39)
                            at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
                            at async ChatHubLLMChain._call (/koishi/node_modules/koishi-plugin-chatluna/lib/llm-core/chain/base.cjs:81:29)
                            at async ChatHubLLMChain.invoke (/koishi/node_modules/koishi-plugin-chatluna/lib/llm-core/chain/base.cjs:121:22)
                            at async callChatHubChain (/koishi/node_modules/koishi-plugin-chatluna/lib/llm-core/chain/base.cjs:152:20)
                            at async _ChatHubChatChain.call (/koishi/node_modules/koishi-plugin-chatluna/lib/index.cjs:1106:22)
                            at async ChatInterface.chat (/koishi/node_modules/koishi-plugin-chatluna/lib/llm-core/chat/app.cjs:356:24)
                            at async ChatInterfaceWrapper.chat (/koishi/node_modules/koishi-plugin-chatluna/lib/services/chat.cjs:1118:27)

下面是配置截图

image

dingyi222666 commented 1 month ago

告诉我你目前使用的 chatluna 版本,使用的什么适配器以及适配器版本。

dingyi222666 commented 1 month ago

是否使用的 cohere 适配器?....

dingyi222666 commented 1 month ago

以及你使用 chatluna 的方式,是否为 koishi desktop 或者其他方式

yu-xinx commented 1 month ago

使用的是通义千问,适配器更新到最新版本已无问题