feat: 新的引入路径

This commit is contained in:
RockChinQ
2024-03-20 15:48:11 +08:00
parent 52a7c25540
commit 9855c6b8f5
5 changed files with 32 additions and 16 deletions
+3 -2
View File
@@ -28,8 +28,9 @@ class PluginLoader(loader.PluginLoader):
setattr(models, 'on', self.on)
setattr(models, 'func', self.func)
setattr(models, 'handler', self.handler)
setattr(models, 'llm_func', self.llm_func)
setattr(context, 'register', self.register)
setattr(context, 'handler', self.handler)
setattr(context, 'llm_func', self.llm_func)
def register(
self,