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