refactor: few hypa potential issues/bad prompt

This commit is contained in:
LightningHyperBlaze45654
2024-09-25 21:19:54 -07:00
parent f8d62f8772
commit a8d52decd0
2 changed files with 5 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ async function summary(stringlizedChat: string): Promise<{ success: boolean; dat
}
const supaPrompt = db.supaMemoryPrompt === '' ?
"[Summarize the ongoing role story, It must also remove redundancy and unnecessary text and content from the output to reduce tokens for gpt3 and other sublanguage models]\n"
"[Summarize the ongoing role story, It must also remove redundancy and unnecessary text and content from the output.]\n"
: db.supaMemoryPrompt;
let result = '';

View File

@@ -230,6 +230,9 @@ export function setDatabase(data:Database){
if(checkNullish(data.supaMemoryKey)){
data.supaMemoryKey = ""
}
if(checkNullish(data.hypaMemoryKey)){
data.hypaMemoryKey = ""
}
if(checkNullish(data.supaModelType)){
data.supaModelType = "none"
}
@@ -551,6 +554,7 @@ export interface Database{
useStreaming:boolean
palmAPI:string,
supaMemoryKey:string
hypaMemoryKey:string
supaModelType:string
textScreenColor?:string
textBorder?:boolean