Skip to content

Commit

Permalink
修复autogen接口的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-husky committed Oct 28, 2023
1 parent b4c7b26 commit 5a530df
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions crazy_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 微调数据集生成
Expand Down
2 changes: 1 addition & 1 deletion crazy_functions/agent_fns/pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def overwatch_workdir_file_change(self):
for f in change_list:
res = promote_file_to_downloadzone(f)
file_links += f'<br/><a href="file={res}" target="_blank">{res}</a>'
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)
Expand Down

0 comments on commit 5a530df

Please sign in to comment.