From 858818923cfc7f716b262cc1055c79b9d1795055 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Thu, 9 Nov 2023 13:51:51 +0900 Subject: [PATCH] [fix] depth prompt checking --- src/ts/process/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/process/index.ts b/src/ts/process/index.ts index 6595ad52..f9709341 100644 --- a/src/ts/process/index.ts +++ b/src/ts/process/index.ts @@ -728,7 +728,7 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n } - if(currentChar.depth_prompt && currentChar.depth_prompt.prompt.length > 0){ + if(currentChar.depth_prompt && currentChar.depth_prompt.prompt && currentChar.depth_prompt.prompt.length > 0){ //depth_prompt const depthPrompt = currentChar.depth_prompt formated.splice(formated.length - depthPrompt.depth, 0, {