mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +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({
|
||||
prompt: response.details.imageTag,
|
||||
width: 512,
|
||||
height: 512
|
||||
height: 512,
|
||||
sampler_index: Config.bingDrawApi || 'DPM++ 2M SDE'
|
||||
})
|
||||
}
|
||||
const drawData = await fetch(Config.bingDrawApi, drawOption)
|
||||
|
|
|
|||
|
|
@ -642,6 +642,11 @@
|
|||
"label": "第三方绘图",
|
||||
"placeholder": "Stable Diffusion API地址",
|
||||
"data": "bingDrawApi"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"label": "第三方绘图采样方法",
|
||||
"data": "bingDrawSampler"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
|
|
@ -97,6 +97,7 @@ const defaultConfig = {
|
|||
sydneyApologyIgnored: true,
|
||||
enforceMaster: false,
|
||||
bingDrawApi: '',
|
||||
bingDrawSampler: '',
|
||||
serverPort: 3321,
|
||||
serverHost: '',
|
||||
viewHost: '',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue