Fix DashScope env loading for scene image generation

This commit is contained in:
2026-04-06 15:01:15 +08:00
parent fcd8d727b0
commit d678929064
23 changed files with 4943 additions and 138 deletions

View File

@@ -1882,7 +1882,7 @@ export function buildCharacterBackstoryPromptContext(
...getUnlockedCharacterBackstoryChapters(character, affinity, worldType)
.map(chapter => chapter.contextSnippet.trim())
.filter(Boolean),
].filter(Boolean);
].filter((snippet): snippet is string => Boolean(snippet));
}
export function getCharacterHomeSceneId(worldType: WorldType, characterId: string) {