fix: 内容函数调用时错误地传递了RuntimeContainer

This commit is contained in:
RockChinQ 2024-04-04 15:08:40 +08:00
parent 2093fb16a7
commit b5e67f3df8

View File

@ -35,7 +35,7 @@ class ToolManager:
for plugin in self.ap.plugin_mgr.plugins:
for function in plugin.content_functions:
if function.name == name:
return function, plugin
return function, plugin.plugin_inst
return None, None
async def get_all_functions(self) -> list[entities.LLMFunction]: