AstrBot icon indicating copy to clipboard operation
AstrBot copied to clipboard

[Bug]persona无法正常使用人格

Open KaMuMuaMua opened this issue 1 year ago • 2 comments

发生了什么

如题,在配置文件-服务提供商的persona中输入了人格的设定并重启,但是在测试的过程中依然却无法正常调用人格。使用官方QQBOT接口

如何复现?

Image 1.在配置文件-服务提供商-人格情景设置中配置人设并重启 2.使用/new指令新建对话 3.使用/persona use 洛天依,提示不存在人格情景 4.使用/persona list存在人格列表

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

Windows一键部署,V3.5.25,官方QQBOT接口,使用deepseek作为API提供商

操作系统

Windows

报错日志

控制台输出内容: [17:34:30] [Core] [DBUG] [platform.register:45]: 平台适配器 webchat 已注册 [17:34:31] [Core] [INFO] [AstrBot.main:47]: 管理面板文件已是最新。 [17:34:31] [Core] [INFO] [AstrBot.main:80]: ___ _... . ______ .___________. / \ / | || _ \ | _ \ / __ \ | | / ^ \ | (-------| |----| |) | | |) | | | | | ---| |---- / /\ \ \ \ | | | / | _ < | | | | | | / _____ \ .----) | | | | |\ ----.| |) | | --' | | | /__/ \__\ |_______/ |__| | _| .||/ ____/ ||

[17:34:31] [Core] [DBUG] [core.core_lifecycle:61]: HTTP proxy cleared [17:34:31] [Core] [INFO] [core.core_lifecycle:70]: AstrBot v3.5.25 [17:34:31] [Core] [INFO] [star.star_manager:406]: 正在载入插件 astrbot ... [17:34:31] [Core] [INFO] [star.star_manager:459]: Plugin astrbot (4.0.0) by Soulter: AstrBot 基础指令结合 + 拓展功能 [17:34:31] [Core] [INFO] [star.star_manager:406]: 正在载入插件 python_interpreter ... [17:34:31] [Core] [INFO] [provider.func_tool_manager:323]: 添加函数调用工具: python_interpreter [17:34:31] [Core] [INFO] [star.star_manager:459]: Plugin astrbot-python-interpreter (0.0.1) by Soulter: Python 代码执行器 [17:34:31] [Core] [INFO] [python_interpreter.main:163]: 检查 Docker 可用性: Missing valid docker_host.Either DOCKER_HOST or local sockets are not available. [17:34:31] [Core] [INFO] [python_interpreter.main:129]: Docker 不可用,代码解释器将无法使用,astrbot-python-interpreter 将自动禁用。 [17:34:31] [Core] [INFO] [star.star_manager:406]: 正在载入插件 reminder ... [17:34:31] [Core] [INFO] [provider.func_tool_manager:323]: 添加函数调用工具: reminder [17:34:31] [Core] [INFO] [star.star_manager:459]: Plugin astrbot-reminder (0.0.1) by Soulter: 使用 LLM 待办提醒 [17:34:31] [Core] [INFO] [star.star_manager:406]: 正在载入插件 session_controller ... [17:34:31] [Core] [INFO] [star.star_manager:459]: Plugin session_controller (v1.0.1) by Cvandia & Soulter: 为插件支持会话控制 [17:34:31] [Core] [INFO] [star.star_manager:406]: 正在载入插件 thinking_filter ... [17:34:31] [Core] [INFO] [star.star_manager:459]: Plugin thinking_filter (1.0.0) by Soulter: 可选择是否过滤推理模型的思考内容 [17:34:31] [Core] [INFO] [star.star_manager:406]: 正在载入插件 web_searcher ... [17:34:31] [Core] [INFO] [provider.func_tool_manager:323]: 添加函数调用工具: web_search [17:34:31] [Core] [INFO] [provider.func_tool_manager:323]: 添加函数调用工具: fetch_url [17:34:31] [Core] [INFO] [star.star_manager:459]: Plugin astrbot-web-searcher (1.14.514) by Soulter: 让 LLM 具有网页检 索能力 [17:34:31] [Core] [INFO] [provider.manager:178]: 载入 openai_chat_completion(deepseek_default) 服务提供商 ... [17:34:32] [Core] [INFO] [respond.stage:74]: 分段回复间隔时间:[1.5, 3.5] [17:34:32] [Core] [INFO] [platform.manager:45]: 载入 qq_official(世界第一的吃货殿下) 平台适配器 ... [17:34:32] [Core] [INFO] [dashboard.server:169]: 正在启动 WebUI, 监听地址: http://0.0.0.0:6185 [17:34:32] [Core] [INFO] [dashboard.server:172]: 提示: WebUI 将监听所有网络接口,请注意安全。(可在 data/cmd_config.json 中配置 dashboard.host 以修改 host) [17:34:34] [Core] [INFO] [dashboard.server:208]: ✨✨✨ AstrBot v3.5.25 WebUI 已启动,可访问

➜ 本地: http://localhost:6185 ➜ 网络: http://172.16.47.42:6185 ➜ 网络: http://127.0.0.1:6185 ➜ 默认用户名和密码: astrbot ✨✨✨

[17:34:34] [Core] [INFO] [core.core_lifecycle:173]: AstrBot 启动完成。 [2025-08-25 17:34:34 +0800] [3060] [INFO] Running on http://0.0.0.0:6185 (CTRL + C to quit) [2025-08-25 17:34:34 +0800] [3060] [INFO] 127.0.0.1:59127 GET /api/stat/start-time 1.1 200 64 4656 [2025-08-25 17:34:34 +0800] [3060] [INFO] 127.0.0.1:59127 GET / 1.1 304 - 2867 [2025-08-25 17:34:35 +0800] [3060] [INFO] 127.0.0.1:59127 GET /api/stat/version 1.1 200 113 4503 [2025-08-25 17:34:36 +0800] [3060] [INFO] 127.0.0.1:59130 GET /api/log-history 1.1 200 6553 380363 [2025-08-25 17:34:36 +0800] [3060] [INFO] 127.0.0.1:59127 GET /api/stat/start-time 1.1 200 64 0 [2025-08-25 17:34:36 +0800] [3060] [INFO] 127.0.0.1:59138 GET /api/config/get 1.1 200 76943 0 [2025-08-25 17:34:36 +0800] [3060] [INFO] 127.0.0.1:59125 GET /api/update/check 1.1 200 205 637689 [2025-08-25 17:35:29 +0800] [3060] [INFO] 127.0.0.1:59153 GET /api/config/provider/list 1.1 200 328 0 [2025-08-25 17:35:29 +0800] [3060] [INFO] 127.0.0.1:59151 GET /api/chat/status 1.1 200 79 14212 [2025-08-25 17:35:29 +0800] [3060] [INFO] 127.0.0.1:59150 GET /api/chat/conversations 1.1 200 194 16484 [2025-08-25 17:35:29 +0800] [3060] [INFO] 127.0.0.1:59152 GET /api/config/provider/model_list 1.1 200 120 285718 [17:35:44] [Core] [INFO] [core.event_bus:55]: [qq_official] 43276A0F373D30452643DEAB488F6D78: [At:qq_official] /new [17:35:44] [Core] [INFO] [respond.stage:212]: AstrBot -> /43276A0F373D30452643DEAB488F6D78: 切换到新对话: 新对话(a7b5) 。 [17:36:00] [Core] [INFO] [core.event_bus:55]: [qq_official] 43276A0F373D30452643DEAB488F6D78: [At:qq_official] 你好喵 [17:36:29] [Core] [INFO] [core.event_bus:55]: [qq_official] 43276A0F373D30452643DEAB488F6D78: [At:qq_official] /persona use 洛天依 [17:36:29] [Core] [INFO] [respond.stage:212]: AstrBot -> /43276A0F373D30452643DEAB488F6D78: 不存在该人格情景。使用 /persona list 查看所有。 [17:36:33] [Core] [INFO] [core.event_bus:55]: [qq_official] 43276A0F373D30452643DEAB488F6D78: [At:qq_official] 你好喵 [17:37:08] [Core] [INFO] [core.event_bus:55]: [qq_official] 43276A0F373D30452643DEAB488F6D78: [At:qq_official] /persona list [17:37:08] [Core] [INFO] [respond.stage:212]: AstrBot -> /43276A0F373D30452643DEAB488F6D78: 人格列表:

  • 洛天依

*输入 /persona view 人格名 查看人格详细信息 [2025-08-25 17:38:43 +0800] [3060] [INFO] 127.0.0.1:59171 GET /api/config/get 1.1 200 76943 2911

你愿意提交 PR 吗?

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

Code of Conduct

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

KaMuMuaMua avatar Aug 25 '25 09:08 KaMuMuaMua

persona [人格名]
在哪儿看到使用use的?

zgojin avatar Aug 25 '25 21:08 zgojin

中间不需要使用use

anka-afk avatar Sep 01 '25 06:09 anka-afk