mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-18 02:00:09 +08:00
perf: 移除冗余判断
This commit is contained in:
@@ -487,7 +487,7 @@ class FuncCall:
|
||||
{
|
||||
"name": f.name,
|
||||
"description": f.description,
|
||||
**({"parameters": convert_schema(f.parameters)} if convert_schema(f.parameters) else {})
|
||||
**({"parameters": convert_schema(f.parameters)})
|
||||
}
|
||||
for f in self.func_list if f.active
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user