From a8d52decd0f9ee8a142d1f9b91a7db4af1d9efb8 Mon Sep 17 00:00:00 2001 From: LightningHyperBlaze45654 <73149145+LightningHyperBlaze45654@users.noreply.github.com> Date: Wed, 25 Sep 2024 21:19:54 -0700 Subject: [PATCH] refactor: few hypa potential issues/bad prompt --- src/ts/process/memory/hypav2.ts | 2 +- src/ts/storage/database.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ts/process/memory/hypav2.ts b/src/ts/process/memory/hypav2.ts index c7295267..239332fd 100644 --- a/src/ts/process/memory/hypav2.ts +++ b/src/ts/process/memory/hypav2.ts @@ -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 = ''; diff --git a/src/ts/storage/database.ts b/src/ts/storage/database.ts index 550f69ef..cce3ea63 100644 --- a/src/ts/storage/database.ts +++ b/src/ts/storage/database.ts @@ -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