From c3a690b48f8bce33c2c612d69c0d5d7e0efacf73 Mon Sep 17 00:00:00 2001 From: Vali98 Date: Mon, 4 Nov 2024 15:37:44 +0800 Subject: [PATCH] fix: scenario being used to determine adding personality field --- app/constants/APIState/BaseAPI.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/constants/APIState/BaseAPI.ts b/app/constants/APIState/BaseAPI.ts index cb82e4e..a015745 100644 --- a/app/constants/APIState/BaseAPI.ts +++ b/app/constants/APIState/BaseAPI.ts @@ -101,7 +101,7 @@ export abstract class APIBase implements IAPIBase { payload_length += characterCache.scenario_length } - if (currentInstruct.scenario && currentCard?.personality) { + if (currentInstruct.personality && currentCard?.personality) { payload += currentCard.personality payload_length += characterCache.personality_length } @@ -260,7 +260,7 @@ export abstract class APIBase implements IAPIBase { total_length += characterCache.scenario_length } - if (currentInstruct.scenario && currentCard?.personality) { + if (currentInstruct.personality && currentCard?.personality) { initial += currentCard.personality total_length += characterCache.personality_length }