koishi-plugin-p-draw 1.2.10 → 1.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1696,7 +1696,7 @@ exports.apply = async function apply(ctx, cfg) {
|
|
|
1696
1696
|
const steps = Math.round(Number(overrides.steps) || workCfg.steps)
|
|
1697
1697
|
const cfgVal = Number(overrides.cfg) || workCfg.cfg
|
|
1698
1698
|
const seed = Number(overrides.seed) || crypto.randomInt(1, 2 ** 32 - 1)
|
|
1699
|
-
const negativePrompt = overrides.negativePrompt || cfg.negativePrompt || ''
|
|
1699
|
+
const negativePrompt = joinPromptParts([overrides.negativePrompt || cfg.negativePrompt || ''])
|
|
1700
1700
|
const i2iImage = overrides.i2iImage
|
|
1701
1701
|
if (i2iImage && cfg.customWorkflowEnabled && cfg.customWorkflowPath) {
|
|
1702
1702
|
return { ok: false, message: 'i2i(以图生图)暂不支持自定义工作流(customWorkflowEnabled),请关闭后再试。' }
|
|
@@ -2022,7 +2022,7 @@ exports.apply = async function apply(ctx, cfg) {
|
|
|
2022
2022
|
parts.push(String(cfg.styleTags).trim())
|
|
2023
2023
|
}
|
|
2024
2024
|
parts.push(userPrompt)
|
|
2025
|
-
return { prompt:
|
|
2025
|
+
return { prompt: joinPromptParts(parts), degraded: false }
|
|
2026
2026
|
}
|
|
2027
2027
|
|
|
2028
2028
|
// ---------------- 多人(移植自 anima /anm 多人) ----------------
|