Skip adding tool messages as regular chats
| @@ -743,6 +743,8 @@ async function populateChatHistory(messages, prompts, chatCompletion, type = nul | ||
| 743 | 743 | chatCompletion.freeBudget(toolCallMessage); |
| 744 | 744 | chatCompletion.insertAtStart(toolCallMessage, 'chatHistory'); |
| 745 | 745 | } |
| 746 | + | |
| 747 | + continue; | |
| 746 | 748 | } |
| 747 | 749 | |
| 748 | 750 | if (chatCompletion.canAfford(chatMessage)) { |