mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-03-19 21:38:18 +08:00
feat: add replicate to source.json
This commit is contained in:
@@ -238,7 +238,7 @@ class PluginManager:
|
|||||||
if os.path.exists(os.path.join(dirname,"requirements.txt")):
|
if os.path.exists(os.path.join(dirname,"requirements.txt")):
|
||||||
logger.info("detect requirements.txt,installing...")
|
logger.info("detect requirements.txt,installing...")
|
||||||
pkgmgr.install_requirements(os.path.join(dirname,"requirements.txt"))
|
pkgmgr.install_requirements(os.path.join(dirname,"requirements.txt"))
|
||||||
return True, "安装插件成功,请使用 #scanp 命令扫描插件或重启程序"
|
return True, "安装插件成功,请使用 #scanp 命令扫描插件或重启程序,开启前请检查插件是否需要配置"
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error("Failed to install plugin, {}".format(e))
|
logger.error("Failed to install plugin, {}".format(e))
|
||||||
return False, "安装插件失败,"+str(e)
|
return False, "安装插件失败,"+str(e)
|
||||||
|
|||||||
@@ -3,6 +3,10 @@
|
|||||||
"sdwebui": {
|
"sdwebui": {
|
||||||
"url": "https://github.com/lanvent/plugin_sdwebui.git",
|
"url": "https://github.com/lanvent/plugin_sdwebui.git",
|
||||||
"desc": "利用stable-diffusion画图的插件"
|
"desc": "利用stable-diffusion画图的插件"
|
||||||
|
},
|
||||||
|
"replicate": {
|
||||||
|
"url": "https://github.com/lanvent/plugin_replicate.git",
|
||||||
|
"desc": "利用replicate api画图的插件"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user