From a8e7dadd395104d22b8b18c7d732a4b91bf9df20 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Mon, 4 Aug 2025 17:26:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=AE=BF=E9=97=AE?= =?UTF-8?q?=E4=BB=A4=E7=89=8C=E7=9A=84=E7=A9=BA=E6=A0=BC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/core/provider/func_tool_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrbot/core/provider/func_tool_manager.py b/astrbot/core/provider/func_tool_manager.py index a7a3d14b3..c6e78e190 100644 --- a/astrbot/core/provider/func_tool_manager.py +++ b/astrbot/core/provider/func_tool_manager.py @@ -906,7 +906,7 @@ class FunctionToolManager: base_url = "https://www.modelscope.cn/openapi/v1" url = f"{base_url}/mcp/servers/operational" headers = { - "Authorization": f"Bearer {access_token}", + "Authorization": f"Bearer {access_token.strip()}", "Content-Type": "application/json", }