Skip to content

Commit 0984895

Browse files
authored
fix: align function tool module path with plugin main module (#7462)
1 parent f5207d8 commit 0984895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astrbot/core/star/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ def add_llm_tools(self, *tools: FunctionTool) -> None:
494494
_parts.append(part)
495495
if part in flags and i + 1 < len(module_part):
496496
_parts.append(module_part[i + 1])
497-
module_part.append("main")
497+
_parts.append("main")
498498
break
499499
tool.handler_module_path = ".".join(_parts)
500500
module_path = tool.handler_module_path

0 commit comments

Comments
 (0)