Skip to content

Commit 17120a8

Browse files
committed
chore: update commit instructions
1 parent 29ab8de commit 17120a8

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

utils/promptBuilder.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,13 +486,20 @@ export function buildCompactSegmentsPrompt({
486486
const noTimestampRule = buildNoTimestampTaskRule("segments", taskContext);
487487
const subtitleBlock = `【字幕内容】\n${subtitle}`.trim();
488488
return [
489-
"你是一个 B 站视频章节分段助手。现在必须使用极简格式重新生成。",
489+
"你是一个 B 站视频章节分段助手,同时你需要识别广告。现在必须使用极简格式重新生成。",
490490
"【核心要求】",
491491
"- 严禁逐句分段,必须按章节级内容分段。",
492492
"- 10 分钟以内输出 4-7 段;10-25 分钟输出 6-10 段;25-45 分钟输出 8-12 段;45 分钟以上输出 10-16 段。",
493493
"- 每个 label 控制在 8-16 个中文字,必须概括本段核心事件或观点,不要只写泛化词。",
494494
"- 必须覆盖从第一行到最后一行字幕,最后一段 end_line 必须接近最后一个 #编号。",
495495
"- 如果有广告,type 写 \"ad\";普通内容 type 写 \"content\"。",
496+
"【广告要求】",
497+
"- 广告通常具有以下特征:",
498+
"- 博主从讲述视频内容转为推荐产品或服务",
499+
"- 出现品牌介绍、购买、下载、注册链接、优惠等内容",
500+
"- 出现感谢赞助 / 本期视频由…支持 / 推荐大家试试",
501+
"- 视频主线突然中断,插入与主题无关的推广",
502+
"- 广告段必须输出 ad_start_line 和 ad_end_line,通常它们应与 start_line/end_line 相同。",
496503
"【极简输出格式】",
497504
"只输出 JSON 数组,不要 Markdown,不要解释,不要代码块。",
498505
"普通段只允许字段:{\"start_line\":0,\"end_line\":50,\"label\":\"背景铺垫\",\"type\":\"content\"}",

0 commit comments

Comments
 (0)