[feat] hypamemory settings

This commit is contained in:
kwaroran
2023-08-06 19:10:19 +09:00
parent 936c8f2dab
commit 0408125f1b
4 changed files with 13 additions and 4 deletions

View File

@@ -202,7 +202,7 @@ export async function supaMemory(
let hypaResult = ""
if(arg.asHyper){
const hypa = new HypaProcesser('MiniLM')
const hypa = new HypaProcesser(db.hypaModel)
hypa.oaikey = db.supaMemoryKey
hypa.vectors = []
hypaChunks = hypaChunks.filter((value) => value.length > 1)

View File

@@ -302,7 +302,7 @@ export function setDatabase(data:Database){
data.colorScheme ??= cloneDeep(defaultColorScheme)
data.colorSchemeName ??= 'default'
data.NAIsettings.starter ??= ""
data.hypaModel ??= 'MiniLM'
changeLanguage(data.language)
DataBase.set(data)
@@ -620,6 +620,7 @@ export interface Database{
colorSchemeName:string
promptTemplate?:Proompt[]
forceProxyAsOpenAI?:boolean
hypaModel:'ada'|'MiniLM'
}
interface hordeConfig{