feat: support subtitle chunks for AI

This commit is contained in:
Gabe
2025-10-11 21:06:38 +08:00
parent d9b4399c57
commit 1afe976777
6 changed files with 304 additions and 84 deletions

View File

@@ -517,6 +517,7 @@ export const apiTranslate = async ({
// 字幕处理/翻译
export const apiSubtitle = async ({
videoId,
chunkSign,
fromLang = "auto",
toLang,
events = [],
@@ -525,6 +526,7 @@ export const apiSubtitle = async ({
const cacheOpts = {
apiSlug: apiSetting.apiSlug,
videoId,
chunkSign,
fromLang,
toLang,
};