Merge branch 'main' of https://github.com/kwaroran/RisuAI
This commit is contained in:
@@ -846,6 +846,7 @@ export interface Database{
|
||||
otherAx: SeparateParameters
|
||||
}
|
||||
translateBeforeHTMLFormatting:boolean
|
||||
autoTranslateCachedOnly:boolean
|
||||
}
|
||||
|
||||
interface SeparateParameters{
|
||||
|
||||
@@ -507,4 +507,8 @@ async function translateLLM(text:string, arg:{to:string, regenerate?:boolean}):P
|
||||
}).replace(/<\/style-data>/g, '')
|
||||
await LLMCacheStorage.setItem(text, result)
|
||||
return result
|
||||
}
|
||||
|
||||
export async function getLLMCache(text:string):Promise<string | null>{
|
||||
return await LLMCacheStorage.getItem(text)
|
||||
}
|
||||
Reference in New Issue
Block a user