feat: supports download subtitle

This commit is contained in:
Gabe
2025-11-10 00:21:07 +08:00
parent 7e6376fcb7
commit 3f524ad674
11 changed files with 650 additions and 204 deletions

View File

@@ -690,17 +690,19 @@ export const genTransReq = async ({ reqHook, ...args }) => {
}
if (API_SPE_TYPES.ai.has(apiType)) {
args.systemPrompt = genSystemPrompt({
systemPrompt: useBatchFetch ? systemPrompt : nobatchPrompt,
from,
to,
fromLang,
toLang,
texts,
docInfo,
tone,
});
args.userPrompt = !!events
args.systemPrompt = events
? systemPrompt
: genSystemPrompt({
systemPrompt: useBatchFetch ? systemPrompt : nobatchPrompt,
from,
to,
fromLang,
toLang,
texts,
docInfo,
tone,
});
args.userPrompt = events
? JSON.stringify(events)
: genUserPrompt({
nobatchUserPrompt,