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 === '' ?
|
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;
|
: db.supaMemoryPrompt;
|
||||||
let result = '';
|
let result = '';
|
||||||
|
|
||||||
|
|||||||
@@ -230,6 +230,9 @@ export function setDatabase(data:Database){
|
|||||||
if(checkNullish(data.supaMemoryKey)){
|
if(checkNullish(data.supaMemoryKey)){
|
||||||
data.supaMemoryKey = ""
|
data.supaMemoryKey = ""
|
||||||
}
|
}
|
||||||
|
if(checkNullish(data.hypaMemoryKey)){
|
||||||
|
data.hypaMemoryKey = ""
|
||||||
|
}
|
||||||
if(checkNullish(data.supaModelType)){
|
if(checkNullish(data.supaModelType)){
|
||||||
data.supaModelType = "none"
|
data.supaModelType = "none"
|
||||||
}
|
}
|
||||||
@@ -551,6 +554,7 @@ export interface Database{
|
|||||||
useStreaming:boolean
|
useStreaming:boolean
|
||||||
palmAPI:string,
|
palmAPI:string,
|
||||||
supaMemoryKey:string
|
supaMemoryKey:string
|
||||||
|
hypaMemoryKey:string
|
||||||
supaModelType:string
|
supaModelType:string
|
||||||
textScreenColor?:string
|
textScreenColor?:string
|
||||||
textBorder?:boolean
|
textBorder?:boolean
|
||||||
|
|||||||
Reference in New Issue
Block a user