From 5a530df4f2e8bc2dee7ef874e259e13ccbd1f70d Mon Sep 17 00:00:00 2001 From: binary-husky Date: Sat, 28 Oct 2023 17:41:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dautogen=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crazy_functional.py | 24 ++++++++++++------------ crazy_functions/agent_fns/pipe.py | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/crazy_functional.py b/crazy_functional.py index c11e7cb..795bd5f 100644 --- a/crazy_functional.py +++ b/crazy_functional.py @@ -539,18 +539,18 @@ def get_crazy_functions(): except: print('Load function plugin failed') - try: - from crazy_functions.多智能体 import 多智能体终端 - function_plugins.update({ - "多智能体终端(微软AutoGen)": { - "Group": "智能体", - "Color": "stop", - "AsButton": True, - "Function": HotReload(多智能体终端) - } - }) - except: - print('Load function plugin failed') + # try: + # from crazy_functions.多智能体 import 多智能体终端 + # function_plugins.update({ + # "多智能体终端(微软AutoGen)": { + # "Group": "智能体", + # "Color": "stop", + # "AsButton": True, + # "Function": HotReload(多智能体终端) + # } + # }) + # except: + # print('Load function plugin failed') # try: # from crazy_functions.chatglm微调工具 import 微调数据集生成 diff --git a/crazy_functions/agent_fns/pipe.py b/crazy_functions/agent_fns/pipe.py index 2a0c370..0e430b4 100644 --- a/crazy_functions/agent_fns/pipe.py +++ b/crazy_functions/agent_fns/pipe.py @@ -90,7 +90,7 @@ class PluginMultiprocessManager(): for f in change_list: res = promote_file_to_downloadzone(f) file_links += f'
{res}' - yield from self.immediate_showoff_when_possible(file_path) + yield from self.immediate_showoff_when_possible(f) self.chatbot.append(['检测到新生文档.', f'文档清单如下: {file_links}']) yield from update_ui(chatbot=self.chatbot, history=self.history)