mirror of
https://github.com/langbot-app/LangBot.git
synced 2025-11-25 19:37:36 +08:00
hotfix: 调用工具时bug
This commit is contained in:
@@ -118,10 +118,9 @@ class ToolManager:
|
||||
traceback.print_exc()
|
||||
return f"error occurred when executing function {name}: {e}"
|
||||
finally:
|
||||
|
||||
plugin = None
|
||||
|
||||
for p in self.ap.plugin_mgr.plugins:
|
||||
for p in self.ap.plugin_mgr.plugins():
|
||||
if function in p.content_functions:
|
||||
plugin = p
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user