diff --git a/apps/chat.js b/apps/chat.js index 26b65e9..52be7d4 100644 --- a/apps/chat.js +++ b/apps/chat.js @@ -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) diff --git a/resources/view/setting_view.json b/resources/view/setting_view.json index cc183df..73b8f20 100644 --- a/resources/view/setting_view.json +++ b/resources/view/setting_view.json @@ -642,6 +642,11 @@ "label": "第三方绘图", "placeholder": "Stable Diffusion API地址", "data": "bingDrawApi" + }, + { + "type": "text", + "label": "第三方绘图采样方法", + "data": "bingDrawSampler" } ] }, diff --git a/utils/config.js b/utils/config.js index ed15408..ada1295 100644 --- a/utils/config.js +++ b/utils/config.js @@ -97,6 +97,7 @@ const defaultConfig = { sydneyApologyIgnored: true, enforceMaster: false, bingDrawApi: '', + bingDrawSampler: '', serverPort: 3321, serverHost: '', viewHost: '',