From 36d54cab52fdb383e40f6b82448d03d2af00546f Mon Sep 17 00:00:00 2001 From: Weikjssss <1007840024@qq.com> Date: Tue, 10 Mar 2026 14:28:39 +0800 Subject: [PATCH] fix: pass bot_type in agent mode --- bridge/agent_bridge.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bridge/agent_bridge.py b/bridge/agent_bridge.py index cf27326..916e5ee 100644 --- a/bridge/agent_bridge.py +++ b/bridge/agent_bridge.py @@ -97,6 +97,9 @@ class AgentLLMModel(LLMModel): def _resolve_bot_type(self, model_name: str) -> str: """Resolve bot type from model name, matching Bridge.__init__ logic.""" from config import conf + configured_bot_type = conf().get("bot_type") + if configured_bot_type: + return configured_bot_type if conf().get("use_linkai", False) and conf().get("linkai_api_key"): return const.LINKAI if not model_name or not isinstance(model_name, str):