fix: display cached llm translations while sending message

This commit is contained in:
Bo26fhmC5M
2025-02-08 11:17:46 +09:00
parent 7b57bdf5f1
commit 6b6be0504d
4 changed files with 10 additions and 6 deletions

View File

@@ -231,7 +231,9 @@ export async function translateHTML(html: string, reverse:boolean, charArg:simpl
let DoingChat = get(doingChat)
if(DoingChat){
if(isExpTranslator()){
return html
if(!(db.translatorType === 'llm' && await getLLMCache(html) !== null)){
return html
}
}
}
if(db.translatorType === 'llm'){