refactor: few hypa potential issues/bad prompt
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user