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