AstrBot icon indicating copy to clipboard operation
AstrBot copied to clipboard

[Bug]知识库插件初始化失败: 未在AstrBot配置LLM服务商,请检查配置

Open Dragon617 opened this issue 1 year ago • 2 comments

发生了什么

我有添加LLM服务商,他提示 “未在AstrBot配置LLM服务商,请检查配置”

如何复现?

打开 插件“astrbot_plugin_knowledge_base”,里面的开关“是否启用LLM大模型解析文件”这个打开。然后重启Astrbot就会提示

Image

然后 知识库的页面就没有了,空白页面

Image

AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器

v3.5.13 Windows启动器

操作系统

Windows

报错日志

[21:45:04] [Core] [INFO] [astrbot_plugin_knowledge_base.main:121]: Embedding 工具初始化完成。 2025-06-01 21:45:04,720 - astrbot - INFO - Embedding 工具初始化完成。 [21:45:04] [Core] [INFO] [astrbot_plugin_knowledge_base.main:128]: 文本分割工具初始化完成。 2025-06-01 21:45:04,720 - astrbot - INFO - 文本分割工具初始化完成。 [21:45:04] [Core] [ERRO] [utils.file_parser:31]: 未在AstrBot配置LLM服务商,请检查配置 2025-06-01 21:45:04,722 - astrbot - ERROR - 未在AstrBot配置LLM服务商,请检查配置 出现问题 [21:45:04] [Core] [ERRO] [astrbot_plugin_knowledge_base.main:196]: 知识库插件初始化失败: 未在AstrBot配置LLM服务商,请检查配置 Traceback (most recent call last): File "E:\AstrBotLauncher\AstrBot\data\plugins\astrbot_plugin_knowledge_base\main.py", line 131, in _initialize_components self.llm_config = LLM_Config( ^^^^^^^^^^^ File "E:\AstrBotLauncher\AstrBot\data\plugins\astrbot_plugin_knowledge_base\utils\file_parser.py", line 32, in init raise ValueError("未在AstrBot配置LLM服务商,请检查配置") ValueError: 未在AstrBot配置LLM服务商,请检查配置 2025-06-01 21:45:04,722 - astrbot - ERROR - 知识库插件初始化失败: 未在AstrBot配置LLM服务商,请检查配置 Traceback (most recent call last): File "E:\AstrBotLauncher\AstrBot\data\plugins\astrbot_plugin_knowledge_base\main.py", line 131, in _initialize_components self.llm_config = LLM_Config( ^^^^^^^^^^^ File "E:\AstrBotLauncher\AstrBot\data\plugins\astrbot_plugin_knowledge_base\utils\file_parser.py", line 32, in init raise ValueError("未在AstrBot配置LLM服务商,请检查配置") ValueError: 未在AstrBot配置LLM服务商,请检查配置

Image

你愿意提交 PR 吗?

  • [ ] 是的,我愿意提交 PR!

Code of Conduct

  • [x] 我已阅读并同意遵守该项目的 行为准则。

Dragon617 avatar Jun 01 '25 13:06 Dragon617

你好,可以暂时采用下面这个方法来作为临时解决方案:

  1. 进入聊天页面
  2. 输入 provider
  3. 选择一个 provider
  4. 重启 astrbot_plugin_knowledge_base 插件,在插件管理页面

Soulter avatar Jun 05 '25 13:06 Soulter

你好,可以暂时采用下面这个方法来作为临时解决方案:

  1. 进入聊天页面
  2. 输入 provider
  3. 选择一个 provider
  4. 重启 astrbot_plugin_knowledge_base 插件,在插件管理页面

希望后期可以修复一下

Dragon617 avatar Jun 05 '25 14:06 Dragon617