Skip to content

Commit 0999ba1

Browse files
committed
formatting
1 parent ee3d6fe commit 0999ba1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

astrbot/dashboard/routes/subagent.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,17 @@ async def get_config(self):
6666
# 兼容旧格式:直接返回 subagent_orchestrator 的字段,同时附加 enhanced_subagent
6767
response_data = {
6868
"main_enable": data.get("main_enable", False),
69-
"remove_main_duplicate_tools": data.get("remove_main_duplicate_tools", False),
69+
"remove_main_duplicate_tools": data.get(
70+
"remove_main_duplicate_tools", False
71+
),
7072
"agents": data.get("agents", []),
7173
"enhanced_subagent": enhanced_data,
7274
}
7375

7476
return jsonify(Response().ok(data=response_data).__dict__)
7577
except Exception as e:
7678
logger.error(traceback.format_exc())
77-
return jsonify(
78-
Response().error(f"获取 subagent 配置失败: {e!s}").__dict__
79-
)
79+
return jsonify(Response().error(f"获取 subagent 配置失败: {e!s}").__dict__)
8080

8181
async def update_config(self):
8282
try:

0 commit comments

Comments
 (0)