将AutoGen放回下拉菜单中

This commit is contained in:
binary-husky 2023-11-12 18:22:46 +08:00
parent 51c70e9e47
commit 94ecbde198

View File

@ -74,7 +74,7 @@ def get_crazy_functions():
"批量总结Word文档": {
"Group": "学术",
"Color": "stop",
"AsButton": False,
"AsButton": True,
"Info": "批量总结word文档 | 输入参数为路径",
"Function": HotReload(总结word文档)
},
@ -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,
@ -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",
@ -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({
@ -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')
@ -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(多智能体终端)
}
})