Skip to content

Commit

Permalink
将AutoGen放回下拉菜单中
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-husky committed Nov 12, 2023
1 parent 51c70e9 commit 94ecbde
Showing 1 changed file with 13 additions and 24 deletions.
37 changes: 13 additions & 24 deletions crazy_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def get_crazy_functions():
"批量总结Word文档": {
"Group": "学术",
"Color": "stop",
"AsButton": False,
"AsButton": True,
"Info": "批量总结word文档 | 输入参数为路径",
"Function": HotReload(总结word文档)
},
Expand Down Expand Up @@ -178,13 +178,6 @@ def get_crazy_functions():
"Info": "批量生成函数的注释 | 输入参数为路径",
"Function": HotReload(批量生成函数注释)
},
"精准翻译PDF论文": {
"Group": "学术",
"Color": "stop",
"AsButton": True,
"Info": "精准翻译PDF论文为中文 | 输入参数为路径",
"Function": HotReload(批量翻译PDF文档)
},
"保存当前的对话": {
"Group": "对话",
"AsButton": True,
Expand All @@ -203,6 +196,13 @@ def get_crazy_functions():
"Info": "查看历史上的今天事件 (这是一个面向开发者的插件Demo) | 不需要输入参数",
"Function": HotReload(高阶功能模板函数)
},
"精准翻译PDF论文": {
"Group": "学术",
"Color": "stop",
"AsButton": True,
"Info": "精准翻译PDF论文为中文 | 输入参数为路径",
"Function": HotReload(批量翻译PDF文档)
},
"询问多个GPT模型": {
"Group": "对话",
"Color": "stop",
Expand Down Expand Up @@ -349,16 +349,16 @@ def get_crazy_functions():
print('Load function plugin failed')

try:
from crazy_functions.图片生成 import 图片生成_DALLE2, 图片生成_DALLE3, 图片修改_DALLE2
from crazy_functions.图片生成 import 图片生成, 图片生成_DALLE3
function_plugins.update({
"图片生成_DALLE2(先切换模型到openai或api2d)": {
"图片生成(先切换模型到openai或api2d)": {
"Group": "对话",
"Color": "stop",
"AsButton": False,
"AdvancedArgs": True, # 调用时,唤起高级参数输入区(默认False)
"ArgsReminder": "在这里输入分辨率, 如1024x1024(默认),支持 256x256, 512x512, 1024x1024", # 高级参数输入区的显示提示
"Info": "使用DALLE2生成图片 | 输入参数字符串,提供图像的内容",
"Function": HotReload(图片生成_DALLE2)
"Function": HotReload(图片生成)
},
})
function_plugins.update({
Expand All @@ -372,17 +372,6 @@ def get_crazy_functions():
"Function": HotReload(图片生成_DALLE3)
},
})
# function_plugins.update({
# "图片修改_DALLE2(启动DALLE2图像修改向导程序)": {
# "Group": "对话",
# "Color": "stop",
# "AsButton": False,
# "AdvancedArgs": True, # 调用时,唤起高级参数输入区(默认False)
# "ArgsReminder": "在这里输入分辨率, 如1024x1024(默认),支持 1024x1024, 1792x1024, 1024x1792", # 高级参数输入区的显示提示
# # "Info": "使用DALLE2修改图片 | 输入参数字符串,提供图像的内容",
# "Function": HotReload(图片修改_DALLE2)
# },
# })
except:
print('Load function plugin failed')

Expand Down Expand Up @@ -563,10 +552,10 @@ def get_crazy_functions():

from crazy_functions.多智能体 import 多智能体终端
function_plugins.update({
"AutoGen多智能体终端": {
"AutoGen多智能体终端(仅供测试)": {
"Group": "智能体",
"Color": "stop",
"AsButton": True,
"AsButton": False,
"Function": HotReload(多智能体终端)
}
})
Expand Down

0 comments on commit 94ecbde

Please sign in to comment.