Removed unnecessary token reserve

This commit is contained in:
based 2023-08-20 04:23:12 +10:00
parent c2a4e2e52a
commit b3377726c4
1 changed files with 0 additions and 1 deletions

View File

@ -519,7 +519,6 @@ function populateDialogueExamples(prompts, chatCompletion) {
if (openai_msgs_example.length) {
const newExampleChat = new Message('system', oai_settings.new_example_chat_prompt, 'newChat');
[...openai_msgs_example].forEach((dialogue, dialogueIndex) => {
chatCompletion.reserveBudget(newExampleChat);
chatCompletion.insert(newExampleChat, 'dialogueExamples');
dialogue.forEach((prompt, promptIndex) => {
const role = 'system';