Skip adding tool messages as regular chats

This commit is contained in:
Cohee 2024-10-03 12:59:59 +00:00
parent 1e076a3e43
commit da9200c82e

View File

@ -743,6 +743,8 @@ async function populateChatHistory(messages, prompts, chatCompletion, type = nul
chatCompletion.freeBudget(toolCallMessage);
chatCompletion.insertAtStart(toolCallMessage, 'chatHistory');
}
continue;
}
if (chatCompletion.canAfford(chatMessage)) {