mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 11:42:44 +08:00
fix: 内容函数调用时错误地传递了RuntimeContainer
This commit is contained in:
parent
2093fb16a7
commit
b5e67f3df8
|
@ -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]:
|
||||
|
|
Loading…
Reference in New Issue
Block a user