Skip to content

Commit

Permalink
fix: scenario being used to determine adding personality field
Browse files Browse the repository at this point in the history
  • Loading branch information
Vali-98 committed Nov 4, 2024
1 parent 80e6a24 commit c3a690b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/constants/APIState/BaseAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit c3a690b

Please sign in to comment.