diff --git a/index.html b/index.html index 21dfe69..7c25b14 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - My Google AI Studio App + 剧本大师
diff --git a/src/App.tsx b/src/App.tsx index 75f22b2..2a27379 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1669,15 +1669,6 @@ ${script}`; {`删除全部`} )} -
diff --git a/src/services/ai.ts b/src/services/ai.ts index e346b2c..cdfcb02 100644 --- a/src/services/ai.ts +++ b/src/services/ai.ts @@ -569,48 +569,32 @@ export async function convertTextToScript( { id: 0, instruction: ` -# A?????? +# 生成要求 -?????????? -?????????????????????????????????????????? +强调镜头语言、动作场面、快节奏剪辑,减少对白,通过画面讲故事。 +侧重于核心风格与叙事手法要求中的氛围感和戏剧张力, +整体节奏较快,剧情推进更紧凑,冲突更直接, +场景切换可以更简洁。 -????? -1. ?????????????????????????????????? -2. ??????????????????????????? -3. ???????????????????????????????????????? -4. ??????????????????????? -5. ????????????????????? +# 输出格式 -??? -????????????????????????????? - -# ???? - -???????????????????????????????????????? Markdown ??????? JSON ??????? [[VERSION]] ???????????????????????????????????????????????????????? -????????` +直接输出剧本内容,剧本内容严格按照剧本结构规范输出,不能出现剧本以外的内容,使用 Markdown 格式。不要包含 JSON 标记,不要包含 [[VERSION]] 标签,不要包含集数标记,不要包含剧本总结,不要出现标签型词汇(如‘动作描写’、‘场景描写’、‘人物描写’等等)。 +请务必使用中文。` }, { id: 1, instruction: ` -# B?????? +# 生成要求 -?????????? -?????????????????????????????????????????????????????????? +强调人物内心戏、潜台词、细腻的情感交流,节奏舒缓,挖掘人性深度。 +侧重于核心风格与叙事手法要求中的叙事深度和逻辑铺垫, +剧情展开更完整,人物动机更清晰, +细节描写更加丰富,对话和动作可以更充分地服务于故事逻辑。 -????? -1. ?????????????????????????????????? -2. ????????????????????????????????????? -3. ????????????????????????????????? -4. ??????????????????????????? -5. ????????????????????????? +# 输出格式 -??? -?????????????????????????????????????????? - -# ???? - -???????????????????????????????????????? Markdown ??????? JSON ??????? [[VERSION]] ???????????????????????????????????????????????????????? -????????` +直接输出剧本内容,剧本内容严格按照剧本结构规范输出,不能出现剧本以外的内容,使用 Markdown 格式。不要包含 JSON 标记,不要包含 [[VERSION]] 标签,不要包含集数标记,不要包含剧本总结,不要出现标签型词汇(如‘动作描写’、‘场景描写’、‘人物描写’等等)。 +请务必使用中文。` } ]; @@ -621,54 +605,40 @@ export async function convertTextToScript( const continuationPrompt = seedContent.trim() ? ` -?????????? ${seedContent} -???????????????????????????????????????????????????????????????????` +` : ""; try { throwIfAborted(options?.signal); - const prompt = `???????????? + const prompt = `请根据以下信息进行创作: -????? -${options?.episodeTitle || '???'} +${options?.previousEpisodeContent || ''} -??????? +1. 本集剧情指令 ${options?.episodeOutline || sourceText} -???? -${sourceText} - -????? +2. 剧本类型 ${scriptType} -????? +3. 核心风格 ${combinedStyle} -??????? +4. 叙事手法 ${scriptFormat} -${options?.previousEpisodeContent ? `??????????????????? -${options.previousEpisodeContent} +5. 剧情背景设定 +${globalSettings?.worldview || '未设定'} -??????????????????????????????????????? +6. 故事大纲 +${globalSettings?.outline || '未设定'} -` : ''}${globalSettings ? ` -???????? -????${globalSettings.worldview || '???'} -?????${globalSettings.outline || '???'} -?????${globalSettings.characters || '???'} -` : ''}${continuationPrompt} +7. 核心角色简介 +${globalSettings?.characters || '未设定'} -????? -1. ????????????????????????????? -2. ?????????????????????????????? -3. ??????????????????? -4. ??????????? - -?????????????????????????`; +请严格按照系统设定的规则和规范,生成该版本的剧本。`; const systemInstruction = baseSystemInstruction + v.instruction; let fullText = seedContent;