mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-18 06:17:06 +00:00
添加bing第三方绘图采样配置
This commit is contained in:
parent
7c45b050ca
commit
a0a9630aba
3 changed files with 8 additions and 1 deletions
|
|
@ -1673,7 +1673,8 @@ export class chatgpt extends plugin {
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
prompt: response.details.imageTag,
|
prompt: response.details.imageTag,
|
||||||
width: 512,
|
width: 512,
|
||||||
height: 512
|
height: 512,
|
||||||
|
sampler_index: Config.bingDrawApi || 'DPM++ 2M SDE'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const drawData = await fetch(Config.bingDrawApi, drawOption)
|
const drawData = await fetch(Config.bingDrawApi, drawOption)
|
||||||
|
|
|
||||||
|
|
@ -642,6 +642,11 @@
|
||||||
"label": "第三方绘图",
|
"label": "第三方绘图",
|
||||||
"placeholder": "Stable Diffusion API地址",
|
"placeholder": "Stable Diffusion API地址",
|
||||||
"data": "bingDrawApi"
|
"data": "bingDrawApi"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "text",
|
||||||
|
"label": "第三方绘图采样方法",
|
||||||
|
"data": "bingDrawSampler"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -97,6 +97,7 @@ const defaultConfig = {
|
||||||
sydneyApologyIgnored: true,
|
sydneyApologyIgnored: true,
|
||||||
enforceMaster: false,
|
enforceMaster: false,
|
||||||
bingDrawApi: '',
|
bingDrawApi: '',
|
||||||
|
bingDrawSampler: '',
|
||||||
serverPort: 3321,
|
serverPort: 3321,
|
||||||
serverHost: '',
|
serverHost: '',
|
||||||
viewHost: '',
|
viewHost: '',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue