From da9200c82ed39f790b3ff982e796f33aeaec3ae1 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 3 Oct 2024 12:59:59 +0000 Subject: [PATCH] Skip adding tool messages as regular chats --- public/scripts/openai.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/scripts/openai.js b/public/scripts/openai.js index e9216eccf..9ab05b467 100644 --- a/public/scripts/openai.js +++ b/public/scripts/openai.js @@ -743,6 +743,8 @@ async function populateChatHistory(messages, prompts, chatCompletion, type = nul chatCompletion.freeBudget(toolCallMessage); chatCompletion.insertAtStart(toolCallMessage, 'chatHistory'); } + + continue; } if (chatCompletion.canAfford(chatMessage)) {