快速编辑直接覆盖原图
将图片快速编辑提交切到 /api/editor/images/edits,并用结果回写源图层 保留重绘作为右侧新结果图层,角色重绘继续走 character 生成契约 更新快速编辑文档和定向回归测试
This commit is contained in:
@@ -41,7 +41,6 @@ import {
|
||||
getGenerationFrameAriaLabel,
|
||||
getGenerationFrameLabel,
|
||||
IMAGE_MODEL_GPT_IMAGE_2,
|
||||
normalizeQuickEditPromptSourceReference,
|
||||
resolveCharacterAnimationSourceImageSrc,
|
||||
resolveImageGenerationErrorMessage,
|
||||
VIDEO_MODEL_KLING_3,
|
||||
@@ -299,24 +298,6 @@ describe('ImageCanvasGenerationModel', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('rewrites quick edit source image references to the final image index', () => {
|
||||
expect(normalizeQuickEditPromptSourceReference('把图1改成夜晚', 3)).toBe(
|
||||
'把图3改成夜晚',
|
||||
);
|
||||
expect(normalizeQuickEditPromptSourceReference('参考原图增加暖光', 2)).toBe(
|
||||
'参考图2增加暖光',
|
||||
);
|
||||
expect(normalizeQuickEditPromptSourceReference('保留图1构图', 1)).toBe(
|
||||
'保留图1构图',
|
||||
);
|
||||
expect(
|
||||
normalizeQuickEditPromptSourceReference('保持当前图片构图', 1),
|
||||
).toBe('保持图1构图');
|
||||
expect(
|
||||
normalizeQuickEditPromptSourceReference('不要影响图10内容', 2),
|
||||
).toBe('不要影响图10内容');
|
||||
});
|
||||
|
||||
it('keeps generated prompts and quick edit options stable', () => {
|
||||
const prompt = buildSpecPrompt('ui', {
|
||||
playSetting: '消除玩法',
|
||||
|
||||
Reference in New Issue
Block a user