mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-09 08:38:53 +01:00
CC: Actually check if can afford both the block and the header
This commit is contained in:
parent
a12051ee24
commit
663f4ed798
@ -811,8 +811,7 @@ async function populateDialogueExamples(prompts, chatCompletion, messageExamples
|
||||
chatMessages.push(chatMessage);
|
||||
}
|
||||
|
||||
const canAffordBlock = chatCompletion.canAfford(newExampleChat) && chatCompletion.canAffordAll(chatMessages);
|
||||
if (!canAffordBlock) {
|
||||
if (!chatCompletion.canAffordAll([newExampleChat, ...chatMessages])) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user