feat(short-drama-agent-front): 完善质量规则确认与中文交互
This commit is contained in:
1 parent
190333d4f9
commit
c4b43b9725
85 files changed
+2059
-480
No files matched your search
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { userFacingText } from '../../lib/user-facing-text'
|
||||
import { isOperationRunning } from '../workflows/operations'
|
||||
|
||||
import ContextNotice from '../../components/ui/ContextNotice.vue'
|
||||
@@ -464,7 +465,7 @@ function runNextAction() {
|
||||
<h3 class="text-sm font-semibold">角色选角</h3>
|
||||
<p class="mt-2 text-xs leading-6 text-muted">
|
||||
只处理
|
||||
Character。每张候选都根据当前身份描述独立生成,不复用旧母版;确认选择后才会设为角色母版并锁定身份。
|
||||
人物角色。每张候选都根据当前身份描述独立生成,不复用旧母版;确认选择后才会设为角色母版并锁定身份。
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -539,7 +540,7 @@ function runNextAction() {
|
||||
!casting.total
|
||||
"
|
||||
acknowledgement
|
||||
description="只生成 Character Identity 文本,不生成图片。已锁定角色始终跳过;覆盖文本不会自动更新已有候选图。"
|
||||
description="只整理人物的角色特征,不生成图片。已锁定角色始终跳过;覆盖文本不会自动更新已有候选图。"
|
||||
@confirm="generateProject(true)"
|
||||
/>
|
||||
<ConfirmAction
|
||||
@@ -553,7 +554,7 @@ function runNextAction() {
|
||||
!casting.missingAnchor
|
||||
"
|
||||
acknowledgement
|
||||
description="最多按本批上限为缺少 Anchor 的 Character 调用 图片模型,各自独立生成一张停用的 primary 候选,不复用旧身份母版。已有候选、已有母版或已完成选角的角色不会重复处理。"
|
||||
description="按本批上限,为缺少标准参考图的人物角色各生成一张新候选图,可能产生费用。已有候选、标准参考图或已选定外观的角色会跳过;生成后仍需手动选择和确认。"
|
||||
@confirm="generateCastingCandidates"
|
||||
/>
|
||||
</div>
|
||||
@@ -617,8 +618,7 @@ function runNextAction() {
|
||||
><NCollapseItem name="details"
|
||||
><template #header>高级:全部主体身份文本</template>
|
||||
<p class="mt-3 text-xs leading-6 text-muted">
|
||||
同时处理 Character、Scene 和
|
||||
Prop;角色选角建议优先使用上方专用入口。已锁定身份始终跳过。
|
||||
同时处理人物、场景和道具;角色选角建议优先使用上方专用入口。已锁定身份始终跳过。
|
||||
</p>
|
||||
<NSelect
|
||||
v-model:value="identityBatchModule"
|
||||
@@ -688,7 +688,7 @@ function runNextAction() {
|
||||
</ContextNotice>
|
||||
<ul class="mt-3 space-y-2 text-xs text-danger">
|
||||
<li v-for="failure in session.receipt.result.failures" :key="failure.subjectId">
|
||||
{{ failure.subjectRef }} · {{ failure.subjectId }}:{{ failure.error }}
|
||||
{{ failure.subjectRef }} · {{ failure.subjectId }}:{{ userFacingText(failure.error) }}
|
||||
</li>
|
||||
</ul>
|
||||
<p class="mt-3 text-[11px] text-muted">
|
||||
@@ -706,7 +706,7 @@ function runNextAction() {
|
||||
v-if="catalog.error.value || styleQuery.error.value || castingQuery.error.value"
|
||||
><ContextNotice role="alert" type="error" :show-icon="false"
|
||||
>{{ catalog.error.value || styleQuery.error.value || castingQuery.error.value }}
|
||||
当前相关操作已暂停,请刷新核对后端。
|
||||
当前操作已暂停,请刷新任务状态后核对。
|
||||
<NButton
|
||||
v-if="catalog.error.value"
|
||||
text
|
||||
@@ -938,7 +938,7 @@ function runNextAction() {
|
||||
>
|
||||
</div>
|
||||
<p v-if="!subject.forms.length" class="text-xs text-muted">
|
||||
此角色尚无正式形态,但可以先完成 Identity 与选角。
|
||||
这个角色还没有正式形态,可以先完善角色特征并选择外观。
|
||||
</p>
|
||||
<RouterLink
|
||||
v-if="subjectImagesAccess.enabled"
|
||||
|
||||
@@ -88,7 +88,7 @@ const formModel = computed(() => ({ prompt: prompt.value }))
|
||||
:label-props="{ for: 'casting-candidate-prompt' }"
|
||||
>
|
||||
<NInput
|
||||
placeholder="建议留空,使用后端编译的稳定身份和选角约束;未明确人物背景时默认中国人物"
|
||||
placeholder="建议留空,自动使用已保存的角色特征;未明确人物背景时默认中国人物"
|
||||
:input-props="{ id: 'casting-candidate-prompt' }"
|
||||
class="min-h-24"
|
||||
v-model:value="prompt"
|
||||
@@ -97,7 +97,7 @@ const formModel = computed(() => ({ prompt: prompt.value }))
|
||||
></NInput>
|
||||
</NFormItem>
|
||||
<p v-if="prompt.trim()" class="text-xs text-danger">
|
||||
自定义文本会替换后端完整提示词,请自行包含人物身份、基础服装和中性参考图要求。
|
||||
填写自定义描述后,会替换自动整理的描述;请写清角色特征、基础服装和参考图要求。
|
||||
</p>
|
||||
<GenerationModelControls
|
||||
type="image"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import RawDataDetails from '../../../components/ui/RawDataDetails.vue'
|
||||
import FeedbackMessage from '../../../components/ui/FeedbackMessage.vue'
|
||||
|
||||
import ContextNotice from '../../../components/ui/ContextNotice.vue'
|
||||
@@ -208,8 +209,7 @@ const rules = {
|
||||
@submit="submit"
|
||||
>
|
||||
<ContextNotice type="info" :show-icon="false" class="text-xs">
|
||||
调用 图片模型,每次新增一张图片,可能产生费用。第一张成功的 primary 图自动成为母版;已有母版时,新
|
||||
primary 图仅作为停用候选保留。
|
||||
调用 图片模型,每次新增一张图片,可能产生费用。第一张成功的主视图会成为标准参考图;已经有标准参考图时,新主视图只作为候选保留。
|
||||
</ContextNotice>
|
||||
<!-- 以下是多视角与已有身份图选择模块,单一选项不显示选择器 -->
|
||||
<NFormItem
|
||||
@@ -221,7 +221,7 @@ const rules = {
|
||||
><NSelect
|
||||
id="identity-view"
|
||||
v-model:value="viewType"
|
||||
:options="allowedViews.map(([value, label]) => ({ label: label + '(' + value + ')', value }))"
|
||||
:options="allowedViews.map(([value, label]) => ({ label, value }))"
|
||||
class="select-control"
|
||||
></NSelect
|
||||
></NFormItem>
|
||||
@@ -235,7 +235,7 @@ const rules = {
|
||||
<template #label>
|
||||
<FieldLabel
|
||||
label="身份锚定来源"
|
||||
description="只能选择此主体已完成的图片。后端需取得图片服务可访问的远程地址;本地预览可见不保证远程地址仍有效。"
|
||||
description="只能选择这个主体已生成完成的图片。图片链接需要仍可访问,预览能显示不代表链接一直有效。"
|
||||
/>
|
||||
</template>
|
||||
<NSelect
|
||||
@@ -243,7 +243,7 @@ const rules = {
|
||||
v-model:value="referenceImageId"
|
||||
:options="[
|
||||
{
|
||||
label: String(anchor ? '自动引用当前身份母版' : '自动选择(由后端解析参考图)'),
|
||||
label: String(anchor ? '自动引用当前身份母版' : '自动选择合适的参考图'),
|
||||
value: ''
|
||||
},
|
||||
...references.map(image => ({
|
||||
@@ -260,7 +260,7 @@ const rules = {
|
||||
label="覆盖本次完整提示词(可选)"
|
||||
:label-props="{ for: 'identity-image-prompt' }"
|
||||
><NInput
|
||||
placeholder="建议留空,使用后端编译的身份约束和视角要求"
|
||||
placeholder="建议留空,自动使用已保存的角色特征和视角要求"
|
||||
:input-props="{ id: 'identity-image-prompt' }"
|
||||
class="min-h-24"
|
||||
v-model:value="prompt"
|
||||
@@ -269,7 +269,7 @@ const rules = {
|
||||
></NInput>
|
||||
</NFormItem>
|
||||
<p v-if="prompt.trim()" class="text-xs text-danger">
|
||||
自定义文本会替换后端编译的完整提示词,请自行包含身份约束和视角要求。
|
||||
填写自定义描述后,会替换自动整理的完整描述;请写清角色特征和视角要求。
|
||||
</p>
|
||||
<GenerationModelControls
|
||||
type="image"
|
||||
@@ -297,17 +297,7 @@ const rules = {
|
||||
<div v-if="preview" class="text-xs space-y-3">
|
||||
<p>实际供应方:{{ preview.provider }} · 模型:{{ preview.model }}</p>
|
||||
<p class="whitespace-pre-wrap">最终提示词:{{ preview.providerPrompt }}</p>
|
||||
<pre class="whitespace-pre-wrap break-all">{{
|
||||
JSON.stringify(
|
||||
{
|
||||
referenceImages: preview.referenceImages,
|
||||
referencePlan: preview.referencePlan,
|
||||
generationConfig: preview.generationConfig
|
||||
},
|
||||
null,
|
||||
2
|
||||
)
|
||||
}}</pre>
|
||||
<RawDataDetails :value="{ referenceImages: preview.referenceImages, referencePlan: preview.referencePlan, generationConfig: preview.generationConfig }" title="参考图与生成设置(高级)" />
|
||||
</div>
|
||||
<NCheckbox
|
||||
id="identity-image-cost"
|
||||
|
||||
@@ -89,7 +89,7 @@ function submit() {
|
||||
<ContextNotice type="warning" :show-icon="false"
|
||||
>最多生成
|
||||
{{ maxRepairAttempts + 1 }}
|
||||
张候选,并逐张调用视觉校验;道具还可能调用结构编译模型,均可能产生费用。只有真实通过后,后端才会切换母版并锁定身份。</ContextNotice
|
||||
张候选,并逐张调用视觉校验;道具还可能调用结构编译模型,均可能产生费用。只有通过检查后,才会更换标准参考图并锁定角色特征。</ContextNotice
|
||||
>
|
||||
<GenerationModelControls
|
||||
type="image"
|
||||
|
||||
Reference in new issue
Block a user