fix: add legacy translation support in Auto Translate Cached Only option
This commit is contained in:
@@ -143,7 +143,9 @@
|
||||
if(DBState.db.autoTranslateCachedOnly && DBState.db.translatorType === 'llm'){
|
||||
const cache = DBState.db.translateBeforeHTMLFormatting
|
||||
? await getLLMCache(data)
|
||||
: await getLLMCache(await ParseMarkdown(data, charArg, 'pretranslate', chatID, getCbsCondition()))
|
||||
: !DBState.db.legacyTranslation
|
||||
? await getLLMCache(await ParseMarkdown(data, charArg, 'pretranslate', chatID, getCbsCondition()))
|
||||
: await getLLMCache(await ParseMarkdown(data, charArg, mode, chatID, getCbsCondition()))
|
||||
|
||||
translateText = cache !== null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user