From a7fdc98b299c3a10d05e41c4809943ea638f342b Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sat, 29 Nov 2025 23:45:12 +0800 Subject: [PATCH] fix: third party agent runner cannot run properly when using non-default config file fix: #3815 --- .../process_stage/method/agent_sub_stages/third_party.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/astrbot/core/pipeline/process_stage/method/agent_sub_stages/third_party.py b/astrbot/core/pipeline/process_stage/method/agent_sub_stages/third_party.py index cf7f4d3da..34dc02ceb 100644 --- a/astrbot/core/pipeline/process_stage/method/agent_sub_stages/third_party.py +++ b/astrbot/core/pipeline/process_stage/method/agent_sub_stages/third_party.py @@ -2,7 +2,7 @@ import asyncio from collections.abc import AsyncGenerator from typing import TYPE_CHECKING -from astrbot.core import logger +from astrbot.core import astrbot_config, logger from astrbot.core.agent.runners.coze.coze_agent_runner import CozeAgentRunner from astrbot.core.agent.runners.dashscope.dashscope_agent_runner import ( DashscopeAgentRunner, @@ -88,7 +88,7 @@ class ThirdPartyAgentSubStage(Stage): return self.prov_cfg: dict = next( - (p for p in self.conf["provider"] if p["id"] == self.prov_id), + (p for p in astrbot_config["provider"] if p["id"] == self.prov_id), {}, ) if not self.prov_id: