添加bing第三方绘图采样配置

This commit is contained in:
zyc404 2023-10-12 16:59:50 +08:00
parent 7c45b050ca
commit a0a9630aba
3 changed files with 8 additions and 1 deletions

View file

@ -1673,7 +1673,8 @@ export class chatgpt extends plugin {
body: JSON.stringify({
prompt: response.details.imageTag,
width: 512,
height: 512
height: 512,
sampler_index: Config.bingDrawApi || 'DPM++ 2M SDE'
})
}
const drawData = await fetch(Config.bingDrawApi, drawOption)

View file

@ -642,6 +642,11 @@
"label": "第三方绘图",
"placeholder": "Stable Diffusion API地址",
"data": "bingDrawApi"
},
{
"type": "text",
"label": "第三方绘图采样方法",
"data": "bingDrawSampler"
}
]
},

View file

@ -97,6 +97,7 @@ const defaultConfig = {
sydneyApologyIgnored: true,
enforceMaster: false,
bingDrawApi: '',
bingDrawSampler: '',
serverPort: 3321,
serverHost: '',
viewHost: '',