Skip to content

[Bug]获取模型列表时失败 #7960

Description

@Kevin1762

What happened / 发生了什么

在插件市场安装一个名叫"Iris Memory 智能三层记忆"失败之后我的astrbot失去了反应,重启之后没有办法正常使用,新配置一个提供商源的尝试也失败了

Reproduce / 如何复现?

如上文所示,在插件市场安装一个名叫"Iris Memory 智能三层记忆"并且失败

AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器

4.23.6,Windows Docker Desktop ,deepseek,telegram

OS

Windows

Logs / 报错日志

[2026-05-03 01:30:44.326] [Core] [INFO] [app.main:73]: 使用指定的 WebUI 目录: \?\D:\Applications\AstrBot\webui
[2026-05-03 01:30:44.327] [Core] [INFO] [app.main:117]:
___ _... . ______ .___________.
/ \ / | || _ \ | _ \ / __ \ | |
/ ^ \ | (-------| |----| |
) | | |
) | | | | | ---| |----
/ /
\ \ \ \ | | | / | _ < | | | | | |
/ _____ \ .----) | | | | |\ ----.| |
) | | --' | | | /__/ \__\ |_______/ |__| | _| .||
/ ____/ ||

[2026-05-03 01:30:44.327] [Core] [DBUG] [core.core_lifecycle:80]: HTTP proxy cleared
[2026-05-03 01:30:44.327] [Core] [INFO] [core.core_lifecycle:106]: AstrBot v4.23.6
[2026-05-03 01:30:44.491] [Core] [INFO] [core.persona_mgr:38]: 已加载 2 个人格。
[2026-05-03 01:30:44.503] [Core] [INFO] [star.star_manager:877]: 正在载入插件 astrbot_plugin_access_others_chat_history ...
[2026-05-03 01:30:44.534] [Core] [INFO] [provider.func_tool_manager:314]: 添加函数调用工具: access_others_chat_history
[2026-05-03 01:30:44.535] [Core] [INFO] [star.star_manager:962]: Plugin astrbot_plugin_access_others_chat_history (v1.0.0) by 兔子: 为bot提供访问其他聊天会话的工具,让bot在和你聊天的时候也能知道在其他地方聊了什么
[2026-05-03 01:30:44.536] [Core] [INFO] [star.star_manager:996]: 插件 astrbot_plugin_access_others_chat_history 已被禁用。
[2026-05-03 01:30:44.536] [Core] [INFO] [star.star_manager:877]: 正在载入插件 astrbot_plugin_worldbook ...
[2026-05-03 01:30:45.353] [Core] [INFO] [utils.pip_installer:669]: Loaded PIL from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\PIL_init_.py
[2026-05-03 01:30:45.354] [Core] [INFO] [utils.pip_installer:669]: Loaded yaml from plugin site-packages: C:\Users\16932.astrbot\data\site-packages_yaml_init.py
[2026-05-03 01:30:45.384] [Core] [INFO] [utils.pip_installer:669]: Loaded anyio from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\anyio_init_.py
[2026-05-03 01:30:45.386] [Core] [INFO] [utils.pip_installer:669]: Loaded certifi from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\certifi_init_.py
[2026-05-03 01:30:45.390] [Core] [INFO] [utils.pip_installer:669]: Loaded cffi from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\cffi_init_.py
[2026-05-03 01:30:45.397] [Core] [INFO] [utils.pip_installer:669]: Loaded charset_normalizer from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\charset_normalizer_init_.py
[2026-05-03 01:30:45.407] [Core] [INFO] [utils.pip_installer:669]: Loaded click from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\click_init_.py
[2026-05-03 01:30:45.412] [Core] [INFO] [utils.pip_installer:669]: Loaded colorama from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\colorama_init_.py
[2026-05-03 01:30:45.416] [Core] [INFO] [utils.pip_installer:669]: Loaded fontTools from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\fontTools_init_.py
[2026-05-03 01:30:45.428] [Core] [INFO] [utils.pip_installer:669]: Loaded h11 from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\h11_init_.py
[2026-05-03 01:30:45.429] [Core] [INFO] [utils.pip_installer:669]: Loaded h2 from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\h2_init_.py
[2026-05-03 01:30:45.434] [Core] [INFO] [utils.pip_installer:669]: Loaded hpack from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\hpack_init_.py
[2026-05-03 01:30:45.477] [Core] [INFO] [utils.pip_installer:669]: Loaded httpcore from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\httpcore_init_.py
[2026-05-03 01:30:45.556] [Core] [INFO] [utils.pip_installer:669]: Loaded httpx from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\httpx_init_.py
[2026-05-03 01:30:45.557] [Core] [INFO] [utils.pip_installer:669]: Loaded hyperframe from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\hyperframe_init_.py
[2026-05-03 01:30:45.561] [Core] [INFO] [utils.pip_installer:669]: Loaded idna from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\idna_init_.py
[2026-05-03 01:30:45.563] [Core] [INFO] [utils.pip_installer:669]: Loaded lxml from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\lxml_init_.py
[2026-05-03 01:30:45.568] [Core] [INFO] [utils.pip_installer:669]: Loaded mdurl from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\mdurl_init_.py
[2026-05-03 01:30:45.636] [Core] [INFO] [utils.pip_installer:669]: Loaded numpy from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\numpy_init_.py
[2026-05-03 01:30:45.638] [Core] [INFO] [utils.pip_installer:669]: Loaded packaging from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\packaging_init_.py
[2026-05-03 01:30:45.695] [Core] [INFO] [utils.pip_installer:669]: Loaded pillowlatex from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\pillowlatex_init_.py
[2026-05-03 01:30:45.733] [Core] [INFO] [utils.pip_installer:669]: Loaded pillowmd from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\pillowmd_init_.py
[2026-05-03 01:30:45.745] [Core] [INFO] [utils.pip_installer:669]: Loaded pycparser from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\pycparser_init_.py
[2026-05-03 01:30:45.746] [Core] [INFO] [utils.pip_installer:669]: Loaded pygments from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\pygments_init_.py
[2026-05-03 01:30:45.760] [Core] [INFO] [utils.pip_installer:669]: Loaded requests from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\requests_init_.py
[2026-05-03 01:30:45.762] [Core] [INFO] [utils.pip_installer:669]: Loaded rich from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\rich_init_.py
[2026-05-03 01:30:45.771] [Core] [INFO] [utils.pip_installer:669]: Loaded scipy from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\scipy_init_.py
[2026-05-03 01:30:45.774] [Core] [INFO] [utils.pip_installer:669]: Loaded threadpoolctl from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\threadpoolctl.py
[2026-05-03 01:30:45.777] [Core] [INFO] [utils.pip_installer:669]: Loaded typing_extensions from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\typing_extensions.py
[2026-05-03 01:30:45.801] [Core] [INFO] [utils.pip_installer:669]: Loaded urllib3 from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\urllib3_init_.py
[2026-05-03 01:30:45.814] [Core] [INFO] [utils.pip_installer:669]: Loaded yaml from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\yaml_init_.py
[2026-05-03 01:30:45.816] [Core] [INFO] [utils.pip_installer:669]: Loaded zstandard from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\zstandard_init_.py
[2026-05-03 01:30:45.840] [Core] [INFO] [star.star_manager:962]: Plugin astrbot_plugin_worldbook (v2.2.5) by Zhalslar: 面向 LLM 的「世界书」系统实现插件。可在特定触发条件下,将预设内容注入至 system_prompt,用于临时或持续影响 AI 的世界观、角色行为与回复逻辑
[2026-05-03 01:30:45.840] [Core] [INFO] [star.star_manager:996]: 插件 astrbot_plugin_worldbook 已被禁用。
[2026-05-03 01:30:45.840] [Core] [INFO] [star.star_manager:877]: 正在载入插件 echo_avatar ...
[2026-05-03 01:30:45.843] [Core] [INFO] [star.star_manager:962]: Plugin echo_avatar (v1.1.0) by LumineStory: 学习、构建并模仿指定用户的数字人格,生成专业的Prompt。
[2026-05-03 01:30:45.843] [Core] [INFO] [star.star_manager:996]: 插件 echo_avatar 已被禁用。
[2026-05-03 01:30:45.843] [Core] [INFO] [star.star_manager:877]: 正在载入插件 prompt_tools ...
[2026-05-03 01:30:45.850] [Core] [INFO] [star.star_manager:962]: Plugin prompt_tools (1.3.0) by LKarxa: 一个用于管理和激活提示词的插件,支持多预设、动态激活和前缀提示功能
[2026-05-03 01:30:45.851] [Core] [INFO] [star.star_manager:996]: 插件 prompt_tools 已被禁用。
[2026-05-03 01:30:45.851] [Core] [INFO] [star.star_manager:877]: 正在载入插件 strbot_plugin_SillyTavern_card ...
[2026-05-03 01:30:46.627] [Core] [INFO] [utils.pip_installer:669]: Loaded yaml from plugin site-packages: C:\Users\16932.astrbot\data\site-packages_yaml_init.py
[2026-05-03 01:30:46.630] [Core] [INFO] [utils.pip_installer:669]: Loaded png from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\png.py
[2026-05-03 01:30:46.643] [Core] [INFO] [utils.pip_installer:669]: Loaded yaml from plugin site-packages: C:\Users\16932.astrbot\data\site-packages\yaml_init_.py
[2026-05-03 01:30:46.651] [Core] [INFO] [star.star_manager:962]: Plugin strbot_plugin_SillyTavern_card (v1.0.0) by LKarxa: 将SillyTavern角色PNG卡转换为Lorebook YAML
[2026-05-03 01:30:46.651] [Core] [INFO] [star.star_manager:996]: 插件 strbot_plugin_SillyTavern_card 已被禁用。
[2026-05-03 01:30:46.651] [Core] [INFO] [star.star_manager:877]: 正在载入插件 astrbot ...
[2026-05-03 01:30:46.655] [Core] [INFO] [star.star_manager:962]: Plugin astrbot (4.1.0) by Soulter: AstrBot 自带插件,包含人格注入、思考内容注入、群聊上下文感知等功能的实现,禁用后将无法使用这些功能。
[2026-05-03 01:30:46.656] [Core] [INFO] [star.star_manager:877]: 正在载入插件 builtin_commands ...
[2026-05-03 01:30:46.665] [Core] [INFO] [star.star_manager:962]: Plugin builtin_commands (0.0.1) by Soulter: AstrBot 自带指令,提供常用的对话管理、工具使用、插件管理等功能。
[2026-05-03 01:30:46.665] [Core] [INFO] [star.star_manager:877]: 正在载入插件 session_controller ...
[2026-05-03 01:30:46.668] [Core] [INFO] [star.star_manager:962]: Plugin session_controller (v1.0.1) by Cvandia & Soulter: 为插件支持会话控制
[2026-05-03 01:30:46.670] [Core] [INFO] [star.star_manager:877]: 正在载入插件 web_searcher ...
[2026-05-03 01:30:46.774] [Core] [INFO] [provider.func_tool_manager:314]: 添加函数调用工具: web_search
[2026-05-03 01:30:46.780] [Core] [INFO] [provider.func_tool_manager:314]: 添加函数调用工具: fetch_url
[2026-05-03 01:30:46.786] [Core] [INFO] [provider.func_tool_manager:314]: 添加函数调用工具: web_search_tavily
[2026-05-03 01:30:46.792] [Core] [INFO] [provider.func_tool_manager:314]: 添加函数调用工具: tavily_extract_web_page
[2026-05-03 01:30:46.799] [Core] [INFO] [provider.func_tool_manager:314]: 添加函数调用工具: web_search_bocha
[2026-05-03 01:30:46.800] [Core] [INFO] [star.star_manager:962]: Plugin astrbot-web-searcher (1.14.514) by Soulter: 让 LLM 具有网页检索能力
[2026-05-03 01:30:46.803] [Core] [INFO] [t2i.network_strategy:84]: Successfully got 3 official T2I endpoints.
[2026-05-03 01:30:46.807] [Core] [INFO] [knowledge_base.kb_mgr:39]: 正在初始化知识库模块...
[2026-05-03 01:30:46.830] [Core] [INFO] [knowledge_base.kb_mgr:64]: KnowledgeBase database initialized: C:\Users\16932.astrbot\data\knowledge_base\kb.db
[2026-05-03 01:30:47.039] [Core] [INFO] [platform.manager:125]: 载入 telegram(NangongYu128_bot) 平台适配器 ...
[2026-05-03 01:30:47.450] [Core] [INFO] [dashboard.server:391]: 正在启动 WebUI, 监听地址: http://127.0.0.1:6185
[2026-05-03 01:30:49.458] [Core] [INFO] [dashboard.server:430]:
✨✨✨
AstrBot v4.23.6 WebUI 已启动,可访问

➜ 本地: http://localhost:6185
➜ 默认用户名和密码: astrbot
✨✨✨
可在 data/cmd_config.json 中配置 dashboard.host 以便远程访问。
[2026-05-03 01:30:49.459] [Core] [INFO] [core.core_lifecycle:297]: AstrBot 启动完成。
[2026-05-03 01:30:49.461] [Core] [INFO] [utils.temp_dir_cleaner:127]: TempDirCleaner started. interval=600s cleanup_ratio=0.3
[2026-05-03 01:30:49.637] [Core] [INFO] [utils.llm_metadata:63]: Successfully fetched metadata for 2423 LLMs.
[2026-05-03 01:30:50.034] [Core] [INFO] [telegram.tg_adapter:249]: Starting Telegram polling...
[2026-05-03 01:30:50.059] [Core] [INFO] [telegram.tg_adapter:251]: Telegram Platform Adapter is running.
[2026-05-03 01:30:55.220] [Core] [ERRO] [v4.23.6] [routes.config:1006]: Traceback (most recent call last):
File "\?\D:\Applications\AstrBot\backend\app\astrbot\dashboard\routes\config.py", line 974, in get_provider_source_models
inst = cls_type(provider_source, {})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\?\D:\Applications\AstrBot\backend\app\astrbot\core\provider\sources\openai_source.py", line 474, in init
self.client = AsyncOpenAI(
^^^^^^^^^^^^
File "D:\Applications\AstrBot\backend\python\Lib\site-packages\openai_client.py", line 617, in init
super().init(
File "D:\Applications\AstrBot\backend\python\Lib\site-packages\openai_base_client.py", line 1487, in init
raise TypeError(
TypeError: Invalid http_client argument; Expected an instance of httpx.AsyncClient but got <class 'httpx.AsyncClient'>
[2026-05-03 01:33:26.766] [Core] [ERRO] [v4.23.6] [routes.config:1006]: Traceback (most recent call last):
File "\?\D:\Applications\AstrBot\backend\app\astrbot\dashboard\routes\config.py", line 974, in get_provider_source_models
inst = cls_type(provider_source, {})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\?\D:\Applications\AstrBot\backend\app\astrbot\core\provider\sources\openai_source.py", line 474, in init
self.client = AsyncOpenAI(
^^^^^^^^^^^^
File "D:\Applications\AstrBot\backend\python\Lib\site-packages\openai_client.py", line 617, in init
super().init(
File "D:\Applications\AstrBot\backend\python\Lib\site-packages\openai_base_client.py", line 1487, in init
raise TypeError(
TypeError: Invalid http_client argument; Expected an instance of httpx.AsyncClient but got <class 'httpx.AsyncClient'>

Are you willing to submit a PR? / 你愿意提交 PR 吗?

  • Yes!

Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:providerThe bug / feature is about AI Provider, Models, LLM Agent, LLM Agent Runner.bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions