一键转换
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m46s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m46s
This commit is contained in:
parent
b49d703e3c
commit
75ac17b7ce
@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>My Google AI Studio App</title>
|
<title>剧本大师</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|||||||
@ -1669,15 +1669,6 @@ ${script}`;
|
|||||||
{`删除全部`}
|
{`删除全部`}
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
onClick={() => conversionFileInputRef.current?.click()}
|
|
||||||
disabled={isExtractingSource || isExtractingBackground}
|
|
||||||
className="px-3 py-1.5 rounded-xl bg-white border border-[#D2D2D7]/50 text-[11px] font-bold text-[#1D1D1F] flex items-center gap-2 hover:bg-[#F5F5F7] transition-all disabled:opacity-50"
|
|
||||||
>
|
|
||||||
{isExtractingSource || isExtractingBackground ? <Loader2 size={12} className="animate-spin" /> : <Upload size={12} />}
|
|
||||||
<span>{isExtractingSource || isExtractingBackground ? `\u6b63\u5728\u89e3\u6790` : extractedEpisodes.length > 0 ? `\u91cd\u65b0\u4e0a\u4f20` : `\u4e0a\u4f20\u6587\u4ef6`}</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="mt-3 flex items-center justify-between gap-3 text-[11px]">
|
<div className="mt-3 flex items-center justify-between gap-3 text-[11px]">
|
||||||
|
|||||||
@ -569,48 +569,32 @@ export async function convertTextToScript(
|
|||||||
{
|
{
|
||||||
id: 0,
|
id: 0,
|
||||||
instruction: `
|
instruction: `
|
||||||
# A??????
|
# 生成要求
|
||||||
|
|
||||||
??????????
|
强调镜头语言、动作场面、快节奏剪辑,减少对白,通过画面讲故事。
|
||||||
??????????????????????????????????????????
|
侧重于核心风格与叙事手法要求中的氛围感和戏剧张力,
|
||||||
|
整体节奏较快,剧情推进更紧凑,冲突更直接,
|
||||||
|
场景切换可以更简洁。
|
||||||
|
|
||||||
?????
|
# 输出格式
|
||||||
1. ??????????????????????????????????
|
|
||||||
2. ???????????????????????????
|
|
||||||
3. ????????????????????????????????????????
|
|
||||||
4. ???????????????????????
|
|
||||||
5. ?????????????????????
|
|
||||||
|
|
||||||
???
|
直接输出剧本内容,剧本内容严格按照剧本结构规范输出,不能出现剧本以外的内容,使用 Markdown 格式。不要包含 JSON 标记,不要包含 [[VERSION]] 标签,不要包含集数标记,不要包含剧本总结,不要出现标签型词汇(如‘动作描写’、‘场景描写’、‘人物描写’等等)。
|
||||||
?????????????????????????????
|
请务必使用中文。`
|
||||||
|
|
||||||
# ????
|
|
||||||
|
|
||||||
???????????????????????????????????????? Markdown ??????? JSON ??????? [[VERSION]] ????????????????????????????????????????????????????????
|
|
||||||
????????`
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
instruction: `
|
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()
|
const continuationPrompt = seedContent.trim()
|
||||||
? `
|
? `
|
||||||
|
|
||||||
??????????
|
|
||||||
${seedContent}
|
${seedContent}
|
||||||
|
|
||||||
???????????????????????????????????????????????????????????????????`
|
`
|
||||||
: "";
|
: "";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
throwIfAborted(options?.signal);
|
throwIfAborted(options?.signal);
|
||||||
|
|
||||||
const prompt = `????????????
|
const prompt = `请根据以下信息进行创作:
|
||||||
|
|
||||||
?????
|
${options?.previousEpisodeContent || ''}
|
||||||
${options?.episodeTitle || '???'}
|
|
||||||
|
|
||||||
???????
|
1. 本集剧情指令
|
||||||
${options?.episodeOutline || sourceText}
|
${options?.episodeOutline || sourceText}
|
||||||
|
|
||||||
????
|
2. 剧本类型
|
||||||
${sourceText}
|
|
||||||
|
|
||||||
?????
|
|
||||||
${scriptType}
|
${scriptType}
|
||||||
|
|
||||||
?????
|
3. 核心风格
|
||||||
${combinedStyle}
|
${combinedStyle}
|
||||||
|
|
||||||
???????
|
4. 叙事手法
|
||||||
${scriptFormat}
|
${scriptFormat}
|
||||||
|
|
||||||
${options?.previousEpisodeContent ? `???????????????????
|
5. 剧情背景设定
|
||||||
${options.previousEpisodeContent}
|
${globalSettings?.worldview || '未设定'}
|
||||||
|
|
||||||
???????????????????????????????????????
|
6. 故事大纲
|
||||||
|
${globalSettings?.outline || '未设定'}
|
||||||
|
|
||||||
` : ''}${globalSettings ? `
|
7. 核心角色简介
|
||||||
????????
|
${globalSettings?.characters || '未设定'}
|
||||||
????${globalSettings.worldview || '???'}
|
|
||||||
?????${globalSettings.outline || '???'}
|
|
||||||
?????${globalSettings.characters || '???'}
|
|
||||||
` : ''}${continuationPrompt}
|
|
||||||
|
|
||||||
?????
|
请严格按照系统设定的规则和规范,生成该版本的剧本。`;
|
||||||
1. ?????????????????????????????
|
|
||||||
2. ??????????????????????????????
|
|
||||||
3. ???????????????????
|
|
||||||
4. ???????????
|
|
||||||
|
|
||||||
?????????????????????????`;
|
|
||||||
|
|
||||||
const systemInstruction = baseSystemInstruction + v.instruction;
|
const systemInstruction = baseSystemInstruction + v.instruction;
|
||||||
let fullText = seedContent;
|
let fullText = seedContent;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user