添加图片生成接口插件

This commit is contained in:
505030475
2023-05-13 00:28:29 +08:00
parent fdb9650cca
commit 08e184ea55
2 changed files with 74 additions and 0 deletions

View File

@ -236,5 +236,15 @@ def get_crazy_functions():
"Function": HotReload(同时问询_指定模型)
},
})
from crazy_functions.图片生成 import 图片生成
function_plugins.update({
"图片生成先切换模型到openai或api2d": {
"Color": "stop",
"AsButton": False,
"AdvancedArgs": True, # 调用时唤起高级参数输入区默认False
"ArgsReminder": "在这里输入分辨率, 如256x256默认", # 高级参数输入区的显示提示
"Function": HotReload(图片生成)
},
})
###################### 第n组插件 ###########################
return function_plugins