Auto-open draft result after foundation completes
This commit is contained in:
@@ -28,7 +28,6 @@ import {
|
||||
buildCustomWorldRoleBatchPrompt,
|
||||
buildCustomWorldRoleOutlineBatchJsonRepairPrompt,
|
||||
buildCustomWorldRoleOutlineBatchPrompt,
|
||||
buildCustomWorldSceneImagePrompt,
|
||||
buildCustomWorldStoryGraphJsonRepairPrompt,
|
||||
buildCustomWorldStoryGraphPrompt,
|
||||
buildCustomWorldThemePackJsonRepairPrompt,
|
||||
@@ -1951,11 +1950,7 @@ export async function generateCustomWorldSceneImage({
|
||||
size = '1280*720',
|
||||
referenceImageSrc,
|
||||
}: CustomWorldSceneImageRequest): Promise<CustomWorldSceneImageResult> {
|
||||
const resolvedPrompt =
|
||||
prompt?.trim() ||
|
||||
buildCustomWorldSceneImagePrompt(profile, landmark, userPrompt, {
|
||||
hasReferenceImage: Boolean(referenceImageSrc?.trim()),
|
||||
});
|
||||
const resolvedPrompt = prompt?.trim() || userPrompt?.trim() || '';
|
||||
const resolvedNegativePrompt =
|
||||
negativePrompt?.trim() || DEFAULT_CUSTOM_WORLD_SCENE_IMAGE_NEGATIVE_PROMPT;
|
||||
const controller = new AbortController();
|
||||
@@ -1975,9 +1970,25 @@ export async function generateCustomWorldSceneImage({
|
||||
worldName: profile.name,
|
||||
landmarkId: landmark.id,
|
||||
landmarkName: landmark.name,
|
||||
prompt: resolvedPrompt,
|
||||
...(prompt?.trim() ? { prompt: prompt.trim() } : {}),
|
||||
userPrompt: resolvedPrompt,
|
||||
negativePrompt: resolvedNegativePrompt,
|
||||
size,
|
||||
profile: {
|
||||
id: profile.id,
|
||||
name: profile.name,
|
||||
subtitle: profile.subtitle,
|
||||
summary: profile.summary,
|
||||
tone: profile.tone,
|
||||
playerGoal: profile.playerGoal,
|
||||
settingText: profile.settingText,
|
||||
},
|
||||
landmark: {
|
||||
id: landmark.id,
|
||||
name: landmark.name,
|
||||
description: landmark.description,
|
||||
dangerLevel: landmark.dangerLevel,
|
||||
},
|
||||
...(referenceImageSrc?.trim()
|
||||
? { referenceImageSrc: referenceImageSrc.trim() }
|
||||
: {}),
|
||||
|
||||
Reference in New Issue
Block a user