Open seanzhang-zhichen opened 3 months ago
我的代码:
self.bot = ReActChat(llm=self.llm_cfg, function_list=self.tools, name="xxxx", description="xxxxx", cookie=self.cookie)
追了一下源码,发现Memory类没有支持kwargs,建议更新下,不然kwargs就是个摆设
我粗看了下,init是漏了 kwargs。但是 agent.run 的 kwargs 会传给 memory.run 的 kwargs。
当时设计的时候,memory.init 是通过 rag_cfg 接收额外参数的,我回头看看 init 是否有必要增加kwargs。
我的代码:
self.bot = ReActChat(llm=self.llm_cfg, function_list=self.tools, name="xxxx", description="xxxxx", cookie=self.cookie)
追了一下源码,发现Memory类没有支持kwargs,建议更新下,不然kwargs就是个摆设