Update crazy_functional.py

This commit is contained in:
binary-husky 2023-11-14 23:16:49 +08:00 committed by GitHub
parent 5caeb7525d
commit e7c662a5d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -354,7 +354,7 @@ def get_crazy_functions():
print('Load function plugin failed') print('Load function plugin failed')
try: try:
from crazy_functions.图片生成 import 图片生成_DALLE2, 图片生成_DALLE3_Standard, 图片生成_DALLE3_HD from crazy_functions.图片生成 import 图片生成_DALLE2, 图片生成_DALLE3
function_plugins.update({ function_plugins.update({
"图片生成_DALLE2 先切换模型到openai或api2d": { "图片生成_DALLE2 先切换模型到openai或api2d": {
"Group": "对话", "Group": "对话",
@ -367,25 +367,14 @@ def get_crazy_functions():
}, },
}) })
function_plugins.update({ function_plugins.update({
"图片生成_DALLE3_Standard 先切换模型到openai或api2d": { "图片生成_DALLE3 先切换模型到openai或api2d": {
"Group": "对话", "Group": "对话",
"Color": "stop", "Color": "stop",
"AsButton": False, "AsButton": False,
"AdvancedArgs": True, # 调用时唤起高级参数输入区默认False "AdvancedArgs": True, # 调用时唤起高级参数输入区默认False
"ArgsReminder": "在这里输入分辨率, 如1024x1024默认支持 1024x1024, 1792x1024, 1024x1792", # 高级参数输入区的显示提示 "ArgsReminder": "在这里输入分辨率, 如1024x1024默认支持 1024x1024, 1792x1024, 1024x1792。如需生成高清图像请输入 1024x1024-HD, 1792x1024-HD, 1024x1792-HD。", # 高级参数输入区的显示提示
"Info": "使用DALLE3 standard质量生成图片 | 输入参数字符串,提供图像的内容", "Info": "使用DALLE3生成图片 | 输入参数字符串,提供图像的内容",
"Function": HotReload(图片生成_DALLE3_Standard) "Function": HotReload(图片生成_DALLE3)
},
})
function_plugins.update({
"图片生成_DALLE3_HD 先切换模型到openai或api2d": {
"Group": "对话",
"Color": "stop",
"AsButton": False,
"AdvancedArgs": True, # 调用时唤起高级参数输入区默认False
"ArgsReminder": "在这里输入分辨率, 如1024x1024默认支持 1024x1024, 1792x1024, 1024x1792", # 高级参数输入区的显示提示
"Info": "使用DALLE3 HD质量生成图片 | 输入参数字符串,提供图像的内容",
"Function": HotReload(图片生成_DALLE3_HD)
}, },
}) })
except: except: