fix: 主体图片预览使用当前自定义提示词与模型参数
This commit is contained in:
1 parent
b216a11f23
commit
8c14efcfe4
1 file changed
+5
-1
@@ -65,7 +65,11 @@ async function loadPreview() {
|
|||||||
previewPending.value = true
|
previewPending.value = true
|
||||||
previewError.value = ''
|
previewError.value = ''
|
||||||
try {
|
try {
|
||||||
const result = await subjectImagesApi.preview(props.form.id)
|
const result = await subjectImagesApi.preview(props.form.id, {
|
||||||
|
...(prompt.value.trim() ? { prompt: prompt.value.trim() } : {}),
|
||||||
|
provider: provider.value,
|
||||||
|
generationOptions: generationOptions.value
|
||||||
|
})
|
||||||
if (!result || result.subjectFormId !== props.form.id) throw new Error('预览结果与当前形态不匹配。')
|
if (!result || result.subjectFormId !== props.form.id) throw new Error('预览结果与当前形态不匹配。')
|
||||||
preview.value = result
|
preview.value = result
|
||||||
} catch (cause) {
|
} catch (cause) {
|
||||||
|
|||||||
Reference in new issue
Block a user