重构:统一编辑器工作流中的 "icon-spec" 处理
- 将所有相关工作流从 "ui-spec" 迁移至 "icon-spec"。 - 优化 `playSetting` 和 `artStyle` 的输入处理逻辑。 - 更新编辑器提示词、提交模型及测试用例以适配 "icon-spec"。 - 在 UI 及后端调用中集成 `EDITOR_ICON_SPEC_PROMPT_MAX_LENGTH` 及相关校验。 - 新增 "icon-spec" 生成与微调的专用 API 路径。 - 移除旧版 "ui-spec" 相关定义及提示词构建器。
This commit is contained in:
@@ -199,7 +199,7 @@ export function createGenerateDialogDraft({
|
||||
}
|
||||
|
||||
function shouldUseSpecPlaceholderValues(specType: SpecGenerationType) {
|
||||
return specType === 'character' || specType === 'ui';
|
||||
return specType === 'character' || specType === 'icon';
|
||||
}
|
||||
|
||||
export function createSpecDialogDraft({
|
||||
@@ -811,7 +811,7 @@ function resolveSpecTypeFromSourceLayer(
|
||||
if (fields.has('头身比') || fields.has('角色视角')) {
|
||||
return 'character';
|
||||
}
|
||||
return 'ui';
|
||||
return 'icon';
|
||||
}
|
||||
|
||||
function restoreSpecValuesFromLayer(
|
||||
|
||||
Reference in New Issue
Block a user